Commit Graph

729 Commits

Author SHA1 Message Date
brad
2545045f21 Side-effect of BULK=Yes: WRKDIR gets wiped out before the depend cookie
is written.

So, we simply recreate WRKDIR manually.
This is a kluge, but it should do the trick.

From espie@

ok pvalchev@ espie@
2004-08-13 23:28:40 +00:00
espie
9560823362 set _MASTER_LOCK in the correct location.
fix postgresql locking *for good*.
okay pvalchev@
2004-08-12 19:02:45 +00:00
espie
a8174b7541 obvious mistake, FULLPKGPATH for recursive clean, duh!
problem found by brad@
2004-08-11 22:42:47 +00:00
espie
fdb200935c fix postgresql lock issue: in recursive locking, don't relock the same
port.

okay pvalchev@
2004-08-11 22:25:23 +00:00
xsa
a3237a6832 prepare for new-style MODULES. ok sturm@. 2004-08-10 20:39:37 +00:00
espie
9ab9eeaa46 prefer pkg_create -B 2004-08-10 13:48:21 +00:00
xsa
9d761fa2f0 prepare for new-style MODULES; ok dons@. 2004-08-10 08:14:34 +00:00
xsa
70c60882e0 prepare for new-style MODULES; ok couderc@. 2004-08-09 19:54:20 +00:00
espie
ed01c25be0 lock distfile as distfile.dist, since some ports have FULLPKGPATH=DISTFILE. 2004-08-08 23:14:03 +00:00
espie
10083d7dfb run update-plist as root, to catch all files.
pass OWNER/GROUP around and setuid/gid to them before writing
files to keep ownership.
2004-08-08 16:43:15 +00:00
espie
413404d080 tag updating-plist case for logging. 2004-08-06 11:31:22 +00:00
espie
0e976d1198 almost completely new make-plist.
The new version uses the pkg_* infrastructure to read existing plists
and produced new plists.
Lots and lots of improvements:
- copy most stuff over from original lists correctly. For instance,
attach @exec/@unexec/@sample to other files and copy them in the right
location.
- generic post-treatment of @commnent, using stringize(), so that most
things can be commented out and will stay commented out.
- parse all packing-lists using relevant PREFIXes. Grab PFRAG.xx if %xx%
is seen.
- walk through all of fake, and distpatch files according to PREFIXes
if nothing else works.
- identifies man, libraries, info, handling symlink correctly.
2004-08-05 23:43:45 +00:00
espie
879b5113b9 tag error messages with PKGPATH, as they get hard to decipher
when walking the tree.
2004-08-03 21:18:24 +00:00
espie
dbdb2eb38e Move SHARED_ONLY default definition down so that it can be inherited
from Makefile.inc/MODULES.
2004-08-03 19:30:25 +00:00
espie
30369d755e pass TRUEPREFIX around, don't pass LDCONFIG. 2004-08-03 16:18:51 +00:00
espie
5318b3b20e MODULES=www/php4/pear
okay maintainer(s)
2004-08-03 12:54:39 +00:00
xsa
7937d3ebe8 prepare for MODULES= www/zope 2004-08-03 12:08:10 +00:00
espie
0245da577b pass SHARED_ONLY to update-plist 2004-08-03 11:16:30 +00:00
espie
4c68b1d0da Prepare for MODULES=x11/qt* 2004-08-03 09:18:38 +00:00
espie
faa7c7b381 prepare iconv for MODULES=converters/libiconv 2004-08-03 09:13:29 +00:00
espie
814118f71b prepare gettext for MODULES=devel/gettext. 2004-08-03 09:10:01 +00:00
espie
fd75f4db4c Introduce SHARED_ONLY variable, as a more specific semantic way
to say port works only with shared libraries.

Mostly useful for `update-plist' which will recurse differently if
LIB_DEPENDS are only BUILD_DEPENDS or if they becomes RUN_DEPENDS.
okay pvalchev@
2004-08-03 08:04:02 +00:00
espie
d9fd9934ee Allow full path for modules, like this:
MODULES=devel/gettext
so that:
- stubs in infrastructure/ are no longer needed.
- PORTSDIR_PATH is taken into account.

This will look for ${PORTSDIR}/devel/gettext/gettext.port.mk

okay naddy@
2004-08-02 21:59:53 +00:00
espie
daf412deff Always define NO_SHARED_LIBS. 2004-08-02 13:01:52 +00:00
espie
75994eff47 store PKGPATH instead of self name in dependencies. pkg_add handles
recursion itself, so it does not need the self name.

Packages created require -current pkg_* tools to work !
2004-08-02 12:10:17 +00:00
espie
befcaa1be4 tag cache entries with b(uild), r(un), a(ll).
Fixes a rare logic error, where recursive build depends would not trigger
all depends because an existing build depends was taken instead.
2004-07-24 13:53:12 +00:00
espie
83b79dec6d clean=depends is naturally recursive, make a little dance so that it
goes to _internal-clean for itself.

found out by brad@
2004-07-21 14:45:33 +00:00
espie
29272c577e since _solve-package-depends no longer recurses, it does not need a
cache file.
2004-07-20 14:23:32 +00:00
espie
5bf197bb2f REORDER_DEPENDENCY missing a silent @. 2004-07-18 22:45:14 +00:00
espie
0e89359ef4 Lock infrastructure for the ports tree.
If LOCK_CMD, UNLOCK_CMD and LOCK_DIR are defined, those are used to
perform `big-lock' style locking on top-level targets, such as
extract, patch, build.

