summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2017-08-29Remove references to gnupg21 in preparation for its removal.wiz1-2/+0
2017-08-27Use NetBSD rcsid.sevan1-1/+1
Reminded by joerg.
2017-08-25Add support for PKGSRC_MKPIE with cwrapperskhorben2-5/+8
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-23mk/pkgtasks: Bump dependency on "pkgtasks" to 1.15.jlam1-2/+2
This picks up the fix to updating system files correctly so that ownership and permissions are preserved.
2017-08-23mk/pkgformat: Only pass "-C" option to pkg_create(1) if it's valid.jlam1-2/+2
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-23mk/pkgtasks: Fix name of variable for mkfontdir(1) tool.jlam1-2/+2
2017-08-21mk/emulator: Move Linux shlibs task settings to package Makefiles.jlam2-10/+2
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-21mk/pkgformat: Support INSTALL scripts that rely on UNPACK.jlam1-1/+10
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-19mk/pkgtasks: Fix postinstall check to not skip last set of files.jlam1-7/+7
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-19mk/pkgtasks: Sometimes avoid error if source files don't exist.jlam1-37/+43
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-19Bump dependency on pkgtasks to version that supports TASK_VERBOSE.jlam1-2/+5
Pass TASK_VERBOSE=all to the install and deinstall scripts if PKG_VERBOSE is defined by the user.
2017-08-19Run pkg_add(1) and pkg_delete(1) using ${SETENV} ${PKGTOOLS_ENV}.jlam5-16/+22
PKGTOOLS_ENV allows for passing environment variables to the package install and deinstall scripts.
2017-08-19mk/pkgtasks: Substitute for variables unconditionally in scripts.jlam1-7/+10
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-19Substitute the correct string for GTK3_UPDATE_ICON_CACHE.jlam1-2/+2
2017-08-17Remove "libidn" option, superseded by "idn".schmonz1-1/+0
2017-08-13Describe "qmail-customerror" option.schmonz1-0/+1
2017-08-11pbulk is able to handle the creation All directory itself[1].sevan1-5/+2
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-10Update MASTER_SITE_XEMACS list.hauke1-3/+9
2017-08-10Remove non-resolvable MASTER_SITE_XEMACS hosts.hauke1-3/+1
2017-08-10mk/pkgtasks: Failures in POST- stages of the scripts are non-fatal.jlam4-7/+40
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-10mk/pkgtasks: Fix bug in postinstall CONF_FILES assertion.jlam2-13/+45
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-10mk/pkgtasks: Add infrastructure to use "icon_themes" package task.jlam5-4/+175
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-10mk/pkgtasks: Add additional variables used by package tasks.jlam1-1/+10
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-10mk/pkgtasks: Make the assertion comments more obvious.jlam3-11/+11
2017-08-10mk/pkgtasks: Assert that directories for target files will exist.jlam2-2/+20
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-10Remove accidentally-committed temporary editor file.jlam1-0/+0
2017-08-10mk/pkgtasks: Rename some make(1) variables to be more descriptive.jlam2-10/+10
2017-08-09Add `Keywords:' comments to help the `help' target to find recent pkgsrcleot1-1/+7
security options.
2017-08-08Check, don't assert, that INSTALLATION_DIRS are all in ${PREFIX}.jlam1-8/+12
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-07Remove hack working around NetBSD 1.5's specfiles.maya3-12/+3
2017-08-07Disable fortify on netbsd<6.maya1-1/+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-07Assert INSTALLATION_DIRS begin with ${PREFIX} or are relative.jlam1-11/+22
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-04Disable fortify on Linux when optimisation is not enabled, it is notjperkin1-2/+5
supported in that configuration and warnings are issued from the system headers.
2017-08-04Remove obsolete and unused SunOS fortify section.jperkin1-5/+1
2017-08-01Switch from mdocml to mandoc; remove obsolete references.wiz1-6/+6
2017-08-01Do not perform checksum tests when explicitly calling a make target thatjperkin1-2/+3
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-01don't try to create buildlinks if BUILDLINK_PREFIX.${_pkg_} is emptydbj1-2/+3
without this change it looks for files in $HOME or fails if that is not set
2017-07-27Extract user and group default to mk/defaults/mk.conf.schmonz1-1/+11
2017-07-26Changed ocaml.mk to allow for multiple opam .install filesjaapb1-4/+8
2017-07-25Create the All packages sub directory.sevan1-2/+2
This prevents the bulk build failing on the complition of the first package because the directory doesn't exist.
2017-07-24Don't bother with a version check for alpha cflagsmaya1-6/+3
2017-07-23Adding jbuilder support to ocaml.mkjaapb1-1/+34
2017-07-22freebsd 12 doesn't have /usr/bin/tbl, so check for its existence beforemaya1-1/+3
deciding to use it.
2017-07-21Describe "qmail-rejectutils" option.schmonz1-0/+1
2017-07-18Add logic so GCC_REQD+=7.x works.brook1-3/+36
2017-07-11Retire CLANG_NO_VALUE_PROPAGATION_PASS. CVP has been fixed in LLVM tojoerg1-3/+1
require much less memory.
2017-07-11Added cmxs option (for net/ocamlnet).jaapb1-0/+1
2017-07-11Changes in OCaml support:jaapb1-3/+56
- added support for TOPKG - installation through OPAM install files now possible - oasis support improved
2017-07-10Deal with wc in /bin. From Thomas Orgis.joerg1-1/+5
2017-07-09Define PKG_HAVE_KQUEUE where available.schmonz1-1/+6