summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
AgeCommit message (Collapse)AuthorFilesLines
2005-12-05Applied all quoting fixes found by "pkglint --autofix".rillig1-27/+27
2005-12-04The checksums for pkgsrc patches are always checked -- even ifrillig1-6/+1
NO_CHECKSUM is set.
2005-12-01Don't create distinfo files in the "makesum" and "makepatchsum" targetsrillig1-1/+11
if NO_CHECKSUM is set to "yes". This allows to run "make makepatchsum" in the top level pkgsrc directory without having to worry about lots of additional distinfo files being created.
2005-12-01Inserted "set -e" as the first command in the show-depends-dirs targetrillig1-2/+3
to force an early exit as soon as a "cd" command fails. Otherwise, "/" would have been added as a dependency, leading to undefined behavior. See PR 32202 for details. Fixes the second item of PR 32202.
2005-12-01The new target do-check-pkg-fail-reason should to be a dependency ofrillig1-3/+15
every top level target that is intended to be called by the user or by a package different from the current package. It provides the same action as the "main" targets like "fetch", "expand", "build" before in case PKG_FAIL_REASON is set, that is it prints all PKG_FAIL_REASONs and fails. Fixes PR 32202. Implementation notes: - The target names have the "do-" prefix to not pollute the bsd.pkg.check.mk namespace. - The PKG_SKIP_REASON has no influence on the do-check-pkg-fail-reason target, although both are handled with the same code.
2005-11-29Fix REQUIRES= when ldd output has wrong number of fields.reed1-2/+2
(This also fixes problem where on some Linux systems, ldd outputs linux-gate.so.1 entry without corresponding library.) This was noticed on Linux. This was discussed and okayed on the tech-pkg list in February, 2002. I have been using this on NetBSD and Linux since then. (Also just tested on DragonFly.)
2005-11-23Per request, back out all the SKIP_AUDIT_PACKAGES changes.erh1-33/+19
bsd.pkg.mk:1.1758-1.1752 bsd.prefs.mk:1.210 bulk/build:1.79 defaults/mk.conf:1.93-1.92
2005-11-22Missing a line from the previous commit that would cause PKG_DB_TMPDIRjlam1-2/+2
to also be forcibly created (if missing) as part of "make install".
2005-11-22Create PKG_DB_TMPDIR (${WRKDIR}/.pkgdb) in a separate step from creatingjlam1-3/+4
${WRKDIR}, and just always create it as part of a "make extract". This should fix problems where if an old work directory is lying around that doesn't already have .pkgdb, then a "make reinstall" won't break.
2005-11-20Removed a line in the _SU_TARGET variable that had been left fromrillig1-2/+1
debugging.
2005-11-20Added subshell parentheses around the command for updating pkg_install.rillig1-2/+2
This allows for copy&paste.
2005-11-20Reverted the SU_CMD change from between 1.1748 and 1.1749 almostrillig1-2/+3
completely. The only difference to revision 1.1748 is that the PATH=$$PATH:${SU_CMD_PATH_APPEND} argument is included in single quotes. This will lead to problems when the PATH should contain single quotes but works in all other cases. (Single quotes in the PATH hadn't worked before either.) The tricky part regarding this code is that the PATH and .CURDIR bypass the SU_CMD. They are evaluated before and inserted as literals into the command that is executed by the SU_CMD. Preserving these variables this way circumvents interpretation and modification through the SU_CMD, but leads to ugly rules for quoting which are currently not handled completely correctly.
2005-11-19If the directory of a dependency does not exist, fail instead of (almost)rillig1-2/+3
silently skipping the dependency.
2005-11-18Collapse two .for blocks to improve readability:tv1-14/+3
_ULIMIT_CMD to use a ${...:@var@loop ...@} construct _ACCEPTABLE to use a !empty(var:Mfoo) conditional
2005-11-18Use :D and :U constructs in a few more places to collapse some .if definedtv1-36/+8
blocks to a more parallelism-readable state.
2005-11-18Simplify the _MASTER_SITE_{BACKUP,OVERRIDE} settings a bit by using a :Dtv1-12/+3
construct rather than .if defined(), and changing := to =.
2005-11-17To support variants of make that run the shell so 'set -e' is true (shellerh1-3/+3
exits on any command failing), add a '|| ${TRUE}' when running the check-vulnerable target in do-fetch.
2005-11-17Back out the previous change. The output _will_ be visible to the user.erh1-4/+4
See the "*)" case in the do-fetch target.
2005-11-17The message that audit-packages is out-of-date is printed on stderr insteadrillig1-4/+4
of stdout because the latter would not show up to the user.
2005-11-17Only show the message about fiddling with mk.conf if the output oferh1-3/+5
check-vulnerable actually contains some vulnerability ids.
2005-11-17Minimum audit-packages version is _1_.40, not 0.40erh1-3/+3
2005-11-16Missed a couple of underscores. Add them.erh1-3/+3
2005-11-16Improve the handling of allowed vulnerabilities. Instead of the singleerh1-18/+30
ALLOW_VULNERABLE_PACKAGES settings that applies to all packages, there can now be per-package lists of allowed vulnerability ids: ALLOW_VULNERABILITIES.<pkgname>=<space separated list of vulnids> To avoid duplication of code, audit-packages is now used to do these checks. It can be skipped altogether by setting: SKIP_AUDIT_PACKAGES=yes
2005-11-15Rewrote the _PATH_CMD command, which could not handle a PATH environmentrillig1-5/+8
variable before if it had multiple adjacent white-space characters in it. Removed the dependency on awk(1), as a simple shell script can do this job, too. Another change is that all kinds of weird pathnames can be used for PREPEND_PATH, like /bin, "/bin/Program Files", "/ ", /foo\ bar, and so on. This had not been possible before, too. Related to PR 32079. Ok'ed by jlam.
2005-11-15make install doesn't work when updating pkg_install. Recommend make updategavan1-2/+2
instead.
2005-11-15Allow white-space in the PATH environment variable. Fixes PR 32079. Therillig1-3/+3
shell quoting still isn't completely correct for some other variables. This needs to be fixed, too.
2005-11-14Removed trailing white-space.rillig1-7/+6
2005-11-09Use lt_cv_sys_max_cmd_len in devel/libtool-base, too.tv1-2/+2
2005-11-05Use new automatic flag; depend on appropriate pkg_install version.wiz1-3/+9
2005-11-05Made the dependency directory check a little stricter. In the worst caserillig1-3/+3
this could produce extra warnings. It does not affect the rest of the build process at all.
2005-11-04The last fix did not work. Completely reverted the unintended part ofrillig1-5/+2
the last changes.
2005-11-04Replaced "done" with "esac" to fix a syntax error.rillig1-2/+2
2005-11-04Relax rules a bit on INSTALLATION_DIRS -- we still enforce thatjlam1-2/+5
directories listed in INSTALLATION_DIRS are created in ${PREFIX}, but it's now okay to include ${PREFIX} at the front of each, directory, e.g. this is now okay: INSTALLATION_DIRS+= ${PREFIX}/bin Makes using this variable a bit less unwieldy sometimes.
2005-11-04back out part of previous commit that was unintended.jlam1-5/+2
2005-11-04Use ${SLEEP} instead of sleep, and note that we use the sleep tool ifjlam1-6/+9
we're doing locking.
2005-11-04Now that all packages using CONFIGURE_DIRS have been checked (andrillig1-2/+2
modified) to not rely on this change, the default value of BUILD_DIRS can be set to ${CONFIGURE_DIRS} instead of ${WRKSRC}. There are far more packages setting CONFIGURE_DIRS and BUILD_DIRS to the same value than there are packages needing different values, so this default seems more reasonable. Now the default values are: CONFIGURE_DIRS?= ${WRKSRC} # (unchanged) BUILD_DIRS?= ${CONFIGURE_DIRS} INSTALL_DIRS?= ${BUILD_DIRS} # (unchanged)
2005-11-02Removed the unused variable GNU_CONFIGURE_INFODIR, as suggested byrillig1-3/+2
Stoned Elipod.
2005-10-31Changed back the default values for GNU_CONFIGURE_{INFO,MAN}DIR to whatrillig1-3/+3
they had been before my last change. I had thought it would be more intuitive if they were based on GNU_CONFIGURE_PREFIX instead of PREFIX, but this might break some packages.
2005-10-31Added two new variables, GNU_CONFIGURE_INFODIR and GNU_CONFIGURE_MANDIR.rillig1-9/+11
Up to now, a package that wanted to use a different location for --mandir had to first define CONFIGURE_HAS_MANDIR=no and then CONFIGURE_ARGS+=--mandir=${...}, which looks weird. Now it only has to set GNU_CONFIGURE_MANDIR.
2005-10-24Use correct (internal) variable for pkg_add arguments.wiz1-2/+2
2005-10-24Use $${foo} instead of $$foo to prevent ident(1) from reporting falserillig1-4/+4
positives. No functional changes.
2005-10-23Pass PKG_REQD through shell environment, instead of arguments of make,minskim1-2/+2
so that a dependent package can override it properly. This makes INSTALL_MAKE_FLAGS work when a package is installed as a dependency.
2005-10-16Use show-vars-eval in show-needs-update.tv1-3/+2
2005-10-16Add "show-vars-eval" target, which outputs eval-able shell expressionstv1-1/+9
to allow easy setting of multiple variables in one invocation.
2005-10-10For INSTALLATION_DIRS, use ${PKGMANDIR} instead of "man".reed1-2/+2
Also before it used a wildcard for *man and now get rid of that wildcard in front.
2005-10-08CONFIGURE_DIRS, BUILD_DIRS, TEST_DIRS and INSTALL_DIRS are interpretedrillig1-14/+27
relative to ${WRKSRC}. This makes it possible to shorten definitions like "BUILD_DIRS=${WRKSRC}/foo ${WRKSRC}/bar" in package Makefiles to "BUILD_DIRS=foo bar". Almost all current uses of those directories are given as absolute directories (mostly in the form ${WRKSRC}/foo), which will work as they did before.
2005-10-07Renamed HTML_PKGNAME to _HTML_PKGLINK, which describes its contents morerillig1-9/+10
precisely. Added _HTML_PKGNAME and _HTML_PKGPATH variables for better readability. Fixed quoting style in print-summary-data.
2005-10-07Replaced some `if's with `case's to make the code simpler. Mergedrillig1-9/+5
multiple ${ECHO_N} into one ${ECHO}.
2005-10-06For print-PLIST generation, make sure that ${PKGMANDIR} becomes "man".reed1-1/+3
2005-10-04whitespace police.seb1-2/+2