Commit Graph

808 Commits

Author SHA1 Message Date
brad
53837aa927 For consistency, use :L variable modifier with ELF_TOOLCHAIN check. 2001-10-28 04:59:26 +00:00
brad
1f0d57ad12 libtool 1.3.3 patches. 2001-10-28 04:18:09 +00:00
pvalchev
391e25bf26 lib-depends checker for ELF using objdump -p. ok espie 2001-10-26 17:34:31 +00:00
espie
b2ec1dc262 Allows for a path in the LIB_DEPENDS libspec component.
Don't use it for now.
2001-10-26 13:46:03 +00:00
espie
fde29e65ce shift to update-plist' from plist'... keep old target around for now.
Create PKGDIR while we're at it.
2001-10-24 16:35:38 +00:00
naddy
ceb485fa9e Add MASTER_SITE_FREEBSD_LOCAL. The FreeBSD project harbors at least
337 distfiles that don't have any other master sites left.
2001-10-24 12:37:12 +00:00
espie
5906a566ef First cut at a lib-depends checker: this version does use WRKINST instead
of the actual package, so it WILL get things wrong in some multi-packages
case.
2001-10-24 11:57:34 +00:00
espie
22c02484ba More helpers: scan WRKINST for list of all needed libraries.
The chroot is needed to avoid having ldd pick up dependent libraries
that come from a package variant and are actually not needed as
dependencies.

Scan /usr, /usr/X11R6 for system libraries, and WRKINST for packaged
libraries.
2001-10-24 11:53:54 +00:00
espie
e9324ae683 Internal target: create list of all libraries we're allowed to depend upon. 2001-10-24 11:49:45 +00:00
espie
975eb63fc2 bulk-do, a slightly more generic version of bulk-packages 2001-10-24 11:47:41 +00:00
espie
e1b9d65421 Cleaning out an installed package that is not there should not abort the
make.
2001-10-24 11:44:35 +00:00
espie
51cf601625 More verbose default maintainer 2001-10-24 11:43:06 +00:00
espie
4357d41f96 Give dependencies a fighting change, spell early_exit correctly. 2001-10-11 00:01:27 +00:00
todd
16bf411ce4 add regress, ok espie@ 2001-10-08 22:04:43 +00:00
espie
23b9b0affa REGRESS_IS_INTERACTIVE
This makes things a bit less symetric, but it can't really be avoided
since regress is out of the normal build chain.
2001-10-07 11:30:30 +00:00
espie
cc0048df1e In retrospect, just allow REGRESS_FLAGS. This would be redundant otherwise 2001-10-07 10:53:43 +00:00
espie
e7fbc2b015 Seems like we can't avoid REGRESS_ENV/REGRESS_FLAGS.
Some testsuites use HOME to test their getenv function. Which seems
to be reasonable. But we definitely don't want to allow HOME into
MAKE_ENV by default.
2001-10-07 10:50:47 +00:00
espie
9e6fd66baf don't depend on the current version of unzip/bzip2. Any should do. 2001-10-07 10:47:01 +00:00
brad
374b66336a woops, didn't mean for this bit to go in. 2001-10-06 01:38:03 +00:00
naddy
3b4a858b92 deal with revised FULLPKGNAME semantics; ok espie@ 2001-10-06 01:09:08 +00:00
espie
3ad730108d synch with new regress target (I forgot to commit this) 2001-10-05 07:26:50 +00:00
naddy
14ef0e4541 fix PATCH_LIST absolute path handling in case of missing PATCHDIR
ok espie@
2001-10-04 22:43:45 +00:00
espie
5da704a0f9 typo 2001-10-04 22:20:38 +00:00
brad
000233dd2d libtool 1.3.4 and 1.3.5 patches in a central location for ports to use. 2001-10-03 14:47:01 +00:00
espie
90787b9a17 basic regression testing framework. 2001-10-03 08:53:18 +00:00
espie
548eff5cee move error handling later for greater flexibility.
Move default NO_* after including local Makefiles.
2001-10-03 08:41:16 +00:00
espie
c202780cad In bulk, ftp/cdrom must be non interactive as well. 2001-10-03 08:36:25 +00:00
espie
aac1c8b95c make sure config.guess is executable. 2001-09-30 17:14:33 +00:00
espie
6953d535fa More stringent PERMIT_* checking: if any info is missing, assume
the maintainer made a mistake, and turn everything to No.
Record it as _BAD_LICENSING for describe purpose.

