summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2006-08-27Pullup ticket 1809 - requested by bouyerghen2-9/+11
fix the upload script Revisions pulled up: - pkgsrc/mk/bulk/sort-packages 1.2-1.3 - pkgsrc/mk/bulk/upload 1.34 Module Name: pkgsrc Committed By: rillig Date: Tue Aug 1 06:10:44 UTC 2006 Modified Files: pkgsrc/mk/bulk: sort-packages Log Message: Oops, fixed a typo and tested it again. Now it works. --- Module Name: pkgsrc Committed By: rillig Date: Tue Aug 1 07:50:04 UTC 2006 Modified Files: pkgsrc/mk/bulk: sort-packages Log Message: Always create the files for the lists, even if they would end up empty. --- Module Name: pkgsrc Committed By: rillig Date: Thu Aug 10 17:58:10 UTC 2006 Modified Files: pkgsrc/mk/bulk: upload Log Message: When installing packages, first "cd $USR_PKGSRC" to be independent of the current working directory. See http://mail-index.netbsd.org/tech-pkg/2006/08/08/0006.html
2006-08-02Pullup ticket 1770 - requested by rilligsalo1-90/+218
improved upload script for bulk builds Revisions pulled up: - pkgsrc/mk/bulk/upload 1.31, 1.32, 1.33 Module Name: pkgsrc Committed By: jschauma Date: Sun Jul 30 14:31:10 UTC 2006 Modified Files: pkgsrc/mk/bulk: upload Log Message: - use ${BMAKE} instead of 'make' in one instance - if we can't build one of the required packages, bail out --- Module Name: pkgsrc Committed By: dmcmahill Date: Tue Aug 1 00:53:24 UTC 2006 Modified Files: pkgsrc/mk/bulk: upload Log Message: - add a -h|--help flag - add a -n|--no-upload flag which does everything but actually executing the upload to help see what would happen - add a -d|--debug flag to preserve the temporary files to help with debugging - add a -V|--version flag --- Module Name: pkgsrc Committed By: rillig Date: Tue Aug 1 13:16:42 UTC 2006 Modified Files: pkgsrc/mk/bulk: upload Log Message: Rewrote upload to use the newly introduced sort-packages program. While here, ... - Added stricter checking by using "set -eu". - The bulk build configuration file is properly included, and the MAKECONF definition that it may contain is properly exported. - All progress messages and error messages are prefixed by üpload>", so that it is obvious where the messages come from. - Since extracting the make(1) variables takes quite a long time, print an informational message before doing that. - Removed the use of the error-prone lintpkgsrc to detect whether a package is restricted or vulnerable. - If an error occurs, the upload program returns an exitcode of 1, which is common among Unix utilities. - Removed almost all pipe operators, since they tend to hide program failures. - All error messages are redirected to stderr instead of stdout.
2006-08-02Pullup ticket 1769 - requested by rilligsalo1-0/+94
add sort-packages program for bulk building Revisions pulled up: - pkgsrc/mk/bulk/sort-packages 1.1 Module Name: pkgsrc Committed By: rillig Date: Tue Aug 1 06:05:15 UTC 2006 Added Files: pkgsrc/mk/bulk: sort-packages Log Message: Added a program that sorts binary packages into categories, depending on whether they may be uploaded, are vulnerable, or good.
2006-07-27revert previous: wrong branchlukem1-3/+5
2006-07-27Remove ftp.au.netbsd.orglukem1-5/+3
2006-07-08Pullup ticket 1721 - requested by jlamsalo1-3/+3
infrastructure fix for "undo-replace" Module Name: pkgsrc Committed By: jlam Date: Wed Jul 5 19:13:46 UTC 2006 Modified Files: pkgsrc/mk/flavor/pkg: replace.mk Log Message: Fix two bugs which prevent undo-replace from working.
2006-07-01Add a script that can be used to scan for NO_BIN_ON_FTP packages usingdmcmahill1-0/+163
the cache files left by the README.html generation. This is indended to be used to monitor a ftp server, not for generating a file list for uploading to a ftp server.
2006-06-26m4 might not exist e.g. on Slackware, conditionalize it.joerg1-1/+3
2006-06-26Remove SuSE 7.3 version from SUSE_PREFER, set 10.0 as default and marksalo1-10/+5
9.1 as legacy option. SUSE 10.0 supports more architectures (i386, powerpc, x86_64) and is already required for some packages (e.g., acroread7). It will help to get more testing so we can phase out 9.1 before the next stable branch.
2006-06-25add .cz KDE mirrorjdolecek1-2/+3
2006-06-23Change the way that "\c" is processed within the msg strings: if wejlam1-1/+49
see \c, where c is anything but a legal character as defined by msgfmt-0.10.35, then replace the backslash with a '?'. Yes, this is a hack, but it works around a bug in the way that older msgfmt mis-identifies some "control" sequences. This fixes building of zh_TW.po in x11/matchbox-panel as noted in the bulk build results: http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html While here, note in a header comment which packages' *.po files to use for regression tests whenever changes to this file are made.
2006-06-23Fix typo that would cause check-shlibs to never find missing librariesjlam1-2/+2
needed by files in a package. Noted and fix suggested by <taca> in private email.
2006-06-23Remove "apache.towardex.com" (down) and "sunsite.tus.ac.jp" (redirectstron1-3/+1
to new version) from the list of Apache master sites.
2006-06-22SUBST_STAGE.* is currently not defined by all SUBST blocks, so disablerillig1-2/+3
PKG_FAIL_REASON in that case. It didn't have an effect anyway for normal builds, since subst.mk is included after checking PKG_FAIL_REASON. Discussed with jlam.
2006-06-22Restore ls -t | grep idiom, the whole package list is too big for thejoerg1-2/+2
argument list on at least on OS.
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.