Commit graph

5733 commits

Author SHA1 Message Date
minskim
69e7be5b27 Remove references to teTeX2. 2006-08-10 03:35:33 +00:00
jlam
76a1020667 Drop .ORDER declarations since pkgsrc doesn't support "make -j ...". 2006-08-09 15:31:01 +00:00
jlam
39b54abe7c Only acquire the localbase lock after acquiring root privileges. This
fixes "make install" using just-in-time su-to-root.
2006-08-09 15:25:49 +00:00
cube
7e44cbf35d Add "dvipdf" to the list of tools provided by ghostscript. 2006-08-07 14:54:14 +00:00
schwarz
ff389f044d CPP on IRIX 5 with IDO cc is /usr/lib/cpp 2006-08-06 18:59:41 +00:00
jmmv
476a9de1a8 Add the mg locale directory (to be used by libgtop2). 2006-08-06 11:36:59 +00:00
jmmv
74a4c2179c Handle the share/pkgconfig directory where platform-independent packages
(e.g. gtk-doc 1.6) want to install .pc files.
2006-08-06 09:35:39 +00:00
perry
132c931981 add an http: urls for gnome and gnu for the benefit of those with
broken ftp proxies
2006-08-06 04:56:50 +00:00
wiz
d46ae655fd Document sane-backends-hp3900. 2006-08-05 22:42:20 +00:00
rillig
a5c5777ae5 Fixed the locking, as suggested by Johnny on the tech-pkg mailing list.
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-04 20:52:27 +00:00
reed
47ccc64eca Make sure requires and libs (PROVIDES) are set for
packages that use a sub-directory for prefix, like
/usr/pkg/qt3/.

(I have been using this for a couple years but recently
merged my patch over to new flavor mk file.)

Okayed by jlam on tech-pkg.
2006-08-04 14:11:29 +00:00
rillig
365f9b5258 Added bsd.options.mk to the help files. As an alternative to TOPIC,
topic may be used to avoid forcing people to use the shift key.
2006-08-04 07:34:25 +00:00
rillig
edafa3ed56 Rewrote the header comment so that "bin-install" can be found by "bmake
help".
2006-08-04 07:17:58 +00:00
rillig
2b12ad4712 Moved the bin-install target from bsd.pkg.mk to install/bin-install.mk.
Added documentation. Added locking around the real installation.
2006-08-04 07:04:38 +00:00
rillig
634ea54e44 In the "makedirs" target, it is clear that the lock file is always the
_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-04 06:27:27 +00:00
rillig
dbef31038e Moved the locking code from bsd.pkg.mk into its own file. Where here,
added a more detailed header comment and fixed a bug concerning lockdir.
2006-08-04 05:55:18 +00:00
rillig
7487a78a0c When installing or deinstalling a package, it is not enough to lock the
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-03 19:12:42 +00:00
salo
4d7889fa96 Add "itlocaledir" to the list of directory patterns to replace.
From Gilles Dauphin via PR pkg/34103
2006-08-03 16:49:48 +00:00
jlam
f3381a1115 Typo in comment. 2006-08-03 14:02:58 +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
tron
03fcef2986 Removed dead mirror "ftp.uk.kde.org" from list of KDE master sites. 2006-08-02 15:31:02 +00:00
rillig
0d658e0cae If the first word after the "#" is a variable name, the line above must
have been empty to qualify as a comment. Otherwise "make help
TOPIC=configure" shows a lot of misleading contents.

Removed the duplicate appearance of RCS Ids in the help texts, which
often occured when the help text was the header comment of a file.
2006-08-02 10:50:00 +00:00
rillig
b0c3ffe91b A common documentation format is to have the variable name as the first
word after the leading "#" for the comment. This format is also
recognized. The RCS Id of the current file is printed together with the
help text, so that the user can see which file defines the variable.

Removed the :M* operator for _HELP_AWK, since bmake has a bug when "" is
passed to the :M* operator. I've sent a bug report for this.
2006-08-02 10:29:47 +00:00
rillig
a532efd3df Added bsd.pkg.help.mk, which provides the "help" target.
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-08-02 09:46:22 +00:00
uebayasi
7e4fbabf50 http://prdownloads.sourceforge.jp/ doesn't work for me. Remove it. 2006-08-02 07:09:52 +00:00
schmonz
51cec25da6 Pass CPPFLAGS in conf-cc and LDFLAGS in conf-ld. 2006-08-02 02:25:46 +00:00
rillig
5b2a5cfec6 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 "upload>",
  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-01 13:16:41 +00:00