Yep, having this as ERRORS is obnoxious.

Then, we can rely on PERMIT_* always being defined.

Rewrite ftp-packages/cdrom-packages to use more current rules. Fixes
naddy's issue of ignoring IGNORE.  Use a .for loop, since those rules
are basically identical.

No longer use them to try and record port logging, as we have a much better
script to do that.

`Enhance' bulk-packages to do ftp-packages/cdrom-packages linking as well,
so that one single sweep of the tree should be enough for everything.
2001-09-30 12:26:57 +00:00
espie
13b952cc81 Enforce /nonexistent for non-package/install/reinstall dep. 2001-09-30 11:27:05 +00:00
espie
f540cb1856 Enforce correct use of SUBPACKAGE. 2001-09-29 17:36:02 +00:00
wilfried
ec0d42e8f6 refresh MASTER_SITE_WINDOWMAKER 2001-09-28 14:30:32 +00:00
naddy
2f979e8aa5 remove last vestiges of NO_INSTALL; ok espie@ 2001-09-28 01:48:58 +00:00
espie
0471c7a912 Let PATCH_LIST handle absolute paths.
make sure update-patches can handle lists (naddy@).
2001-09-27 10:34:19 +00:00
espie
c0d4fa5d92 Grab config.guess from master repository, to repair ppc globally. 2001-09-24 22:30:03 +00:00
brad
d3723c9d2f Add iconv/gettext modules. 2001-09-23 05:29:47 +00:00
espie
72ef602c39 quote |. Thanks naddy@ 2001-09-21 11:41:17 +00:00
brad
a594bae78e add comment about USE_LIBTOOL 2001-09-20 20:59:27 +00:00
espie
3a0cf8ed4d Update dependencies (kill first part when needed).
Update japanese/README... 2.4 is looong past.
2001-09-19 16:03:09 +00:00
espie
146dd13ffb show what is actually checked (the pkg, no longer the file) 2001-09-19 15:16:39 +00:00
espie
27d5739e28 Handles the case where CONFIGURE_SCRIPT is an absolute path gracefully
(to deal with a common shared Cygnus configure)

Move MODGNU_configure definition to gnu.port.mk. Should have done that on
creation.

Typo in brad's hack (to be superseded shortly anyways)
2001-09-16 14:56:42 +00:00
espie
3286714c5c fix sudo install 2001-09-14 17:33:51 +00:00
espie
6968258d70 Trust packages for all dependencies except libs. 2001-09-14 15:04:23 +00:00
ho
5b10ebfbe9 Fix a typo that prevented a number of ports from building correctly. heko@ ok. 2001-09-13 09:12:45 +00:00
espie
cd0a7c7bef * is special too 2001-09-07 10:56:50 +00:00
espie
9af4a16590 Protect expression against empty results. Will at least prevent syntax
errors.
2001-09-07 09:48:23 +00:00
espie
5a4388c241 More special chars to remove to create files. 2001-09-06 21:33:39 +00:00
heko
5904212e68 o Quote ??? for COMMENT= so that people won't forget to quote
the comment when they use the template.
espie@ ok
2001-09-06 09:48:23 +00:00
espie
4e9c296182 If pkg_create fails, you may still have a partial package out there...
Owned by root. Ouch.
2001-09-05 11:59:54 +00:00
espie
5bcf9d53b7 Use cookies for dependencies as well, and for the creation of a workdir.
This can speed up some iterations, as a dependency won't be checked more
than once. This also allows for make extract NO_DEPENDS=Yes, then later
to have the dependencies pulled in at configure stage (even though this
might not work all the time, as some dependencies may be needed earlier
but then you'll certainly notice).
2001-09-05 09:13:18 +00:00
espie
9327c4a99b LIB_DEPENDS tweaks.
- allow for several libraries, separated by commas.
- try to heed dependency most closely. Notably, make sure the spec
stops at a sensible place. This may break some ill-formed dependencies.
2001-09-05 09:10:34 +00:00
brad
72b351c4e8 kludge which allows the ports tree to continue working on our newly renamed powerpc systems without needing to patch all copies of config.guess in the tree. 2001-09-03 02:00:48 +00:00
naddy
f7fb1dbf29 whitespace nit 2001-08-30 21:43:10 +00:00
espie
286ec35abe Enforce the order of MOD*_configure fragments to match CONFIGURE_STYLE.
Create pseudo gnu/simple fragments to make the situation more regular.
Found by aaron@.
2001-08-28 08:09:31 +00:00
espie
8861b634d6 qt module 2001-08-27 09:08:57 +00:00
espie
1867c778d8 qt2 module support 2001-08-27 08:53:53 +00:00
espie
224ec1b24a Turns out modules have to go through infrastructure anyways, because
there's no easy way to reparse the Makefile afterwards...

Turns module absence into mild error (Fatal ?)
2001-08-27 08:50:30 +00:00
espie
e1f7f2ac1a fix dependencies's early_exit logic.
Turns out this can be done based on target, directly, instead of
relying on /nonexistent.

One step closer to turning TRUST_PACKAGES=Yes on by default...
2001-08-27 08:47:37 +00:00
brad
7272a8be65 add LIBTOOL to MAKE_FLAGS when USE_LIBTOOL is defined. 2001-08-26 21:42:18 +00:00
heko
3d75eb7220 o Add MASTER_SITE_SOURCEWARE to network.conf.template (mirrors
of sourceware.cygnus.com (also known as sources.redhat.com))
 o Modify bzip2 and gsl ports to use this new master_site (gnats
   remains to be fixed: no reply from maintainer)
 o Bump NEED_VERSION on those ports
maintainers of the ports ok: brad@, rohee@
2001-08-26 21:23:42 +00:00
espie
bc8a492475 Cut out some parts of bsd.port.mk into separate modules.
This is work-in-progress. Supplemental hooks will be added when they
become necessary.

The goal is to permit separate subsystems to tweak the package building
process slightly. This should help e.g., python or qt2, for instance.

Documentation will come when it's tested more thoroughly...
2001-08-25 11:23:46 +00:00
todd
2c70f18cb7 implement $PATCHORIG, a variable with the ability to change from .orig to
another suffix for 'update-patches' and 'patch', since there are some
distfiles that have foo and foo.orig already; ok espie@
2001-08-24 14:43:28 +00:00
espie
98836603b6 Fix clean/dist 2001-08-24 14:39:36 +00:00
espie
91228bc7f3 Recognize empty @owner/@mode/@group correctly. 2001-08-23 09:13:19 +00:00
naddy
5c7d963a5d typo: break to accidentally joined lines 2001-08-21 22:22:57 +00:00
brad
e654419469 drop old compatibility cruft and make USE_ZIP/USE_BZIP2 internal variables 2001-08-18 23:16:57 +00:00
espie
efb1a6317b Some attempt at parsing the .orig files, to preserve @mode/@owner/@group
and misc. information.

Try to warn if non-reproducible stuff is found.
2001-08-18 13:11:10 +00:00
brad
27888b1ea4 remove some old cruft to do with tar that does not pertain to us. 2001-08-17 03:23:04 +00:00
espie
ed3f2b5725 Fix (used bad patch version...) _PKGFILE->PKGFILE. 2001-08-16 15:15:24 +00:00
espie
01cca80419 Use new make feature. 2001-08-16 15:13:17 +00:00
espie
c191588f7f Change WRKDIR name, to flatten things somewhat.
work-* is too long, because we want to include the PKGNAME in the dir name
(so that PKGNAME changes are less likely to work with old work directories)

Change the way clean works, so that you can say
make clean='dist depends packages' and have it do what you think it should
do.

Common fragment to _create_wrkobjdir.

Put some info into PACKAGING (name of subpackage being built)
2001-08-16 14:49:31 +00:00
espie
212808ddbd Change PKGNAME and FULLPKGNAME semantics slightly.
Since those are mostly infrastructure-side, making SUBPACKAGE transparent
only adds to the confusion, so don't interpolate SUBPACKAGE into
FULLPKGNAME, hiding it into _FULLPKGNAME, but rather let FULLPKGNAME
tag the main package, and use FULLPKGNAME-foo for subpackage -foo.

This will simplify some other stuff...
2001-08-12 11:33:10 +00:00
heko
06dbdad843 o Shared works on alpha post-2.9;
remove it from the NO_SHARED_ARCHS list
naddy@ ok
2001-08-07 11:46:17 +00:00
espie
58571bb4ea Restore sudo in make deinstall. Naddy, Joshua Stein, and myself... 2001-07-31 22:26:48 +00:00
espie
5efc528bdc More trouble... Revert sed -e so that it will work. 2001-07-30 15:07:49 +00:00
espie
950a3a0fa6 Tsk, tsk. 2001-07-30 14:55:07 +00:00
jsyn
62cee9e1e2 Fix EXTRACT_CASES for shell archives (handles leading cruft, too!)
ok espie@
2001-07-30 14:45:26 +00:00
espie
ad09219591 Pass PKG_TMPDIR thru to pkg_add. From Heikki Korpalla. 2001-07-30 14:34:34 +00:00
espie
19d7809002 Lots of internal changes.
- define _FULLPKGNAME* and _PKGFILE*. Use _PKGFILE* as package cookie
instead of package_done.
- use ${PKG_DBDIR}/${_FULLPKGNAME${SUBPACKAGE}/+CONTENTS as install cookie.

- BIN_PACKAGES variable. If set to yes, remove coupling between
PACKAGE_COOKIE and dependencies, so that binary packages exist
independently of working directories.

- mark packages as precious.

- change all refs to PKGFILE to _PKGFILE${SUBPACKAGE}.
- add bulk-packages target.

Note that BIN_PACKAGES and TRUST_PACKAGES are off by default.
This interface is likely to change. The name bulk-packages will probably
change as well.

We will probably get rid of the old PKGFILE/FULLPKGNAME (taking SUBPACKAGE
into account) and use the new PKGFILE/FULLPKGNAME
PKGFILE-foo/FULLPKGNAME-foo instead (with explicit subpackage information).
This is less confusing and simpler.
2001-07-30 14:13:16 +00:00
espie
ccd5083297 Bad me. 2001-07-29 12:26:40 +00:00
espie
a3b8e08ec3 numbering of matches means we got to default log too often. 2001-07-26 14:53:53 +00:00
brad
e7f8c22367 .elsif -> .elif
--
Pointed out by: Piotr Domagalski <szalik@szalik.net>
2001-07-22 20:02:07 +00:00
brad
4c5b6c2977 typo 2001-07-21 06:14:43 +00:00
brad
663a3bfb71 sync MASTER_SITE_{GNU,SUNSITE,SOURCEFORGE,GNOME,PERL_CPAN,TEX_CTAN} with
FreeBSD's bsd.sites.mk
2001-07-21 06:10:29 +00:00
espie
1ebaa8580f Move the whole definition of FLAVOR_EXT up, so that it can be used
directly.

Tighten the flavor check, so that ports without flavors error out if
flavors are specified.
2001-07-20 13:13:47 +00:00
espie
9f4e80ba55 While building a package, we check dependencies with
DEPENDS_TARGET=package. Thus, the second check may fail...
So make it possible to avoid the second check.
2001-07-20 13:02:47 +00:00
espie
32d772833a Fix a few issues with portslogger, pointed out by Heikki Korpela.
I went a bit overboard with this one and implemented a Logger class
as a derived class on IO::File...
2001-07-19 12:29:09 +00:00
espie
1211f04ece Take PORTSDIR var into account. Noticed by Brian R. Landy. 2001-07-19 02:49:56 +00:00
espie
9e7d740d87 Move PKGFILE definition up, so that it can be used in dependencies. 2001-07-18 18:23:04 +00:00
espie
18979ba402 Knob DESTDIRNAME. 2001-07-18 16:19:47 +00:00
espie
cc77256996 Synch with src (CDIAGFLAGS, CXXOPTS, WARNINGS) 2001-07-18 14:52:27 +00:00
naddy
5f2065c764 - Make use of new bsd.port.mk feature and replace error reporting through
.BEGIN with ERRORS.
- Sync NEED_VERSION accordingly.
ok espie@
2001-07-18 10:59:00 +00:00
espie
773bce9872 Replace .BEGIN lines with explicit ERRORS framework. 2001-07-17 16:11:45 +00:00
espie
779586af01 Replace X11 up-to-dateness test with something that will work with
recent XFree.
2001-07-16 15:14:36 +00:00
kevlo
eef81832d3 fix MASTER_SITE_PERL_CPAN 2001-07-13 14:39:49 +00:00
naddy
49afc89ea6 MASTER_SITES fix by Heikki Korpela <heko@saitti.net>:
- Add ftp.funet.fi and ftp.sunet.se mirrors where available.
- Remove broken ftp.funet.fi references.
2001-07-13 11:23:37 +00:00
espie
8e5d0aadab Don't append COPTS if it's not defined. This avoids passing
CFLAGS="-O2 -g " with extra unwanted spaces off to submakes.
2001-07-11 12:57:20 +00:00
pvalchev
81fb0d5991 fix a typo; ok brad 2001-07-08 00:05:02 +00:00
espie
380824ae62 Recognize both !%%SHARED%% and %%!SHARED%% temporarily, to match
!%%flavor%%  eventually.
2001-07-03 12:06:13 +00:00
matt
2a9f29dd86 skip ports marked COMES_WITH on mirror-maker runs; ok espie@ 2001-06-30 19:06:09 +00:00
jakob
083c3736f7 take care of *.tar.gz before extracting any *.gz 2001-06-22 07:21:24 +00:00
jakob
efb10cff8d back out my broken handling of .gz 2001-06-22 07:15:47 +00:00
jakob
48c87069cb handle .gz as EXTRACT_SUFX. ok espie@ 2001-06-22 07:03:19 +00:00
espie
a669357afd Add old-install.mk names.
Noticed by naddy@
2001-06-07 14:46:23 +00:00
espie
f63f8c480b Fix _COMMENT quote handling. 2001-06-07 14:43:01 +00:00
espie
22da3babe3 Remove /tmp, /var/tmp, /var/games from fake hierarchy.
Noticed by arl@q7.net, checked by naddy@.
2001-06-07 14:32:10 +00:00
espie
c87f0178ee Add support for PATCH_CASES, modelled on EXTRACT_CASES. 2001-06-03 14:42:07 +00:00
espie
3fc98296ac Oops. Seen by Flinn Mueller. 2001-05-24 16:47:59 +00:00
espie
38bf339443 Fix quoting 2001-05-23 15:48:08 +00:00
espie
d19ed8bd90 Smarter plist regen.
- back substitute VAR_SUBST (hence swap ARCH/MACHINE_ARCH)
- pass PKGDIR to make-plist.

- don't create PLIST-auto/PFRAG.shared-auto. Move originals around, and
create new ones directly (guard against accidentally deleting old ones).

Todo: add regexp to dispatch stuff to fragments automatically, based on
MULTI_PACKAGES.
2001-05-23 14:18:24 +00:00
espie
3f025d2169 kill some old stuff:
- all COMMENTs live in Makefiles now.
- NEW_DEPENDS is always on.
- 2.8 warning is woefully out of date (rohee@)
2001-05-23 13:28:14 +00:00
espie
853cd0fdd7 Fix double describe for MULTI_PACKAGES 2001-05-22 11:46:17 +00:00
camield
53743ebea8 cvs should not touch this tag, ok espie@ 2001-05-22 09:26:46 +00:00
espie
41d87e2076 Make sure assignment is unambiguous. Found out by naddy@ 2001-05-19 20:07:00 +00:00
shell
eee41d434a Change URL in MASTER_SITE_GNU of my mirroring 2001-05-09 04:26:35 +00:00
espie
7b5e441497 Oh well. Need both stats under different circumstances, as found out
by Peter Stromberg.
2001-05-07 15:25:44 +00:00
espie
e80fc7eb06 Avoid Makemaker's /usr/lib -> $(PREFIX)/lib substitution in a weird place. 2001-05-07 15:24:50 +00:00
miod
de247992b6 Make MACHINE_ARCH available for PLIST.
Allow for MACHINE_ARCH specific files or patches, if no such files
for ARCH found.
Put compiled packages in MACHINE_ARCH directory, instead of ARCH.

All of this to improve support for compound architectures, mainly
m68k-based architectures at this time.

While there, mention mvme88k does not have shared libraries, to be
sure this isn't forgotten when mvme88k gets back in shape.

ok'ed by espie@
2001-05-05 23:42:03 +00:00
espie
3da2a4e0ae More specific package checker 2001-05-05 22:51:32 +00:00
espie
c057142749 Bump to what was used for 2.9. 2001-05-05 22:34:01 +00:00
espie
ebc57e0cb7 better stat. 2001-05-05 21:24:27 +00:00
espie
1e51a65a71 Add Installing... 2001-05-05 21:23:56 +00:00
espie
e05abe6f1d Minor fixes having to do with PACKAGING.
This repairs dependencies in some japanese ports.
2001-05-05 20:23:42 +00:00
espie
41127009fa Fix _COMMENT and add SUDO for those few unfaked ports that are left. 2001-05-05 20:20:59 +00:00
espie
afc9760354 generate trimmed list using the Makefile. Ensure the same method is
used to remove comments, and (more importantly) pick up default
canonical package names, useful for ordering and removing duplicates.
2001-04-22 16:16:42 +00:00
espie
d677374763 TRUST_PACKAGES: use actual installed packages to check dependencies
and avoid calling pkg_add.
Solve some of art's problems.
2001-04-20 16:25:24 +00:00
espie
33d58011b9 Solve two simple problems:
- allow Makefile to distinguish packaging steps, since SUBPACKAGE can now
be set for various reasons.
- EXTRA_LIBDIRS for architectures without shared libraries.
2001-04-20 15:06:19 +00:00
espie
27a4fede8b REPORT_PROBLEM for non-existent dirs. 2001-04-20 15:00:04 +00:00
espie
e45a669ca1 typo. thanks Anil. 2001-04-19 22:15:05 +00:00
wilfried
75291818aa update WindowMaker sites 2001-04-19 16:51:36 +00:00
espie
c88f9d01b0 The script I use to build/verify plists. 2001-04-19 16:47:34 +00:00
espie
bd26c4b573 MOTIFLIB, not MOTIF_LIB
Use FULLPKGPATH for describe
2001-04-19 01:56:53 +00:00
brad
05d97a9773 consistency nit, add missing braces. 2001-04-18 15:00:53 +00:00
espie
701a95b5b2 Misc. small tweaks.
- let USE_MOTIF be sensible: any, openmotif, lesstif.
any triggers a lesstif flavor.
- show=name as a shortcut.
- package-dir-depends to check that packages are okay.

- error message for non-existent dirs.
2001-04-18 14:43:55 +00:00
espie
8a4e5086b5 Add SUBPACKAGE to INSTALL_COOKIE so that stuff such as
SUBPACKAGE=-thingy make install
works sanely.
2001-04-17 21:40:36 +00:00
espie
f7db65c8f4 Use same code as bsd.port.mk 2001-04-17 16:48:07 +00:00
espie
d646d4880c - Fix FULLPKGPATH again. I missed it in naddy's buggy bug-fix.
- save subdir into package, that's what is useful, since the name is
already there.
- check that SUBPACKAGE is a member of MULTI_PACKAGES.
Make make SUBDIR=misc/fileutils,-ls  work without error.
2001-04-17 16:45:14 +00:00
naddy
7f46795af3 Handle multiple flavors in package paths. ok espie@ 2001-04-16 21:40:04 +00:00
espie
2447f9b4db Updated version, that is much better at handling pkgspecs correctly 2001-04-15 17:44:29 +00:00
espie
8ae73df6f3 Add NO_SHARED_ARCHS, useful with NOT_FOR_ARCHS 2001-04-14 16:49:53 +00:00
espie
0c5f135c58 Flesh out MAINTAINER and PERMIT_xxx 2001-04-13 15:52:16 +00:00
espie
9dbd067f7d Proper quoting in build depends too. Discovered by avsm@.
Slightly more intricate, because we can't quote each value
indiscriminately, simplest way is to move the for loop from shell to make.
2001-04-12 20:35:59 +00:00
espie
39a760c88e aesthetical tweaks.
Oh, and uninstall doesn't need to remove the package cookies, obviously.
2001-04-11 16:06:07 +00:00
espie
35158dc67b define NEW_DEPENDS as yes. More consistent with the rest of the file. 2001-04-11 15:55:34 +00:00
espie
71f290aa08 protect dependencies from shell expansion.
Noticed by avsm@
2001-04-09 23:16:50 +00:00
espie
1215dcfa7d This script can be used to check that all ports are linked in master
Makefiles.
2001-04-08 17:01:31 +00:00
espie
6bac4e3df0 Turn NEW_DEPENDS on 2001-04-08 16:56:22 +00:00
espie
a930aa16bf FULLPKGPATH is PKGPATH plus flavor/multipackage modifiers.
Use it where we can, including WRKOBJDIR `real' names.

