Commit graph

2151 commits

Author SHA1 Message Date
schmonz
97b0067034 Introduce NO_PKGTOOLS_REQD_CHECK, with which a package can disable
warnings about out-of-date pkg_install. It's defined in pkgtools/digest,
pkgtools/pkg_install, and databases/db (needed by pkg_install).

Replace sequences of ${ECHO_MSG} and ${FALSE} with PKG_FAIL_REASON.

Replace "make" with ${MAKE} in a few places.
2003-01-09 13:16:38 +00:00
jlam
27d0cedb05 Teach buildlink2 about ${_OPSYS_RPATH_NAME} instead of just using -Wl,-R
everywhere.
2003-01-08 08:33:54 +00:00
jlam
23c71bd134 Also substitute for @BUILDLINK_X11_DIR@ in the wrapper scripts. This was
a harmless bug, and the scripts will now run a little faster.
2003-01-07 21:56:10 +00:00
jlam
ec198db7a5 Output warnings to stderr, not to stdout (duh!) 2003-01-07 07:34:39 +00:00
jlam
722f6a3d3d Don't complain about (correct) .buildlink leakage in the fake libtool
archive case.  Also output errors to stderr, not stdout (duh!).
2003-01-07 07:34:08 +00:00
grant
01eae24936 use ${LOCALBASE}/{g,}patch (in that order) if gpatch is not in
the base system.
2003-01-06 22:29:23 +00:00
jlam
d852427494 Catch buildlink2 leakage as soon as it happens during the build process.
This will hopefully prevent leakage from ever happening unnoticed.
2003-01-06 09:06:09 +00:00
jlam
5adb04fe9b Fix buildlink2 leakage into installed libtool archives that has been going
on since 2002-10-30.  This mostly affects KDE packages.
2003-01-06 09:04:29 +00:00
jlam
0e29f29c69 Some changes for Bourne shells that don't match NetBSD's feature-set:
if ! test ...; then ...; fi

becomes:

	if test ! ...; then ...; fi

and

	if ! command; then ...; fi

becomes:

	if command; then :; else ...; fi

This fixes PR 19690 by Frank Cusack <fcusack@fcusack.com>.
2003-01-06 04:30:12 +00:00
jlam
60415acdfc Remove a unused hack (it was only used by pthread.buildlink.mk, which is
now gone).
2003-01-05 22:48:12 +00:00
dmcmahill
3c18e7dacd add a -a|--append option to allow appending to an existing database instead of
creating a new one.
2003-01-05 15:17:24 +00:00
dmcmahill
742bcd19d1 Switch the top level pkgsrc 'readme' and 'cdrom-readme' targets to use the
new and much more efficient code.  Previously a 'make readme' took over
3 weeks on my SS5 and now takes < 3 hours.  The number of make calls has
been reduced from somewhere over 1,000,000 to one per package which is
around 3,000.  The mk/scripts/mkreadme script does all the work now.  This
script has been used in standalone form for a month or two on ftp.netbsd.org
and has had no problem.
2003-01-05 13:37:15 +00:00
lukem
68108c1bfb when invoking genreadme.awk, set TMPDIR correctly 2003-01-05 00:40:46 +00:00
dmcmahill
76343e4400 expr -> ${EXPR} 2003-01-04 22:27:46 +00:00
dmcmahill
81ddc1c49d redo the README.html target for increased speed. For packages with
no dependencies the speedup is about 2x for ones like gnome with
lots of dependencies, the speedup is aroud 400x.  The speedup is
obtained by generating the dependency list in a more efficient way that
only takes 1 make call per dependency instead of potentially many many
make calls.
2003-01-04 22:20:47 +00:00
dmcmahill
98812f4595 move bulk/{mkreadme,genreadme.awk} to scripts/ as this is a more suitable
location.  They are not really part of the bulk build stuff.
2003-01-04 21:13:34 +00:00
dmcmahill
06ea622f25 add two scripts used for creating dependency databases. These scripts
can be used anytime one needs to extract the complete dependency information
for a package for example, when creating a README.html file for the pkg.
The approach used by mkdatabase requires exactly one make call per package
which makes it scale well to packages with large dependency trees that have
many paths to the leaves.
2003-01-04 21:03:08 +00:00
grant
d46d0a15b8 fix a typo in a comment.
noted by salo.
2003-01-04 15:52:13 +00:00
tron
862cfe7068 Require at least version 0.10 of the "x11-links" package because
version 0.9 causes build failures in e.g. the "enlightenment" package.
2003-01-03 10:23:25 +00:00
jlam
909a7770f1 Add the buildlink2 warnings to the wrapper log as well as outputting to
stdout.
2003-01-03 04:44:48 +00:00
jmmv
191304d51d Add lib/pkgconfig directory. It is used by several packages and is currently
not properly managed by their PLISTs. This will simplify these files.

Approved by wiz.
2003-01-02 22:42:54 +00:00
wiz
f85281b9b8 Correct comment on where defaults are set for DEFAULT_SERIAL_DEVICE, and
add USE_I586 and USE_OPENLDAP (used by gnupg, perhaps others?).
2003-01-02 20:12:15 +00:00
hubertf
28a6492fea Add a few switches to allow changing compile-time options:
ATERM_USE_KANJI, ATERM_USE_BIG5, ATERM_USE_XTERM_SCROLL, ATERM_USE_GREEK.

