Commit graph

9271 commits

Author SHA1 Message Date
wiz
2148e3b706 Remove references to gnupg21 in preparation for its removal. 2017-08-29 12:11:35 +00:00
sevan
367560c13f Use NetBSD rcsid.
Reminded by joerg.
2017-08-27 18:18:57 +00:00
khorben
6b7f07a1e4 Add support for PKGSRC_MKPIE with cwrappers
This is based on a patch submitted on 16/04/2017 on tech-pkg@ and
adapted by joerg@ for pkgtools/cwrappers. It only consists in the
missing part to actually generate PIE executables with cwrappers if
configured to do so (currently disabled by default). The aim is really
to produce safer binaries where ASLR is in use.

This part in pkgsrc is only supported on NetBSD (x86) with GCC at the
moment.

Tested on NetBSD/amd64, with and without cwrappers, with and without
PKGSRC_MKPIE (all four combinations).
2017-08-25 01:43:17 +00:00
jlam
a27a11c331 mk/pkgtasks: Bump dependency on "pkgtasks" to 1.15.
This picks up the fix to updating system files correctly so that
ownership and permissions are preserved.
2017-08-23 17:53:32 +00:00
jlam
ed5291d835 mk/pkgformat: Only pass "-C" option to pkg_create(1) if it's valid.
Only pass "-C ${CONFLICTS}" to pkg_create(1) if ${CONFLICTS} is
non-empty; otherwise, a fatal error occurs.  This allows CONFLICTS
to be defined, but empty.
2017-08-23 17:52:30 +00:00
jlam
061d0f5c83 mk/pkgtasks: Fix name of variable for mkfontdir(1) tool. 2017-08-23 17:52:19 +00:00
jlam
b8ee74f354 mk/emulator: Move Linux shlibs task settings to package Makefiles.
Move the definitions of LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD
into suse_linux/emulator.mk.  The commands are specific to the
Linux installed, including the path to ldconfig(8), so localize
them to the package that provides it.

Move the definition of RUN_LDCONFIG out of the emulator framework
and into the packages that use them as RUN_LDCONFIG is meant to be
a package-settable variable.

Fix the path to the Linux ldconfig(8) that was used on FreeBSD to
brand the ELF format that has been incorrect for over 10 years.

In the suse_base packages, explicitly set LDCONFIG_REMOVE_CMD to
${TRUE} since the ldconfig(8) command is provided by that package
and can't be invoked at the postremove stage because it has already
been deleted from the system by then.

Bump the PKGREVISION of all the suse_base packages because the
install scripts have changed.

Bump the PKGREVISIONs of the darwin_lib and osf1_lib packages
because the install scripts no longer try to run ldconfig(8),
which is not provided in either OpenDarwin or OSF/1.
2017-08-21 12:49:16 +00:00
jlam
efa81dcfaa mk/pkgformat: Support INSTALL scripts that rely on UNPACK.
The pkginstall framework had an UNPACK action invoked early
in the PRE-INSTALL stage to unpack scriplets that were invoked
in later stages to perform extra work for installation, removal,
or both.

Add an UNPACK action that is a no-op for any scripts that don't
support the action.
2017-08-21 12:48:25 +00:00
jlam
9a3ba0d88e mk/pkgtasks: Fix postinstall check to not skip last set of files.
The postinstall check was improperly skipping the last N items
listed in CONF_FILES (and related) variables when verifying that
there is a multiple of N items listed.  Fix the bounds check.
2017-08-19 00:30:55 +00:00
jlam
d7766302ca mk/pkgtasks: Sometimes avoid error if source files don't exist.
The shell code used to check for the existence of the source files
listed in the various CONF_FILES (and related) variables has been
refactored out into a separate macro variable.  In addition, the
macro has been modified to only emit a warning if the source file
is not in ${PREFIX} and can't be found on the host system.