NOTE: if you are using WRKOBJDIR, *all* flavored builds directories
will change  names, from work-no_x11 to work,no_x11
2001-04-08 16:55:17 +00:00
espie
907db990a1 ...without breaking things 2001-04-08 16:50:13 +00:00
espie
ea034965e1 Store PERMIT_PACKAGE_* in PLIST. 2001-04-08 16:49:26 +00:00
espie
0a2c20e0ec Synch mtree with bsd.local.dist.
I shouldn't have to do this. This should have been spotted by the loser
who changed tcsh's Makefile. Brad should have noticed it no longer builds
and fixed this, along with mtree/BSD.local.dist...
2001-04-05 12:46:54 +00:00
espie
4d85ac4a33 reset IFS so that dir-depends will work correctly. 2001-04-04 09:55:34 +00:00
espie
3b0481a403 New Features for NEW_DEPENDS:
dir-depends: list of SUBDIRS this port depends on (with flavors, subpackages),
to use with tsort.
build-depends-list, run-depends-list: list of pkgspec:dir needed for this
port, no recursion. To use for INDEX.
2001-04-04 08:17:31 +00:00
espie
b1aa09605d I missed one package cookie 2001-04-04 08:03:59 +00:00
espie
a54dee276a derive _ALWAYS_DEP from _ALWAYS_DEP2 (and friends) so that pkgspec don't
interfere.
2001-04-02 21:08:49 +00:00
espie
5c979b3753 Compute `new dependencies' if NEW_DEPENDS is defined. 2001-04-02 11:50:25 +00:00
espie
6d478c82a8 Some comments 2001-04-02 11:45:11 +00:00
espie
8edb444009 Remove stuff that is often duplicate, and causes only bogus warnings. 2001-04-02 11:32:32 +00:00
espie
15f663ed60 revise the way package multi-builds are handled.
- move FLAVOR_EXT up so that WRK* are correct when they're needed for
dependencies.
- build a list of _PACKAGE_COOKIES, one for each subpackage.
- let package go through an indirection:
package: ${_PACKAGE_COOKIES}

_PACKAGE_COOKIE_${SUB}:
	SUBPACKAGE=${SUB} ${MAKE} _package

so that all packages are `flat', and subpackages can depend on each other
freely.
2001-04-02 10:35:51 +00:00
espie
c8d7665254 Add FLAVOR_EXT to the list of substituted variables (deprecate ${FLAVOR}
in packing lists).
2001-04-02 10:16:59 +00:00
espie
9336fc846c Identify identical $file and $file.orig. Report them, but don't generate
an empty patch (that is sure to throw make patch later).
2001-03-31 22:54:41 +00:00
espie
5ce94b79e1 Repair IGNORE. I forgot to move this around when the rest needed
rearranging. Found by naddy@.
2001-03-29 19:01:05 +00:00
espie
11ff28f808 Restore REPORT_PROBLEM functionality.
I don't see what the hell sh is doing erroring out in an eval in a test,
even under set -e.
2001-03-28 16:37:27 +00:00
espie
673de31adf typo 2001-03-28 15:07:05 +00:00
espie
acf0fc7a70 Distinguish between no flavor seen (default flavor) and empty flavor seen
(empty flavor).
2001-03-28 15:04:34 +00:00
espie
01e30c116d Due to the way make is working, flavors passed as `make FLAVOR=a'
don't work, as they propagate down subdirs.

Use `FLAVOR=a make' (sh) or `env FLAVOR=a make' (csh) instead.

