summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2006-10-09Main infrastructure for DESTDIR support.joerg12-50/+119
Packages may set PKG_DESTDIR_SUPPORT to either "destdir" or "user-destdir" to flag support for this, following the same rules as PKG_INSTALLATION_TYPES (e.g. define before first include of bsd.prefs.mk). The user activates it via USE_DESTDIR. When set to "yes", packages with "user-destdir" are handled as "destdir". The installation of the package will not go to ${LOCALBASE}, but a subdirectory of ${WRKDIR} instead. pre/post install scripts are not run and the package is not registered either. A binary package can be created instead to be installed normally with pkg_add. For "user-destdir" packages, everything is run as normal user and ownership is supposed to be correctled by pkg_create later. Since the current pkg_install code uses pax and it doesn't allow overwriting owners, this does not work yet. For "destdir" packages, installation, packaging and cleaning is run as root. This commit does not change the handling of DEPENDS_TARGET or bin-install to allow recursive usage.
2006-10-09Add variable to control whether the install target is run as root.joerg2-2/+8
2006-10-09Add two variables to control whether make package and make cleanjoerg4-23/+20
are run with elevated privileges. Remove MAKE_PACKAGE_AS_ROOT for now, since it is not sure whether the functionality in the current form will stay and developers should spend time on the destdir support instead.
2006-10-09Introduce _SU_ROOT_USER, which can be used for partially unprivilegedjoerg1-4/+7
builds, when the normal ROOT_USER overrides should happen, but su-target is still desired to work.
2006-10-09Backout rev 1.13 of rillig. Addresses PR 34764 and complains onjoerg1-9/+7
pkgsrc-users.
2006-10-09Forgot to provide the default value for EXTRACT_DIR.rillig1-2/+4
EXTRACT_DIR may be given relative to WRKDIR.
2006-10-09Added the EXTRACT_DIR variable, which can be used if the distfiles shouldrillig1-2/+13
not be extracted into ${WRKDIR}.
2006-10-09Replaced the pipe operator with temporary files, since the former hidesrillig1-7/+9
errors. Now "make depends" stops on dependency directories that don't exist. The dependencies are first extracted into two temporary files and then combined with cat(1) because otherwise "make depends" passes silently on errors when it is called for the second time. Somehow ${.TARGET} didn't get removed.
2006-10-08Added a new variable MAKE_PACKAGE_AS_ROOT that controls whether therillig2-2/+19
package needs to be packed by root or whether the unprivileged user can do that as well. Most packages don't need root privileges, but the default value is nevertheless "yes" to not break too many existing packages. pkgsrc users are encouraged to add the following to their mk.conf: MAKE_PACKAGES_AS_ROOT?= no The "?=" operator here is important because after the testing phase, this variable is only intended to be set by packages. If "=" would be used instead, packages could not override the value.
2006-10-08Remove the +BUILD_DEFS file before overwriting it. This is necessary torillig1-3/+5
allow most of the packages to be created as unprivileged user, since the +BUILD_DEFS file is created by the privileged user in the "install" phase.
2006-10-08Made the code simpler and added "set -e".rillig1-7/+6
2006-10-08pkg/34695: Static list of package master sites may (and often will)mishka2-8/+32
lead to overloads of very first distribution site. Moreover, if first site in the list is not available (often seen for sourceforge mirrors) you have to wait for timeout each time. To distribute load on master distribution sites and to make second problem not so annoying randomly intermix list of MASTER_SITES with MASTER_SORT_RANDOM feature. Any of MASTER_SORT and MASTER_SORT_REGEX can be applied later. The feature is turned ON by default and is disabled for PKG_DEVELOPERs or if MASTER_SORT_RANDOM=no.
2006-10-07Meta-packages that had DIST_SUBDIR set (for whatever reason) tried torillig1-5/+5
fetch files with an empty name, for example "geda/". The problem was that the expression ${LIST:S,^,${DIST_SUBDIR}/,} results in ${DIST_SUBDIR}/ when ${LIST} is empty. This is surprising but matches the documentation in the manual page, so this cannot be called a bug. The proper fix is to use ${LIST:@f@${DIST_SUBDIR}/${f}@} instead. Noticed by Don Woodstock on #netbsd-code.
2006-10-07Renamed the "pack" option for _PRESERVE_WRKSRC to "pack-if-failed",rillig1-4/+5
since that's what I really wanted. It's just one day old, so I hope that nobody has gotten used to it.
2006-10-06Added more error checking: If a directory is specified inrillig1-1/+5
INSTALLATION_DIRS but a regular file of the same name already exists, the BSD install(1) program doesn't care but exits successfully. To avoid much more confusing error messages, this is checked here, and a _good_ error message is printed.
2006-10-06Instead of removing error and warning messages, they are collected inrillig1-7/+9
.error-done and .warning-done, so they can be inspected later.
2006-10-06Added a call similar to "make error-check" when the real target failsrillig1-2/+14
for some reason. That way, error and warning messages that have long been hidden are now shown. They don't appear very prominently by now, but it's much better than showing them not at all.
2006-10-06Remove references to DESTDIR. LOCALBASE should not be altered that way,joerg3-9/+9
since it is user settable and most of the time set by the user. X11BASE follows the same reasons. For staged installations, we don't want to register the package directly, so there's no need to prefix PKG_DBDIR either.
2006-10-06Kill ancient runes: /usr/local as LOCALBASE was not the default forjoerg1-17/+1
ages and mk.conf from bootstrap sets it explicitly anyway. The pkg_install stuff also lives in sbin.
2006-10-06Always use LOCALBASE setting from mk/defaults/mk.conf.joerg5-14/+5
Setting it with ?= in the platform files is a nop anyway.
2006-10-06_PRESERVE_WRKDIR can be set to "pack" to save a .tar.gz archive ofrillig1-3/+10
WRKDIR in the directory where the other log files are.
2006-10-05Add experimental support for -j jobs building in the buildreed2-4/+18
target. MAKE_JOBS is undefined by default. You can test this by setting in mk.conf: MAKE_JOBS=5 for example. Some package just won't build correctly with this -- these individual packages can set MAKE_JOBS_SAFE=no to disable it. This is based on discussion from last December 2005. Some pkgsrc users are using ideas like this. Note I have been using this since December 2005 on various single processor and multiprocessor systems. (Once I kept some stats on performance but have misplaced that now.) I haved tested this with many packages (but not a bulk build) on Linux, NetBSD and DragonFly. This commit doesn't include the commits for the MAKE_JOB_SAFE. As this is experimental it needs more testing. Some examples of problems are: comms/lrzsz, databases/gramps2, editors/vim, graphics/MesaLib, graphics/netpbm, net/bind9, print/ghostscript-esp, textproc/libxml, and www/lynx.
2006-10-05Suppress the message that ".DDIR is up-to-date" by introducing a .PHONYrillig1-3/+6
target.
2006-10-05If a word in a configure script is "#", stop scanning that line forrillig1-1/+3
"test ==".
2006-10-05Replaced "test -f" with "ls". That way, broken symbolic links are alsorillig2-4/+4
replaced with the pkgsrc versions of libtool, config.guess and others.
2006-10-05It's SKIP_PORTABILITY_CHECK, not SKIP_PORTABILITY_CHECKS.rillig1-2/+2
2006-10-05Both, the pkgsrc user and the package maintainer must agree that thisrillig1-3/+3
package should run the CHECK_FILES test. Otherwise we cannot prevent the broken shells/standalone-tcsh from scanning the whole filesystem. (hi agc!)
2006-10-03fix comment about CHANGES file for changes-entry, since the default isgdt1-2/+2
really CHANGES-YYYY
2006-10-03Rewrote the bin-install target so that it doesn't lock LOCALBASErillig1-20/+31
recursively. This bug was reported by Hans Rosenfeld in http://mail-index.netbsd.org/tech-pkg/2006/10/03/0002.html As a side effect, when bin-install fails to install a binary package, the package is still built from source, but not as a privileged user.
2006-10-02Change the quoting to let this work with solaris-2.9 /bin/sh.dmcmahill1-2/+2
The particular /bin/sh bug that was biting here is "${x}"/*/*/"$y" doesn't expand the *'s if $y starts with a "." which, unfortunately, it does. Using "${x}"/*/*/$y works correctly.
2006-10-02Some fixes:rillig1-6/+2
- PKG_DEVELOPER may be undefined, meaning "no". - Removed unused variables. - Removed a trailing empty line.
2006-10-02Added a new compile-time check that detects the usage of the "=="rillig2-1/+67
operator in test(1). It is enabled by default when PKG_DEVELOPER is selected. In my private bulk build of about 3700 packages, there had been no false positive.
2006-10-02Replaced ${RECURSIVE_MAKE} with ${SH}, so that the README.html files canrillig1-2/+2
be generated again.
2006-10-01Progress messages are prefixed with "sort-packages>", not "upload>".rillig1-2/+2
2006-10-01Reformatted the header comment to be searchable by bsd.pkg.help.mk.rillig1-59/+36
2006-10-01All the files in mk/ are searched for helping information.rillig1-7/+9
Variable help texts may also start with the variable name, followed by a colon. The help message is more detailed.
2006-10-01The value of PKG_OPTIONS_VAR is printed as is in an error message. Thisrillig1-2/+3
makes "double quotes" visible when they are accidentally included by the pkgsrc user.
2006-09-27Remove XFree86.joerg5-35/+14
2006-09-26Use /bin/mount if it exists on Linux, because some distros (e.g. Ubuntuminskim1-2/+6
Linux) do not have /sbin/mount.
2006-09-25Adjust MASTER_SITE_MOZILLA.salo1-8/+6
2006-09-25PR pkg/33876: use the actual package name instead of "this package" inghen1-2/+2
supported-options-message. ok with wiz.
2006-09-24Generalize Mozilla GTK2 packages in a comment.salo1-2/+2
2006-09-24Describe "seamonkey" gecko option.salo1-0/+1
2006-09-22- Compute CHEKCK_FILES filter on the entries requested and keep itjoerg4-12/+28
as tight as possible. Files we don't handle shouldn't be skipped. - fonts.alias is not created automatically, so don't remove it. - create fonts.encoding with mkfontdir using -e X11_ENCODINGSDIR. On platforms not following the X11R6 loayout this might need to be overriden. - Fix type1inst calls. - Modify packages which installed fonts.alias before to actually include it in the PLIST and bump the revisions accordingly. - Modify xorg-fonts* packages to use FONTS_DIRS.* to build indices at run time. Discussed with wiz and jlam.
2006-09-19Bugfix: In the #! interpreter lines, allow white-space behind the #!.rillig1-2/+2
This fixes the build for audio/madman. Before, only some of the interpreters had been replaced.
2006-09-19Even if NO_CHECKSUM is set, the "checksum" target still needs to dependrillig1-2/+2
on "fetch". Otherwise the distfiles are never fetched.
2006-09-18Define "NOLOGIN" to "/usr/bin/false" rather than ${FALSE} (which doesn'ttron1-3/+2
contain the directory name) and don't set "_PKG_USER_SHELL" which should really be private to "bsd.pkginstall.mk".
2006-09-17When $debug_log is set to ":" and at the same time $IFS is ":", therillig3-3/+7
command line $debug_log $arguments tries to execute the empty command. This results in error messages of the form cc[50]: : cannot execute (IRIX) bash: : command not found (Bash) : permission denied (NetBSD /bin/sh) Setting IFS to the original value as soon as possible fixes these bugs. Fixes PR 34135.
2006-09-17Fixed the "unknown command" error messages for debug_log, which is arillig9-57/+57
variable, not a shell function.
2006-09-17Also ignore fontconfig cache like the "clasic" databases.joerg1-1/+2