Commit graph

26 commits

Author SHA1 Message Date
gdt
837f3385ae Add notes of things that need fixing:
# XXX Accumulate commit message during each operation, so that a final
# commit operation will have a sensible message with all of the
# previous operations.

# XXX Fail if uid is 0, or perhaps != CVS meta files owner, to catch
# the case of invoking these targets as root.
2007-09-09 22:57:04 +00:00
jlam
07dd3147c6 Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead.

Remaining usage of USE_INET6 was solely for the benefit of the scripts
that generate the README.html files.  Replace:

	BUILD_DEFS+=	USE_INET6
with
	BUILD_DEFS+=	IPV6_READY

and teach the README-generation tools to look for that instead.

This nukes USE_INET6 from pkgsrc proper.  We leave a tiny bit of code
to continue to support USE_INET6 for pkgsrc-wip until it has been nuked
from there as well.
2007-09-07 22:12:10 +00:00
rillig
9e9a86e7cc When PKG_DEBUG_LEVEL is 2 or more, the make target is printed for every
shell command that is run via the RUN macro. This makes the output a
little more verbose, but when you have the need to set PKG_DEBUG_LEVEL
that high, you can probably need the extra help you get from this
change.
2007-08-13 08:45:17 +00:00
rillig
6aecf48699 Added mk/misc/category.mk, which contains the definitions that are only
useful for category Makefiles, as opposed to bsd.pkg.subdir.mk, which is
also relevant for the top-level directory. Adjusted the category Makefiles.
2007-08-13 08:12:41 +00:00
rillig
7d184f93ff Moved the stuff that is common to all directories of pkgsrc into its own
file. Now "make help" can be called from the top-level directory,
avoiding to parse lots of buildlink3.mk files just to get some help.
2007-08-13 06:03:46 +00:00
gdt
6e460feeda Add wiz's request, add a changes-entry-noupdate that has the old
behavior of just appending to the file without cvs update (or cvs edit
if not writable), for the convenience of those committing multiple
package updates at once.  To implement this, split the
update/cat/commit into elementary targets and compose them to form the
user-exposed targets, spiff up the comments, and rationalize .PHONY
usage.
2007-08-02 11:52:14 +00:00
gdt
ff5558bc4c Rationalize changes-entry and commit-changes-entry.
changes-entry now does cvs update (and cvs edit if needed), and adds
the line.  This target will behave the same way (with extra CVS
traffic) if the file is up to date, and will be omre useful if
CHANGES-YYYY is not up to date.

commit-changes-entry depends on changes-entry and also commits.  This
target has no behavior changes.

Rename _CCE_FOO variables to PKGSRC_CHANGES_FOO, and merge with
existing varables.

We may need a changes-entry-no-update, or a new name for what
changes-entry does now.  Given how infrequently CHANGES-YYYY is up to
date when I want to add, I believe the new behavior will be welcome to
almost everyone.
2007-07-28 12:23:17 +00:00
gdt
13a15e5263 In cce, run cvs edit if the file is not writable. This occurs with
CVSREAD=t, and should result in unchanged behavior with writable
files.  Split _CCE_CHANGES definition into _CCE_CHANGES_{DIR/BASE} to
facilitate above.
2007-07-21 22:31:02 +00:00
rillig
e0a28fcf8c Added code to display warnings at package build time. Among others, this
will be used for the licenses.
2007-07-20 14:08:19 +00:00
rillig
d65eda96ee When looking for help for _vargroups, the show-all target will be shown. 2007-05-07 09:35:53 +00:00
wiz
6dfc0822ec Support "Removed" again. Fix typo in comment. 2007-04-01 21:14:27 +00:00
rillig
3279664f38 The single-letter labels (U, P, S) could easily be confused with the CVS
status (there is also U and P), so it is changed to three-letter labels
(usr, pkg, sys).
2007-03-16 10:28:50 +00:00
rillig
06d7235c76 After the quick fix from some minutes ago, here is the better solution.
Just don't evaluate variables at load-time, but at run-time.
2007-03-16 10:05:20 +00:00
rillig
c319d43a9e Don't evaluate variables unless there's reason to do. This fixes warning
messages like:

cd ${WRKOBJDIR}/x11/kdebase3/work/kdebase-3.5.6 && echo "__dummy-ent ...
cd: can't cd to ${WRKOBJDIR}/x11/kdelibs3/work/kdelibs-3.5.6
2007-03-16 09:53:37 +00:00
rillig
66bf916302 For all those who are interested in the inner workings of pkgsrc, there
is a new target "show-all" that fits to the existing "debug",
"show-tools", "show-vars" targets. It prints a list of the variables
that make up the public interface to pkgsrc. Running this target is
especially useful if you want to do some things, you know that they must
have been implemented but you don't know what it is called. It also
shows the "class" of a variable (user-defined, package-defined,
system-defined).
2007-03-15 22:54:24 +00:00
rillig
6d687a884a Forgot to disable the "echo-only" mode in the last commit.
Now "make cce" really commits.
2007-03-14 17:53:03 +00:00
rillig
c09a97f2db Added the target "commit-changes-entry", or "cce", which adds a single
package change to the CHANGES file and commits it.

Added error checking to the changes-entry target.
2007-03-14 16:21:58 +00:00
rillig
e92c96025d Reformatted the documentation. 2007-03-08 23:38:43 +00:00
rillig
1205636186 Added a check for PKG_INSTALLATION_TYPES. 2007-02-10 09:01:05 +00:00
rillig
97bb220eca White-space and comment improvements. 2007-02-06 20:06:38 +00:00
rillig
b69640f761 The tool definitions must come before including bsd.prefs.mk. Pointed
out by wiz.
2007-01-07 00:57:36 +00:00
rillig
b0bdba276b Moved the make targets from the top-level Makefile to their own file,
mk/misc/toplevel.mk. Added a bit of documentation.
2007-01-06 17:10:42 +00:00
rillig
43908c44cc Moved the show-tools target to misc/show.mk.
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-02 21:29:07 +00:00
rillig
9e832d3e5c Ignore ccache and distcc in PKGSRC_COMPILER for the check for
ONLY_FOR_COMPILER. For the opposite test, using NOT_FOR_COMPILER, they
may still be specified.

Fixes PR 35173.
2006-12-03 21:58:20 +00:00
rillig
aaaa83002a Readded the check for NO_SKIP and documented that variable. 2006-12-03 21:47:26 +00:00
rillig
714dc5ff6b Moved the code that checks for PKG_FAIL_REASON and PKG_SKIP reason from
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-26 08:37:03 +00:00