Error out with a useful error message if old usage is encountered.
2001-03-28 15:01:01 +00:00
espie
062a4a9eb7 Missed one in back-porting my diff 2001-03-28 14:50:17 +00:00
espie
656c37a943 dir -> dir[,-multi][,-flavor...] notation for dependencies. Finally ! 2001-03-28 14:33:24 +00:00
espie
b793933200 Slight optimisation:
always define _ALWAYS_DEP, _BUILD_DEP, _RUN_DEP and test for emptiness
instead of definedness, so that the code is still optimized away when
dependency lists are defined, but empty.
2001-03-28 12:15:26 +00:00
espie
0d35a51ad3 Use error=true/false instead of error=0/1 (consistency) 2001-03-28 11:52:20 +00:00
espie
e941296cc0 Move dependency checking above targets, so that it can be changed to
generate cookies for each dependency.
2001-03-28 11:48:12 +00:00
espie
3ca1304f6a Trim documented parts. Give default values to NO_DEPENDS, NO_BUILD 2001-03-28 11:43:16 +00:00
espie
85dc6dca9c More regularity, use $@ to regenerate target cookies 2001-03-28 11:32:29 +00:00
espie
59c853bcdf ... and to the list of targets too, oops. 2001-03-28 11:28:31 +00:00
espie
87006647c2 Add rebuild target 2001-03-28 11:27:18 +00:00
espie
a6396841cb Handle parsing the flavor/multi-package part internally.
Use eval to simplify passing those to submakes.