The internals of the ports tree do not use any finer grained locking.
Those top-level targets now redirect to _internal-targets, without
any behavioral change.

Any dependency computation will recurse to another directory, and
invoke a top-level target, thus triggering the locking of the dependency.

All locking is done using FULLPKGNAME, except for fetch with uses
the DISTFILES names for independent files.

If no locking is desired, the top-level targets simply redirect to
the _internal-targets. The cost is close to zero: make just needs to
handle an extra ~20 phony targets.

Much testing and approval by brad@, naddy@, pval@, fries@ and other
people. Thanks to niklas@ for some useful discussion.
2004-07-18 22:44:36 +00:00
espie
571e0e10d7 move everything to _fetch-makefile, so that __FETCH_ALL can put all
file names where it should.
noticed by jolan@, okay sturm@
2004-07-12 08:45:32 +00:00
espie
2df6d8519a byebye IGNOREFILES
Okay naddy@
2004-07-11 20:44:33 +00:00
msf
754a71e108 perl modbuild should install the perl manpages into man/man3p and not
man/man3
2004-06-23 03:20:17 +00:00
sturm
4597750316 add _SYSTRACE_COOKIE to _ALL_COOKIES
ok espie@
2004-06-22 20:05:46 +00:00
espie
ee63e907a9 missing dependency 2004-06-22 16:09:05 +00:00
sturm
47cb6d0543 back out CFLAGS-honour-diff
MakeMaker might add important stuff to CCFLAGS, which we override
2004-06-08 20:28:19 +00:00
espie
f19cb223c7 move the automake inter-dependencies to another file.
checked by naddy@ on a full build.
idea okay'ed by naddy and pvalchev.
2004-06-06 11:49:08 +00:00
sturm
7057f0c410 honour CFLAGS in perl ports 2004-06-02 09:20:43 +00:00
jolan
e0768dec11 sort lp64_archs alphabetically, remove hppa from no_shared_archs 2004-06-01 21:06:29 +00:00
sturm
67a6ca5fda honour TMPDIR and PKG_TMPDIR in systrace policies
prodded by jolan@
2004-05-31 12:27:07 +00:00
msf
975e0f0aac infrastructure bits for p5-Module-Build
ok espie@ sturm@ pvalchev@
2004-05-26 11:20:26 +00:00
pvalchev
d570761068 provide LP64_ARCHS, a list of 64-bit architectures (to be used for
NOT_FOR_ARCHS and such); ok naddy
2004-05-16 23:14:44 +00:00
espie
77490d49eb Run autoheader unless explicitly asked not to.
Did a full ports build before that, hoping I did not miss any.
2004-05-05 11:17:22 +00:00
sturm
4c3be953ba allow for additional port specific systrace policies, needed to make
jdk-linux and netscape build with systrace

ok espie and others
2004-05-01 14:27:07 +00:00
espie
d9a7718501 move -e '//d' around so that it's more readable...
... and add the missing one that was noticed by jolan@ !
2004-04-19 18:57:54 +00:00
espie
c35cfd38ae silence echo in recursive work, so that tsort no longer sees confusing
===> directory entries.
2004-04-07 13:06:33 +00:00
brad
e3df2e484a AUTOCONF_NEW has been removed from all ports so remove this
knob.

ok naddy@
2004-03-03 01:17:39 +00:00
espie
100e4a7134 make autoheader a switch that's not systematically run...
thanks to mutant versions of autoconf-2.13.
2004-02-25 22:23:20 +00:00
espie
c48fae4abc do a search and touch to prevent dratted automake Makefiles from rebuilding
anything after configure.

Side-effect: config.h.in is not rebuilt automatically at build time, we
invoke autoheader explicitly.

Change approved by naddy@ and brad@, for robustness, there may a few kinks
to fix...
2004-02-25 21:50:26 +00:00
espie
d229227ddf always define DIST_SUBDIR, simplifies logic. 2004-02-07 22:36:13 +00:00