This supports using /dev/null as a source file, which is a common
idiom for creating an empty target file, even if ${DESTDIR} is
non-empty.
2017-08-19 00:30:42 +00:00
jlam
c9ebc4ab2d Bump dependency on pkgtasks to version that supports TASK_VERBOSE.
Pass TASK_VERBOSE=all to the install and deinstall scripts if
PKG_VERBOSE is defined by the user.
2017-08-19 00:30:31 +00:00
jlam
98e1e541d0 Run pkg_add(1) and pkg_delete(1) using ${SETENV} ${PKGTOOLS_ENV}.
PKGTOOLS_ENV allows for passing environment variables to the
package install and deinstall scripts.
2017-08-19 00:30:19 +00:00
jlam
4142027296 mk/pkgtasks: Substitute for variables unconditionally in scripts.
Replace @VAR@ with ${VAR} unconditionally in scripts, even if they
values are empty.  This will allow for fall-through to using the
pkgtasks hard-coded defaults, usually found by searching the PATH
contents, and it avoids having ugly "@VAR@" in the generated
scripts.
2017-08-19 00:29:55 +00:00
jlam
1d3dfdfebc Substitute the correct string for GTK3_UPDATE_ICON_CACHE. 2017-08-19 00:29:45 +00:00
schmonz
9cb4ffdb29 Remove "libidn" option, superseded by "idn". 2017-08-17 13:59:27 +00:00
schmonz
fbe4d66b70 Describe "qmail-customerror" option. 2017-08-13 23:45:17 +00:00
sevan
e02b0f6664 pbulk is able to handle the creation All directory itself[1].
changing the permission of ${PACKAGES} at the end of the script prevents that
from working.
Undo the change in r1.4 to create the All directory during setup & instead do
not change permissions.

Tested on OS X Tiger & FreeBSD.

Heads up by joerg
[1] http://mail-index.netbsd.org/pkgsrc-changes/2017/08/01/msg160826.html
2017-08-11 19:20:20 +00:00
hauke
2711324a88 Update MASTER_SITE_XEMACS list. 2017-08-10 12:21:18 +00:00
hauke
7033b75407 Remove non-resolvable MASTER_SITE_XEMACS hosts. 2017-08-10 09:34:05 +00:00
jlam
ad2d4d8890 mk/pkgtasks: Failures in POST- stages of the scripts are non-fatal.
The return values of the postinstall and postremove meta-tasks are
ignored unless the user-settable variable ${PKG_FATAL_ERRORS} is
"yes".  ${PKG_FATAL_ERRORS} defaults to "no" to preserve the
existing behavior of install scripts by mk/pkginstall.
2017-08-10 05:41:52 +00:00
jlam
c7a1115c70 mk/pkgtasks: Fix bug in postinstall CONF_FILES assertion.
If ${DESTDIR} was non-empty and the source file was an absolute
path, the postinstall check target defined in mk/pkgtasks/files.mk
was improperly failing.  Fix the bug by only prepending ${PREFIX}
if the source path is relative, and always prepending ${DESTDIR}.
2017-08-10 05:41:23 +00:00
jlam
a8a45f8487 mk/pkgtasks: Add infrastructure to use "icon_themes" package task.
Add definitions for the gtk-update-icon-cache(1) command to the
script header template, and a makefile fragment that creates the
data file for the "icon_themes" package task if ${ICON_THEMES} is
"yes" in the package Makefile.

Also bump pkgtasks dependency to version 1.12 for the "icon_themes"
package task and compatibility with pkgsrc/mk/pkginstall.
2017-08-10 05:41:07 +00:00
jlam
bd5bbf286f mk/pkgtasks: Add additional variables used by package tasks.
These should be explicitly set in the scripts, otherwise, the
pkgtasks defaults are used by locating programs in the $PATH
or are hardcoded defaults used for testing pkgtasks.
2017-08-10 05:38:00 +00:00
jlam
063ad58e6c mk/pkgtasks: Make the assertion comments more obvious. 2017-08-10 05:37:44 +00:00
jlam
b08f5b23a2 mk/pkgtasks: Assert that directories for target files will exist.
For target files listed in CONF_FILES (and other config file
variables), assert that the containing directories are named in
MAKE_DIRS or one of the other directory variables.
2017-08-10 05:37:32 +00:00
jlam
23507fce19 Remove accidentally-committed temporary editor file. 2017-08-10 05:27:01 +00:00
jlam
dedd4c0b82 mk/pkgtasks: Rename some make(1) variables to be more descriptive. 2017-08-10 05:25:10 +00:00
leot
d5e3dfb5b3 Add Keywords:' comments to help the help' target to find recent pkgsrc
security options.
2017-08-09 12:47:41 +00:00
jlam
c22b34a349 Check, don't assert, that INSTALLATION_DIRS are all in ${PREFIX}.
Change the assertion into an install-time check that the paths
listed in INSTALLATION_DIRS are relative paths or are in ${PREFIX}.
This delays the check so that some common variables used when
listing directories in INSTALLATION_DIRS are fully-expanded.
2017-08-08 17:17:25 +00:00
maya
4ad12bcd40 Remove hack working around NetBSD 1.5's specfiles. 2017-08-07 23:54:09 +00:00
maya
88067d2bf4 Disable fortify on netbsd<6.
This appears to be causing issues with pkgsrc GCC attempting to insert
builtins it does not have, because we don't build libssp. unbreaks icu build.