Note that the preferred separator is ',', not ':'.
(Because ':' can't be used unambiguously in *_DEPENDS, whereas ',' can)
2001-03-28 11:19:33 +00:00
espie
cd2b7ae81b Move DUDS handling to makefile level 2001-03-28 10:55:52 +00:00
espie
87d90f5e43 Add NOT_FOR_ARCHS 2001-03-28 10:25:38 +00:00
espie
1ee9c9c4ea Repair setting of PKGNAME/FULLPKGNAME dependning on Flavor.
These should override a default setting of PKGNAME, since in that case,
PKGNAME only holds the name for the main package.
2001-03-25 20:35:35 +00:00
brad
26b155db25 add another dist site to MASTER_SITE_GNU;
--
From & run by: Shell Hung <i@shellhung.org>
2001-03-25 17:29:01 +00:00
espie
76d1089163 Adjust default conflict rules to match pkg_create. 2001-03-24 15:16:53 +00:00
espie
ce3e41c265 Warn for arch dependent names in PLIST.
No automatic correction, as this can be hard.
2001-03-24 12:14:38 +00:00
avsm
0c6c38b353 add Shell Hung's Asia-Pac mirror to the CPAN list; espie@ ok 2001-03-22 00:23:53 +00:00
espie
6438a9450e ... and don't forget to include FULLPKGNAME here either. 2001-03-22 00:23:15 +00:00
espie
59abb51a42 _FEXT -> FLAVOR_EXT, make this visible
FULLPKGNAME as a knob for ex ${PKGNAME}-${_FEXT}, so that python
and others can tweak it directly, without needing post bsd.port.mk
tweaks.
2001-03-22 00:22:36 +00:00
espie
e568d53c54 Consistency (Peter Fritchman) 2001-03-17 11:16:38 +00:00
espie
ac0cf6ba19 Add simpler COMMENT variable.
Document multi-packages names simply.
2001-03-16 15:34:13 +00:00
espie
e82e5409a7 Allow for COMMENT-foo= inside the Makefile.
NetBSD did this a while ago, this is a natural idea. It just took me
some time to figure out how to do that in a MULTI_PACKAGE context,
while maintaining compatibility with existing stuff.
2001-03-16 14:56:41 +00:00
espie
5130db70d1 Simplify MULTI_PACKAGES, allow for PKGNAME-foo=value 2001-03-16 14:54:40 +00:00
espie
e31ec85085 logger -> portslogger
to avoid conflict with logger(1)
2001-03-13 22:00:14 +00:00
kevlo
af07be0868 Rearrange 2001-03-08 03:31:43 +00:00
brad
3a62c15a38 - remove some old stuff that isn't used anymore.
- rearrange.
2001-03-08 02:55:32 +00:00
form
30d4d0aba2 Better handling of installed packages not in ports INDEX.
ok espie@
2001-03-07 03:41:10 +00:00
espie
a199bcb59a Create an intermediate mtree.spec that is used for fake installations.
Use of VAR_SUBSTS will solve a few nasty problems.
2001-03-06 18:59:38 +00:00
reinhard
e6b35f85cf MASTER_SITE_GNOME; ok espie@ 2001-03-05 16:49:46 +00:00
espie
8c07bce4dc Add `===> Checking files for pkgname' line to simplify automatic
recognition of various package builds.
2001-03-01 00:01:40 +00:00
espie
d8eecece63 Script to log specific ports build independently. Recognizes all
===> xxx for package
lines, so that it will redirect dependencies correctly. Use as
make 2>&1 | logger logdir
2001-03-01 00:00:26 +00:00
espie
6bc4c47f7f Rework the dependency framework.
* pull every dependency under the same rule, using specialized fragments.
* re-check after the dependency is expanded, unless earlyexit is true.
* explicitly recognize /nonexistent as a specific way to have always
triggered dependencies, use it to handle DEPENDS in a uniform way.
* parse dependencies fully. Note that we know have a pkg variable that will
be used.

Thanks to naddy@ for useful tweaks.

This is probably not quite perfect yet, stuff may break. Other stuff that
remain to be done:

- handle library dependencies better, so that lib.10 will match only
lib.10.x and not lib.100.
- handle default FLAVORS correctly. This involves not
passing FLAVOR='', but rearranging ${MAKE} ${_DEPEND_THRU} to remove
FLAVOR from the environment and from MAKEFLAGS (yucky).
2001-02-24 22:02:08 +00:00
wilfried
4dbdfa7f73 We want to test if the variable is defined,
not the value it may have.
2001-02-15 21:51:32 +00:00
wilfried
f13fccbaf2 set variable before we use it, ok espie@ 2001-02-13 12:09:07 +00:00