Commit graph

13 commits

Author SHA1 Message Date
rillig
770f3bbb1d Fixed pkglint warnings. 2007-11-15 12:09:52 +00:00
rillig
4738580199 When cleaning up the working directories in WRKOBJDIR, also try to
remove the category directory, to not leave unnecessary empty
directories around.
2007-11-15 12:05:09 +00:00
adrianp
2fb736a53a s/PRIVILEGED_STAGE/PRIVILEGED_STAGES/g as it could refer to multiple
stages in the future.  Suggested by rillig@
2007-07-02 20:24:27 +00:00
adrianp
99287730ab Introduce PRIVILEGED_STAGE.
This can currently only be set to 'clean' which will result in a
priveleged 'make clean' operation in case any package builds result
in files under ${WRKSRC} that are owned by root.

This is useful for certain packages e.g. python (on NetBSD) and ezm3
and possibly more.
2007-07-01 00:06:40 +00:00
joerg
977a821a8f Add two variables to control whether make package and make clean
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-09 11:44:06 +00:00
jlam
76a1020667 Drop .ORDER declarations since pkgsrc doesn't support "make -j ...". 2006-08-09 15:31:01 +00:00
rillig
dac043b875 Suppress the warning from make(1) that the error code is ignored when
files cannot be deleted.
2006-08-02 16:53:00 +00:00
jlam
c489860d62 Whenever we invoke a recursive make, we need to ensure that the proper
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-27 21:46:45 +00:00
jlam
5ffee8aef3 Don't bother with error messages when attempting to remove the "work"
symlink in the pkgsrc tree in case it's actually a stale work directory.
This gets rid of this error:

===> Cleaning for pkg_install-20060701
rm: work: is a directory
*** Error code 1 (ignored)
2006-07-20 15:42:04 +00:00
jlam
3fbe129b69 Use PHASE_MSG, STEP_MSG, WARNING_MSG, and ERROR_MSG in place of ECHO_MSG
in various places.
2006-06-05 22:49:44 +00:00
jlam
536698c7d7 Fix antoher cut and paste (tabs-to-whitespace) bug. 2006-01-19 16:24:51 +00:00
jlam
6cd9d27066 Change leading spaces into a tab to fix clean if WRKOBJDIR is defined. 2006-01-19 16:19:37 +00:00
jlam
15e61bbe84 * Split out the "clean" targets and variables and put them into a separate
file pkgsrc/mk/bsd.pkg.clean.mk.

* Reimplement the clean target so that we don't need to invoke a separate
  make process just to do clean-depends.

* Reimplement clean-depends using a pipe to avoid command-line length
  issues.
2006-01-19 16:11:10 +00:00