there may be more problems from this issue in the future, but netbsd-7 is
better tested now.
2017-08-07 23:44:53 +00:00
jlam
176d83c4aa Assert INSTALLATION_DIRS begin with ${PREFIX} or are relative.
Add an assertion that all paths listed in INSTALLATION_DIRS must
either begin with ${PREFIX}/ or are relative paths.  Clarify in the
documentation that INSTALLATION_DIRS can list either type of path.

Some packages are using INSTALLATION_DIRS to create directory trees
outside of ${PREFIX}, e.g., under ${PKG_SYSCONFBASE} or ${VARBASE}.
However, these directories are only created as part of the
"install" target, which causes them to only be created during the
staged installation into ${DESTDIR} and not at all if their binary
packages are installed.  These packages should be fixed to use
MAKE_DIRS or OWN_DIRS to create these directory trees at the proper
time.
2017-08-07 15:49:44 +00:00
jperkin
b3c00861dc Disable fortify on Linux when optimisation is not enabled, it is not
supported in that configuration and warnings are issued from the system
headers.
2017-08-04 08:59:20 +00:00
jperkin
7c713c8b68 Remove obsolete and unused SunOS fortify section. 2017-08-04 08:53:33 +00:00
wiz
d678f8f800 Switch from mdocml to mandoc; remove obsolete references. 2017-08-01 15:09:52 +00:00
jperkin
007ae9858c Do not perform checksum tests when explicitly calling a make target that
creates or updates the checksum.  Allows users to set FAILOVER_FETCH in
mk.conf unconditionally and be able to update distinfo files without
first having to remove them.
2017-08-01 13:15:32 +00:00
dbj
76af32191a don't try to create buildlinks if BUILDLINK_PREFIX.${_pkg_} is empty
without this change it looks for files in $HOME or fails if that is not set
2017-08-01 05:48:12 +00:00
schmonz
b8b126f4f2 Extract user and group default to mk/defaults/mk.conf. 2017-07-27 04:10:30 +00:00
jaapb
bf2226dec6 Changed ocaml.mk to allow for multiple opam .install files 2017-07-26 09:41:31 +00:00
sevan
29f03a903c Create the All packages sub directory.
This prevents the bulk build failing on the complition of the first package
because the directory doesn't exist.
2017-07-25 22:45:21 +00:00
maya
7ddbd3b915 Don't bother with a version check for alpha cflags 2017-07-24 08:19:08 +00:00
jaapb
cc10614657 Adding jbuilder support to ocaml.mk 2017-07-23 12:20:46 +00:00
maya
17b7efc0d1 freebsd 12 doesn't have /usr/bin/tbl, so check for its existence before
deciding to use it.
2017-07-22 18:10:25 +00:00
schmonz
fa975fd570 Describe "qmail-rejectutils" option. 2017-07-21 18:18:51 +00:00
brook
590147deae Add logic so GCC_REQD+=7.x works. 2017-07-18 18:27:31 +00:00
joerg
03f704711c Retire CLANG_NO_VALUE_PROPAGATION_PASS. CVP has been fixed in LLVM to
require much less memory.
2017-07-11 19:41:20 +00:00
jaapb
2437ab894b Added cmxs option (for net/ocamlnet). 2017-07-11 14:13:06 +00:00
jaapb
59596d1de7 Changes in OCaml support:
- added support for TOPKG
- installation through OPAM install files now possible
- oasis support improved
2017-07-11 09:54:21 +00:00
joerg
80852c70a2 Deal with wc in /bin. From Thomas Orgis. 2017-07-10 12:32:30 +00:00
schmonz
a6335c2ab0 Define PKG_HAVE_KQUEUE where available. 2017-07-09 17:03:12 +00:00