rillig
aeeeee3d46 Always create the files for the lists, even if they would end up empty. 2006-08-01 07:50:04 +00:00
rillig
9aefe26fce Oops, fixed a typo and tested it again. Now it works. 2006-08-01 06:10:44 +00:00
rillig
e888cd24c2 Added a program that sorts binary packages into categories, depending on
whether they may be uploaded, are vulnerable, or good.
2006-08-01 06:05:15 +00:00
dmcmahill
f1ac5f909e - 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
2006-08-01 00:53:24 +00:00
jlam
5aa00032dc From the second point in Krister's mail to tech-pkg:
http://mail-index.netbsd.org/tech-pkg/2006/07/30/0005.html

   2. Too much is logged in the .wrapper.log

       The wrappers log quite a lot of detailed information by
       default, with the result that my .work.log file is 176236028
       bytes {for ghc}.

       The wrapper functionality is mature, so this detailed
       information is seldom needed, and you can in general determine
       what happened by looking at the input/output-lines (i.e.
       those lines marked as "[*]" and "<.>" in the .work.log).
       I would therefore like to change the default behavior to
       only log the input/output-lines.

Flip the switch for WRAPPER_DEBUG from "yes" to "no" by default so
that the detailed and rather verbose "push", "pop", "transform", etc.
messages are not printed.  While here, also make WRAPPER_DEBUG a
pkgsrc-private variable by prepending with an underscore.
2006-07-31 14:53:45 +00:00
jlam
50086541bd Use 'debug_log' instead of 'msg_log' so that these wrapper internals aren't
exposed unless WRAPPER_DEBUG is set to "yes".
2006-07-31 14:43:48 +00:00
jschauma
a380b42fa0 - use ${BMAKE} instead of 'make' in one instance
- if we can't build one of the required packages, bail out
2006-07-30 14:31:10 +00:00
dmcmahill
c667b853e3 Update the usage output to reflect current reality. Noted by Stoned
Elipot.
2006-07-28 20:52:35 +00:00
dmcmahill
99b57ce645 remove spurious empty line at the top of the summary files 2006-07-28 18:41:53 +00:00
dmcmahill
63bfc354d4 Allow the binpkg-cache script to also generate pkg_summary.gz files
if requested.  Suggested by Joerg Sonnenberger.
2006-07-28 02:41:07 +00:00
lukem
0c96f9fca5 Remove ftp.au.netbsd.org. 2006-07-27 23:07:18 +00:00
jlam
d5fdba9ab3 Add back CONFLICTS handling that was accidentally left out when revision
1.1 of this file was committed and the same code was removed from
bsd.pkg.mk.
2006-07-27 22:16:06 +00:00
jlam
b5e83f7d36 Remove all uses of the following targets from pkgsrc:
show-all-depends-dirs
	show-all-depends-dirs-excl

Replace them with calls to pkgsrc/mk/scripts/depends-depth-first.awk
which does the same thing but without the extra overhead of invoking
a recursive make.
2006-07-27 22:01:28 +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
joerg
03cba20b8e Make the language warning a bit less forceful, since it is often a false
warning.
2006-07-27 20:07:06 +00:00
jlam
ccdf6dbe01 Rename "SITES_* to "SITES.*" for file-specific lists of sites from which
to fetch the file.  This completes the renaming described in revision
1.1799 of bsd.pkg.mk.
2006-07-27 18:48:02 +00:00
jlam
182dc839b5 Document the targets in fetch-list.mk. 2006-07-27 17:29:57 +00:00
jlam
1796f4ff8a Note that "fetch-list" is a public target. 2006-07-27 17:28:38 +00:00
jlam
bac7fb376d Remove an unnecessary recursive make invocation. 2006-07-27 17:23:16 +00:00
jlam
cb7b7bfbd8 Replace this:
for i in `cmd`; do ...; done

with this:

	cmd | while read i; do ...; done
2006-07-27 17:14:56 +00:00
jlam
817fd9ec0d All of the other *SITES* variables are plural, so rename DYNAMIC_SITE_*
to DYNAMIC_SITES_* for consistency.
2006-07-27 16:06:27 +00:00
jlam
e7af7b2e05 Apply the "convention over configuration" principle:
If ${FILESDIR}/getsite.sh exists, then use it to determine the fetch
URL for each of the distfiles for the package.  Otherwise, use
SITE_<file> and MASTER_SITES, in order, to determine the URL for each
distfile.

If the script path differs from ${FILESDIR}/getsite.sh, then set
DYNAMIC_SITE_SCRIPT to the full path to that script.

Remove the need to set DYNAMIC_MASTER_SITES explicitly in the package
Makefile for:

	graphics/ns-cult3d
	wm/sawfish-themes
	www/apache-tomcat55
	www/jakarta-tomcat4
	www/jakarta-tomcat5
2006-07-27 15:16:44 +00:00
rillig
be75f6ee56 The intention behind REPLACE_BASH was to make replacing /bin/sh with
${BASH} easy, so the pattern that is replaced is now .*sh instead .*bash.
2006-07-27 14:51:54 +00:00