Patch contributed by Jon Olsson <jon@joshua.haninge.kth.se> in PR 19382.
2003-01-02 05:55:11 +00:00
jlam
f161acbf13 Use a while loop instead of a for loop to iterate over the arguments. This
potentially allows for manipulating sequences of arguments instead of just
one argument at a time.
2003-01-01 07:16:57 +00:00
cjep
3bcfb29272 Introduce a variable called kernel which is either empty or contains the
full pathname to the kernel file (e.g. for NetBSD /netbsd, OpenBSD /bsd, etc)
2002-12-31 17:46:12 +00:00
cjep
7b08a3ada9 Loopback mount /proc on SunOS. shells/tcsh successfully builds in the sandbox
except for one peculiar thing: bmake does not pick up a definition for CC.
Something is missing (for SunOS).
2002-12-31 17:42:32 +00:00
jlam
7751a84cde Remove deprecated USE_JAVA code from bsd.pkg.mk. Packages should use
java-vm.mk instead (see java-vm.mk for details on proper usage).
2002-12-31 15:46:42 +00:00
cjep
9c42c5520e Add /usr/ccs, /usr/ucb and /usr/xpg4 for SunOS in sandboxDirs.
Provided that I copy a working gcc and the binaries from the bootstrap kit
into the sandbox manually, this gets me as far as having a pkgsrc
sandbox that can build pkg_tools/pkg_install.
2002-12-31 15:33:56 +00:00
cjep
c892115b8e 1. On SunOS populate /dev in the sandbox with devfsadm and ucblinks.
2. Introduce sandboxDirs, a list of directories that need to be
null mounted. This is different (e.g. on SunOS).
2002-12-31 15:09:01 +00:00
jlam
bd8b4c9da7 USE_JAVA2 is used to note that the package requires a Java2 implementation.
It's undefined by default, but may be set to "yes".
2002-12-31 14:42:21 +00:00
jlam
0422b46d80 Allow for strangely-cased USE_JAVA values. 2002-12-31 14:39:59 +00:00
cjep
a00ddfac74 1. Introduce mountflags so that we can tune the mount command for Solaris
(et al.).
2. Use the loopback filesystem on Solaris.
2002-12-31 13:52:50 +00:00
cjep
bdb0556788 Introduce idprog so that Solaris survives the root test. 2002-12-31 13:41:16 +00:00
cjep
6259f8a7b2 If the pkg tools are not update, upgrade them. 2002-12-31 12:42:37 +00:00
jlam
fd0b05977f Make CONFIGURE_DIRS have meaning for programs that use imake. 2002-12-29 19:02:06 +00:00
seb
27515d5bd1 Fix typo. 2002-12-28 23:49:02 +00:00
schmonz
5301f05651 Darwin 5.5 has finished the grueling recertification process: still
works, but not with full caching.
2002-12-28 23:01:25 +00:00
jlam
1d658e2753 Check whether USE_BUILDLINK2 is defined before testing its value. 2002-12-28 19:53:57 +00:00
jlam
a36d340678 As a refinement on the previous commit, we shouldn't even add .../.libs
directories to the search list for libtool archives.  Also make it clear
that the warning comes from the libtool wrapper.
2002-12-28 18:58:09 +00:00
jlam
ebe087d42d Break out of loop as soon after the first time we find a libfoo.la libtool
archive that matches "-lfoo".  This prevents breakage when someone does:

	-L../src -L../src/.libs -lfoo

because libtool puts a .la file into both ../src and ../src/.libs.  This
fixes PR 19583 by Julio Merino <jmmv@netbsd.org>.
2002-12-28 18:49:57 +00:00
kristerw
e7c52c4ac8 Note that USE_MMX is used by snes9x too. 2002-12-28 17:14:10 +00:00
schmonz
8c4d798daf More ideas: _STRIPFLAG_CC, _STRIPFLAG_INSTALL, compiler optimization flags. 2002-12-27 20:34:53 +00:00
grant
2e18bd5caf Both buildlink caching methods work on Solaris 8 and Darwin 6.2.
Enable full caching for any SunOS arch and Darwin 6*.
2002-12-27 07:00:51 +00:00
uebayasi
289160ecdb * Garbage collect IGNORE -> SKIP migration.
* {NOT,ONLY}_FOR_PLATHOME mismatch is not an error.  Set
  PKG_SKIP_REASON for those cases.  This makes bulk builds happier.
2002-12-27 06:53:42 +00:00
jlam
a0712b80ae Move java.mk to java-vm.mk to avoid name conflict with devel/mk-files as
suggested by Simon J. Gerraty.
2002-12-26 20:52:09 +00:00
jschauma
a6012250a1 Full caching still works on Irix. Yay. :) 2002-12-26 17:53:48 +00:00
jlam
d8c9789a55 Add some libtool workarounds for software authors that don't follow the
libtool documentation.  Specifically, many authors now link against an
uninstalled libtool archive with:

	-L../package/source/dir -lfoo

instead of the correct (according to the libtool documentation):

	../package/source/dir/libfoo.la

The workarounds convert the former into the latter.  Changes originally
suggested by Rene Hexel <rh@netbsd.org> in private e-mail.
2002-12-26 17:17:32 +00:00
jlam
e287e42e02 Rewrite wrapper scripts so that it is possible to add wrapper-specific
logic and caching in a more natural way.
2002-12-26 17:08:55 +00:00
wiz
0fa9b394d7 Update comment for USE_MMX to reflect changes. 2002-12-26 05:02:36 +00:00
wiz
04beced10d Add USE_MMX option. 2002-12-26 04:29:21 +00:00