summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
AgeCommit message (Collapse)AuthorFilesLines
2007-05-09Add two targets, pbulk-index and pbulk-index-item.joerg1-1/+5
pbulk-index-item prints a number of variables used by the parallel bulk build code during either the build, the report or the upload phase. pbulk-index checks whether multiple versions of the current package could be build (e.g. because multiple Python versions are supported) and uses pbulk-index-item for each possible combination. Thanks to David Laight for explaining the different between using :[#] in the body of a make target and in a clause of an .if. Powered-by: Google SoC 2007.
2007-04-01Fix quoting issue that gave syntax error when printing the messagekristerw1-2/+2
that new package tools are needed.
2007-03-02Remove warning about LIB_DEPENDS, it's sooooo long gone...wiz1-5/+1
2007-02-22Finished the split of PKGSRC_LOCKTYPE into LOCALBASE_LOCKTYPE andrillig1-3/+3
WRKDIR_LOCKTYPE. Added more documentation.
2007-02-20I find the ABI useful to know when looking at a binary package.rillig1-1/+2
2007-02-09MAKEFLAGS for su-${.TARGET} is ${MAKEFLAGS.su-${.TARGET}},obache1-2/+2
not ${MAKEFLAGS.${.TARGET}} . Fix non-root user update target.
2007-01-11Added the INFO_MSG command, which can be used when the user should berillig1-3/+4
noticed about something that is not severe enough to need a warning. INFO messages go to stdout instead of stderr. Added the :M* modifier to the INSTALL_MACROS to make the resulting command lines somewhat shorter.
2007-01-06Added the FAIL command, which can be prepended to an arbitrary shellrillig1-1/+6
command, making it return with a non-zero exit status. The first use of it is in a command called FAIL_MSG, which prints an error message and exits immediately. ERROR_MSG itself doesn't do that.
2007-01-02Cleaned up bsd.pkg.mk:rillig1-98/+55
- Removed some outdated comments. - Made the inclusion of other *.mk files uniform. - Replaced some instances of ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN}, since the latter is much shorter.
2007-01-02Moved the show-tools target to misc/show.mk.rillig1-60/+6
Moved the changes-entry target to misc/developer.mk. To save some time, that file is only included when PKG_DEVELOPER is defined. Moved the build-defs-message target to misc/show.mk and renamed it to show-build-defs, since almost all other *-message targets just print a single line.
2007-01-02Added an additional line to the parallel error message.rillig1-1/+3
Added an empty line to separate the description of su-target from the definition of _ROOT_CMD (for "make help").
2006-12-15Remove trailing spaces.martti1-2/+2
2006-11-26Moved the code that checks for PKG_FAIL_REASON and PKG_SKIP reason fromrillig1-2/+2
the internal/ directory to misc/, since it is not really internal to pkgsrc. Fixed the case where PKG_SKIP_REASON was not noticed by the bulk builds. Added the NOT_FOR_UNPRIVILEGED and ONLY_FOR_UNPRIVILEGED variables.
2006-11-19Use PKG_FAIL_REASON for platform checks, to make them work again.wiz1-2/+2
XXX: PKG_SKIP_REASON seems broken?
2006-11-16Moved the check for PKG_FAIL_REASON and PKG_SKIP_REASON at the very endrillig1-3/+2
of bsd.pkg.mk, so that all infrastructure parts may add their error messages to PKG_FAIL_REASON.
2006-11-14Moved the code that checks PKG_FAIL_REASON and PKG_SKIP_REASON into itsrillig1-39/+3
own file. The further plan is not to include this file in the middle of loading, but at the end, when no variables will be changed. This will allow the _whole_ pkgsrc infrastructure to generate errors with PKG_FAIL_REASON, which is currently not the case.
2006-11-05Some people really try to run pkgsrc's make with -j5 options. Since thatrillig1-1/+5
is not supported at all by pkgsrc, print an error message in that case.
2006-11-05Use REAL_ROOT_USER for configuration dirs.joerg1-2/+2
2006-11-05Rename _INSTALL_ROOT_USER to REAL_ROOT_USER. Use it as default forjoerg1-3/+3
SETUID_ROOT_PERMS.
2006-10-23Moved the help system into its own subdirectory. Extracted the AWKrillig1-2/+2
program into its own file, since that way, one can add comments to the code. For convenience, keyword search is case insensitive.
2006-10-22Added INCSDIR and LIBDIR to BSD_MAKE_ENV.rillig1-2/+5
2006-10-22The new variable BSD_MAKE_ENV defines BINOWN, BINGRP, etc.rillig1-1/+7
2006-10-22Added a variable RUN (no leading underscore) as abbreviation forrillig1-1/+8
${_PKG_SILENT}${_PKG_DEBUG}, so that this feature can be used by packages, too.
2006-10-15Include some more magic to set ownership of packages build withjoerg1-1/+3
use-destdir to ${ROOT_USER}:${ROOT_GROU}. This allows us to safely use it on all packages which don't install setuid/setgid binaries.
2006-10-10Added printf to USE_TOOLS, because it is used heavily by the "debug" andrillig1-3/+3
"help" targets.
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-03fix comment about CHANGES file for changes-entry, since the default isgdt1-2/+2
really CHANGES-YYYY
2006-08-04Fixed the locking, as suggested by Johnny on the tech-pkg mailing list.rillig1-9/+3
Added two targets acquire-localbase-lock and release-localbase-lock, which mark the complete LOCALBASE directory as locked, so that multiple packages cannot run the install, deinstall or bin-install targets at the same time. The install target aquires locks in both WRKSRC and LOCALBASE, the other two targets only need the LOCALBASE lock, since they may be run without WRKSRC being present on the system. locking.mk must be included before tools.mk and the PKG_FAIL_REASON check.
2006-08-04Moved the bin-install target from bsd.pkg.mk to install/bin-install.mk.rillig1-34/+2
Added documentation. Added locking around the real installation.
2006-08-04In the "makedirs" target, it is clear that the lock file is always therillig1-6/+4
_WRKDIR_LOCKFILE and never _PREFIX_LOCKFILE, so use that to keep things simple. Replaced ECHO with ECHO_MSG in the message for creating the WRKDIR symlink.
2006-08-04Moved the locking code from bsd.pkg.mk into its own file. Where here,rillig1-73/+2
added a more detailed header comment and fixed a bug concerning lockdir.
2006-08-03When installing or deinstalling a package, it is not enough to lock therillig1-20/+35
WRKDIR against foreign processes. Instead, the PKG_DBDIR is locked, preventing other (pkgsrc) processes from modifying the set of installed packages while another one is doing that. This allows to use "bmake update" efficiently on multi-processor machines by just running it in four different package directories. Note that the pkg_add and pkg_delete tools may still interfere with this locking when they are directly run.
2006-08-02Added bsd.pkg.help.mk, which provides the "help" target.rillig1-2/+5
Since more and more files follow the convention of documenting variables in a common format, it makes sense to be able to get the documentation of a single variable by simple means, instead of searching through the whole mk/ directory. Try "make help TOPIC=CONFIGURE_DIRS" for an example.
2006-07-27Whenever we invoke a recursive make, we need to ensure that the properjlam1-8/+3
environment ${PKGSRC_MAKE_ENV} is also passed along. Create a convenience variable RECURSIVE_MAKE that does exactly this and that can be used in place of MAKE when invoking make recursively. Use RECURSIVE_MAKE everywhere in pkgsrc/mk that we invoke make recursively.
2006-07-27After auditing all the packages the ensure that they never invoke thejlam1-2/+2
compiler toolchain until the configure stage, move the "wrapper" stage back to between "patch" and "configure". This makes "make extract NO_DEPENDS=" work again for all packages.
2006-07-26Pass MAKECONF down to recursive make processes to ensure they all usejlam1-1/+6
the same ${MAKECONF} file.
2006-07-26Ensure that the just-in-time su command invoked has the same environmentjlam1-2/+3
as other recursive make processes (PKGSRC_MAKE_ENV).
2006-07-21Rearrange sequence so that "wrapper" occurs between "tools" andjlam1-2/+2
"extract". This allows all user-definable targets (pre-*, do-*, post-*) to have access to the wrapper scripts.
2006-07-20Include the file bsd.pkg.debug.mk if requested by invoking the "debug"rillig1-1/+4
target.
2006-07-17Added LOCALBASE, PKGINFODIR and PKGMANDIR to _BUILD_DEFS, since theyrillig1-1/+4
influence the way the package is installed. Also, they are so commonly used that it would be a nuisance to add it to every package Makefile.
2006-07-15Split the variable BUILD_DEFS into those that are defined by packagesrillig1-44/+15
and those that are defined by the infrastructure (_BUILD_DEFS). This allows the build-defs-message target to be moved to the end of bsd.pkg.mk. Now it prints the correct result even in unprivileged builds, which had been wrong due to the order in which the files have been included. For example, ${UNPRIVILEGED_USER} was displayed as (not defined) although its value was defined, which could be checked with "bmake show-var". Tested with one package that _does_ define BUILD_DEFS and with one that doesn't. The behavior stays the same.
2006-07-13Remove line noting that "this file was derived from bsd.ports.mk".jlam1-3/+1
The contents of this file are no longer remotedly related to bsd.ports.mk, and pkgsrc's heritage from ports is documented elsewhere.
2006-07-13* Add a new stage "bootstrap-depends" that happens before all otherjlam1-199/+18
stages, and that installs dependencies listed in BOOTSTRAP_DEPENDS. The bootstrap-depends step works just like the normal depends step and honors the value of DEPENDS_TARGET. It's now possible to add dependencies solely to facilitate fetching the distfiles, e.g. BOOTSTRAP_DEPENDS+= curl-[0-9]*:../../www/curl * Teach the tools framework about ":bootstrap" as a tools modifier which indicates the tool should be added as a dependency via BOOTSTRAP_DEPENDS. * Add "digest" to the tools framework. * Use USE_TOOLS+=digest:bootstrap to force pkgsrc to install digest before anything else. Get rid of unused "uptodate-digest" target and related digest version-checking code. * Finish the refactoring work: split checksum-related code out of bsd.pkg.mk and into pkgsrc/mk/checksum and replace the "checksum" target command list with a script that does all the real work. * Make DIGEST_ALGORITHMS and PATCH_DIGEST_ALGORITHM into private variables by prepending them with an underscore. Also, rename _PATCH_DIGEST_ALGORITHM to _PATCH_DIGEST_ALGORITHMS and adjust the makepatchsum target to allow that variable to contain a list of algorithms, all of which are used when creating the patch checksums for ${DISTINFO_FILE}.
2006-07-10Completely nuke the concept of PKG_PHASE from pkgsrc except for thejlam1-3/+2
purposes of caching MAKEVARS within bsd.pkg.mk and bsd.makevars.mk.
2006-07-08Update the comments to reflect the current default workflow.jlam1-2/+4
2006-07-07Rename <phase>_COOKIE variables to _COOKIE.<phase>. These are privatejlam1-2/+2
variables so there are no user-visible changes. This change just makes it a little easier to write for loops.
2006-07-07Remove the commands that tried to make the ${X11BASE} directory if itjlam1-8/+2
didn't exist. Those commands were never run anyway, but moving the .MAIN target exposed these commands as unassociated.
2006-07-06Make it a little easier to read the lock/unlock output by inserting somejlam1-3/+3
quotes.
2006-07-06Refactor the README.html generation code from bsd.pkg.mk into a separatejlam1-314/+4
bsd.pkg.readme.mk and document the public targets and variables for this new file.
2006-07-06Fix previous... instead of moving bsd.pkg.barrier.mk down below .MAIN,jlam1-6/+6
move .MAIN all the way to the top of the file. bsd.pkg.barrier.mk (currently) needs to be included before bsd.wrapper.mk since it defines _BARRIER_COOKIE, which is expanded and used in place within bsd.wrapper.mk. This makes the "wrapper" phase run again.