summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2006-06-21When producing the list of directories containing binary packages, dodmcmahill1-3/+29
some extra processing to ensure that we have a list of unique directories. Otherwise we end up with two problems: - cache files get rebuilt all the time because they get built once for each path to the directory in question and since the path ends up in the cache, it is always declared out of date. - we end up with multiple links to the same binary package in the README.html files. Committed during the freeze becuase this is a real bug which is encountered daily.
2006-06-20Executiing "msgfmt ru" should look for "ru" and then "ru.po" forjlam1-1/+16
processing. Allow for this possiblity by falling through both names when given input files. This fixes the builds of sysutils/dfuibe_installer and sysutils/dfuife_curses noted in the bulk build results: http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html
2006-06-20Allow for arbitrary whitespace on the line before seeing any of thejlam1-3/+3
msg* keywords. This fixes parsing es.po in multimedia/gmencoder noted in the bulk build results: http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html
2006-06-20Use /bin/tcsh only when it exists. A minimal installtion of Linux mayminskim1-1/+3
not have it.
2006-06-20If FAILOVER_FETCH is defined, then we need the digest binary to alreadyjlam1-2/+2
be installed, so let uptodate-digest do that crazy thing it does.
2006-06-20Fix FAILOVER_FETCH usage to actually match documentation -- it'sjlam1-2/+2
supposed to be just defined/undefined, but was previously being used as non-empty/emtpy.
2006-06-18devel/tla has the GNU config scripts in a */*/* directory.rillig1-3/+3
2006-06-18Define CONFIG_{GUESS,SUB,RPATH}_OVERRIDE also whenrillig1-7/+11
OVERRIDE_GNU_CONFIG_SCRIPTS is defined.
2006-06-18Fixed wrong indentation of .if/.else/.endif.rillig1-4/+4
2006-06-18Removed duplicate definition of _PACKAGE_COOKIE.rillig1-3/+1
2006-06-17Simplified the code by reducing the number of different targets that arerillig1-20/+11
evaluated. Now the SUBST_MESSAGE is only printed once when the substitution is actually done. Before this change it had been printed also when the subst-<class> target had been invoked a second time, but the substitution didn't take place again, which had confused me. Also, converted the code to use ${WARNING_MSG} and ${STEP_MSG}.
2006-06-17Added a variable OVERRIDE_GNU_CONFIG_SCRIPTS that allows a package torillig1-2/+2
override the config.guess, config.sub and config.rpath scripts even if GNU_CONFIGURE is not defined. This is needed for devel/tla.
2006-06-16Allow packages to set a post-tools target again (which fixes recentjlam1-3/+46
lossage when building security/openpam). Utilize a tools cookie file to ensure that the post-tools target is only ever run once to avoid tricky coding requirements for the post-tools target. Also document some more of the targets.
2006-06-16It is worth a warning if a freshly installed file is not readable.rillig1-1/+6
2006-06-15Pluralize INSTALL_TEMPLATE and DEINSTALL_TEMPLATE variable names as perjlam2-18/+18
the pkglint warning: As {INSTALL,DEINSTALL}_TEMPLATE is modified using "+=", its name should indicate plural. This does make the variables a bit more suggestive of the fact that they hold lists of values.
2006-06-15Output PKG_{FAIL,SKIP}_REASON messages to standard error instead ofjlam1-7/+10
standard output. These are error or warning messages, so they shouldn't be "seen" by anything expecting the output of a "make" command to make sense. This addresses PR pkg/32239 by following the suggestions by Roland Illig.
2006-06-15Allow the standard build target to be overridden by the one generatedjlam1-2/+4
if PKG_{FAIL,SKIP}_REASON is set. This fixes the behavior when one invokes "make build" in a package that sets a fail or skip reason to stop as soon as the reason is printed.
2006-06-14Teach the tools framework about "openssl".jlam9-9/+32
2006-06-14Create DELAYED_{ERROR,WARNING}_MSG macros that can be used to outputjlam2-9/+12
error and warning messages that are picked up by the error-check target. Use them instead of using a bare ${ECHO} for more code clarity. Implemented as suggested by Roland Illig.
2006-06-14Insert cookie checks into the "real-install" and "real-package" targets,jlam2-2/+6
which are invoked in recursive make calls for the "install" and "package" targets respectvely. These recursive make calls prevent the top-level make from seeing all of the targets and computing a full dependency graph, so it becomes possible for some targets to be invoked more than once. This change passes enough information along to the recursive make calls and ensures that the source targets for the real-* targets are only invoked once.
2006-06-14Fix error with just-in-time su when installing dependencies. The codejlam1-3/+4
to install dependencies looked roughly like this: ${CAT} ${_DEPENDS_FILE} | while read type pattern dir; do cd $$dir && ${MAKE} install done In the code above, tghe recursive make invoked to install each dependency does a just-in-time su to acquire root privileges for the installation, but the su tries to get terminal settings for standard input (from the pipe) using tcgetattr(), which fails and subsequently causes su to exit with a puzzling "conversation failure" error. Rewrite the loop to look (roughly) like this: set -- `${CAT} ${_DEPENDS_FILE}` while test $# -gt 0; do type=$1; pattern=$2; dir=$3; shift 3 cd $$dir && ${MAKE} install done Note that this is potentially bad for shells with very low limits on the maximum command line length, but at least this preserves file descriptor 1 to reference the controlling tty unless the user does something weird with input redirection when invoking make.
2006-06-13Document mitshm option. Used in emulators/xbeeb package, where enabling it ↵dsainty1-0/+1
disables conventional network X support (the code doesn't support both).
2006-06-13At the point where we invoke msgfmt during the build phase, the softwarejlam1-1/+5
author has presumably given us valid *.po files, so skip performing validity checks on the *.po file. This fixes building software where the author has actually *not* produced proper *.po files, e.g. net/gtk-gnutella, where the de.po files have msgid/msgstr pairs that do not have matching numbers of format specifiers (%[a-z]).
2006-06-12Move the common make command executed in su-target into a separate makejlam1-4/+10
variable to try to get rid of potential quoting problems.
2006-06-12Be more consistent about how we're emitting errors and warnings.jlam1-6/+8
2006-06-12_DEPENDS_COOKIE is already defined in bsd.depends-vars.mk.jlam1-3/+1
2006-06-11Split out the "work" symlink creation into a separate step and add itjlam1-9/+15
as a source for the "makedirs" target. This ensures the symlink is created regardless of whether ${WRKDIR} already exists or not.
2006-06-10Restore missing ${SETENV} ${BUILD_ENV} that was dropped during the initialjlam2-4/+4
package system flavors commit.
2006-06-09make(1) will automatically delete partially made targets if the targetjlam4-122/+70
creation fails, so remove instances where temporary files were created then moved to the final target filename, and just directly create the target. This is just for brevity/clarity, and saves a few tool calls.
2006-06-09Add a new variable CHECK_FILES_SUPPORTED which is a package-settablejlam2-2/+8
variable to show whether the package supports running the check-files target. Set CHECK_FILES_SUPPORTED to "no" in pkgtools/pkg_install in the case where the PREFIX does not match ${LOCALBASE} it's likely the tools are being installed in some place that's completely outside pkgsrc control, and check-files fails horribly in that case.
2006-06-09Introduce the capability to gather all the warnings and errors thatjlam14-123/+185
are generated for a target and output them all at once at the conclusion of the target's invocation. The implementation is in bsd.pkg.error.mk, which defines a macro target "error-check" that will print out any non-empty warning and error files in ${WARNING_DIR} and ${ERROR_DIR} and exit appropriately if there were errors. Convert some targets that were just long sequences of ${ERROR_MSG} or ${WARNING_MSG} within a single shell statement to use the new delayed error output via error-check. Modify the compiler "fail" wrappers for C++ and Fortran to be less verbose during invocation. Instead collect the warnings and only print them at the end of the completed phase, e.g. after "configure" and/or "build" completes.
2006-06-09No need to synthesis the package directory from components when ${.CURDIR}jlam1-2/+2
already has the right value.
2006-06-09pkglint says, the :Q operator should not be used in double quotes.rillig1-20/+20
The code here only worked due to many conincidences: Let's assume a variable has the value "a b" and is used with the :Q operator, which results in "a\ b" (a, backslash, space, b). When used in double quotes, the shell command looks like: echo "a\ b" which, depending on the shell, may output the backslash literally or not. In the case of this file, the ":Q" string was not passed to echo(1), but to sed(1). sed(1) in turn interprets (backslash, space) in the replacement text as equivalent to (space), and that's where the backslash finally disappears. So it's only to this coincident that the code worked although it was not correct.
2006-06-08Introduce "makedirs" as a helper target to create directories withjlam2-3/+6
unprivileged ownership.
2006-06-08If the package cookie file exists, then we don't need to do anything.jlam1-2/+11
Also, make use of a _REAL_PACKAGE_TARGETS variable just to make all of the code between the different stages more uniform.
2006-06-08If the install cookie file exists, then we don't need to do anything.jlam1-8/+23
Also, move the interactive check into a separate target as a prelude to removing the recursive make for invoking "real-install".
2006-06-08Fix the comment.jlam1-2/+2
2006-06-08Make use of a "real-depends" helper target to hook all of the otherjlam1-7/+20
targets onto, and move the depends-message further down so that if the depends cookie file already exists, then no message is outputted.
2006-06-08undo most of the last commit which was a mistake.dmcmahill1-12/+3
2006-06-08Since "depends" is a real pkgsrc phase now, it also needs its ownrillig1-1/+6
depends-message target.
2006-06-08Replaced PHASE_MSG with STEP_MSG in many (but not all) places where itrillig7-19/+19
wasn't used to identify a ``phase'', as defined in the pkgsrc guide.
2006-06-08Use STEP_MSG for pkgsrc-patch-message instead of PHASE_MSG.rillig1-2/+2
2006-06-08Added a missing :Q operator for DEPENDS_TARGET, since like the otherrillig1-2/+2
*_TARGET variables, it is actually a _list_ of targets, not a single target.
2006-06-08The gcc equivalent of SunPro's -mt option is -threads.rillig1-1/+6
2006-06-08Avoid using ::= construct which apparently is somewhat buggy in bmake.jlam1-2/+2
This hopefully fixes user/group creation problems on platforms using bootstrap bmake, e.g. Solaris. Problem noted by adrianp in private email.
2006-06-08Fix an inverted test that caused all catman pages to be stripped fromjlam1-3/+3
the PLIST on platforms where IMAKE_MANINSTALL != MANINSTALL, e.g. Solaris. Solution noted by adrianp in private email. This should fix the problem noted in PR pkg/33629.
2006-06-08Create /var/spool/lock in the sandbox. The directory is needed tominskim1-2/+2
build comm/minicom.
2006-06-07Fix problems with check-files where it fails with a confusing messagejlam1-109/+157
that "the files are in the PLIST but not in ${PREFIX}" if the files that are installed overwrite other files already on the disk. Overwriting files can legitimately happen when, e.g. doing a "make update" or "make replace" without removing the old files, or when re-running "make install" after fixing a broken Makefile during development. While here, make the errors print to standard error using ERROR_CAT.
2006-06-07If there is _ZERO_FILESIZE_P, then it's natural to have _NONZERO_FILESIZE_Pjlam1-4/+7
to test for the opposite condition.
2006-06-07Move _ZERO_FILESIZE_P ftom bsd.pkginstall.mk to bsd.pkg.mk so it can morejlam2-7/+7
clearly be used in other modules.