Commit Graph

912 Commits

Author SHA1 Message Date
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
espie
2b162efb9b move up pkgpath.mk, so that PKGPATH is available.
Use it to define per-PKGPATH user-settings: BULK, WRKOBJDIR, ...
2004-02-07 22:34:02 +00:00
espie
7a0db8de9e always define WRKOBJDIR, FAKEOBJDIR (simpler logic).
change tests to !empty instead of defined.
Move BULK_TARGETS up with other user settings.
2004-02-07 22:18:49 +00:00
espie
ec41a84509 .if .if
.else                   .elif
.  if            -->    .else
.  else                 .endif
.  endif
.endif
2004-02-07 22:14:21 +00:00
espie
ec7a491459 let show be a list of variables 2004-02-07 22:02:40 +00:00
brad
f52e305c05 take USE_GCC3 into consideration.
ok espie@
2004-02-02 10:39:49 +00:00
espie
1c19b2641b better elf libs checker.
okay pvalchev@
2004-02-01 23:07:30 +00:00
espie
32f593bbc3 use -L if necessary. 2004-01-28 22:15:21 +00:00
espie
22a42aec05 slight semantic change in CDROM_SITE. 2004-01-28 22:13:40 +00:00
sturm
50b3ab6c55 remove "-f" from calls to pkg_delete, fixes "make uninstall"
ok espie@
2004-01-28 20:16:14 +00:00
espie
2715832200 tag packages with @arch 2004-01-22 21:28:49 +00:00
sturm
90c7e8a75e make flavor PFRAGs SUBPACKAGE aware as described in bsd.port.mk(5)
from Kurt Miller <truk at optonline.net>
tested by naddy@, ok espie@
2004-01-20 17:42:12 +00:00
sturm
ad0e479a5b allow for port specific additional systrace filter rules in
${.CURDIR}/systrace.filter

ok espie@
2004-01-18 07:52:49 +00:00
sturm
a47e8f6e71 let systrace log to stderr 2004-01-11 15:04:01 +00:00
espie
2d9e402c19 reorder the bottom part of bsd.port.mk so that all variable tweaks are
done before any target is evaluated.  This makes sure a whole series
of bugs can't happen.

Tests and comments by naddy@ and sturm@
2004-01-11 00:49:01 +00:00
espie
14e1f01e2c use .elif 2004-01-06 16:27:11 +00:00
espie
9a130269f5 move variables that only users can tweak, or that are constants, to
the front of bsd.port.mk.

This allows Makefile.inc and modules to use them more easily, and also
cleans up things slightly.

Also kill .include ${PORTSDIR}/../Makefile.inc (???)
2004-01-06 15:02:57 +00:00
sturm
0afcb3ce68 use WRKDIR instead of WRKOBJDIR for systrace, as the latter is not defined
unconditionally

found by Michael Coulter <mjc at bitz dot ca>
2004-01-04 09:07:19 +00:00
espie
494fac294a Report files and directories installed in WRKINST outside of PREFIX,
usually a good indication the fake process is screwing up.
Okay naddy@
2003-12-26 00:26:01 +00:00
espie
ef26554b07 Use somewhat dirty trick.
Repairs mirror-maker for multiple MASTER_SITES.
Noticed by naddy@
2003-12-24 00:08:48 +00:00
espie
841eb86247 two
if cmd; then ;; else cmd2; fi  -> if ! cmd; then cmd2; fi
I missed
2003-12-16 19:05:23 +00:00
espie
318b72ffb1 Check for duplicates in mirror-maker entries, build Makefiles that won't
heap tons of warnings with gnu-make (and that will be slightly smaller as well).
2003-12-15 17:56:40 +00:00
espie
c3a877ce10 Kill the recursive part of package dependencies recording, since the
new pkg_add deals computes recursive dependencies on the fly.

okay naddy@
2003-12-11 08:55:24 +00:00
millert
8aa47fb2ef Don't prepend DESTDIR to paths when installing, perl > 5.8.0 deals
with DESTDIR automatically.  Note that you will need to update to
perl 5.8.2 in order to build perl modules as packages now.
OK pvalchev@
2003-12-03 03:47:07 +00:00
espie
fed09d5bcc zap some packing-lists sanity check. These are now donw by pkg_create
in a more precise and faster way.
2003-11-22 12:03:44 +00:00
espie
6817307ee5 set PACKAGING in RUN_DEPENDS, to avoid picking up bogus subpackages
dependencies.

Tests by sturm@, noticed by pval@
2003-09-28 10:57:01 +00:00
naddy
65d11563a5 * force uninstall in reinstall
* fix typo in clean=install handling

discussed with sturm@
2003-08-28 23:42:44 +00:00
naddy
56823d7f5d prevent leak of custom IFS value from shell fragment; ok sturm@ 2003-08-28 21:50:12 +00:00
sturm
5c1459beb1 don't try to fetch distfiles of ports marked FETCH_MANUALLY
ok naddy@
2003-08-28 16:19:00 +00:00
espie
31df7d5d6e Add FAKEOBJDIR support 2003-08-21 20:22:45 +00:00
espie
39171fc37f update .PHONY list to match reality. 2003-08-15 00:35:10 +00:00
espie
417fb59480 PORTSDIR_PATH ?= ${PORTSDIR}:${PORTSDIR}/mystuff support. 2003-08-15 00:05:41 +00:00
espie
6f7ee487d8 Use -S${WRKINST} for pkg_create.
YOU MUST HAVE A CURRENT pkg_create FOR THIS TO WORK !!!
2003-08-15 00:04:45 +00:00
naddy
d1e3b2b512 Fix a typo that caused ports marked with FETCH_MANUALLY always to be skipped
for BATCH=Yes.  Reported by Kurt Miller <truk@optonline.net>.
2003-08-14 15:29:20 +00:00
espie
79dfad4929 missed two readme, thanks Nick. 2003-08-13 19:41:01 +00:00
espie
08fa6014ce advisory license-check: warns if a package is apparently built from bad
sources.  Will returns some false positives.
2003-08-11 20:10:41 +00:00
espie
5018e3388c make sure the site selector has an entry for each :<digit>, ensuring
incorrect entries will be spotted.
2003-08-11 20:07:59 +00:00
sturm
9dca62c74b Unconditionally use do-extract and create that target in case it doesn't
exist with the old, regular EXTRACT_CASES stuff. This allows for systrace
protected extracts.

espie@ ok
2003-08-11 18:42:07 +00:00
espie
c75167d854 Fix INDEX building. Trickery that allows ECHO_MSG='echo 1>&2' to work again. 2003-08-08 23:56:13 +00:00
espie
7e71f84147 kill .USE, use common shell code instead. 2003-08-04 15:05:24 +00:00
espie
c07bda5739 oops, make sure SKIPPED is set immediately, otherwise it won't show. 2003-08-04 14:54:29 +00:00
espie
4fb6f7fb2a smart recursion over clean depends. 2003-08-04 14:45:31 +00:00
espie
63adb1a923 let *-dir-depends recurse globally, with one single file. 2003-08-04 14:37:48 +00:00
espie
b8e4c98450 move _depfile_fragment to pkgpath.mk so that it can be reused more widely.
Fix the logic so that the file is only removed where it is set.
Add some checks to *-dir-depends for more `global situations'.
2003-08-04 14:37:10 +00:00
espie
df3c9aa7ce zap old targets and add new ones. 2003-08-04 14:16:53 +00:00
espie
acc638c113 Use trap to remove _DEPENDS_FILE, so that it does not stay around.
Since all the code is now in one chunk, put it into _depfile_fragment.
2003-08-04 14:00:46 +00:00
espie
1ee70309ea oops 2003-08-04 13:31:26 +00:00
espie
0f9ceae51e kill old readme (useless distinction).
Let make clean=readmes work.
2003-08-04 13:25:36 +00:00
espie
89a58c808d Fix SKIPDIR handling.
Make various variables not public.
Remove PORTSDIR definition, it's alredy in /usr/share/mk.
2003-08-02 09:58:11 +00:00
espie
9a700ec7a5 put _flavor_fragment into a separate file, that's included from both
bsd.port.mk and bsd.port.subdir.mk. Make sure flavors are properly
separated.

Change the way bsd.port.subdir.mk works, slightly: always set full directories.
- SKIPDIR with full paths will work.
- all dirs are displayed as full package specs.

Generate complete html files.
2003-08-02 09:53:27 +00:00
espie
2baedf3e1e minor fixes to readme 2003-08-01 09:07:06 +00:00
espie
a46196fdcf if cmd; then : else -> if ! cmd; then
suggested by naddy@
2003-08-01 09:02:42 +00:00
espie
9035370921 show libraries BEFORE testing that we already recursed in that dir.
Problem found by marc_m@.
2003-08-01 08:29:43 +00:00
espie
ff6ba5bcaa too eager in unsetting FLAVOR, problem found by jolan@ 2003-08-01 08:20:43 +00:00
espie
3e6da56495 get thru _clean to handle clean, since it's set in stone.
Add work if only depends is set.
problem found by naddy@
2003-08-01 08:07:30 +00:00
espie
be5adfc375 pull a few more targets out of user-visible space.
Sprinkle a few more cd ${.CURDIR} && exec
move distclean into convenience targets area.
2003-07-30 19:59:48 +00:00
espie
8d30a050aa redo the list of phony targets, in alphabetical order 2003-07-30 19:51:11 +00:00
espie
39307efa3b clean-up and speed-up dependency generation.
thanks to nikolay, naddy, and others for comments.
2003-07-30 19:31:31 +00:00
espie
d9883c9976 quote pkg to protect wildcards against shell (e.g., bzip2-*).
It didn't use to happen, but I just had bzip2-* matching against
bzip2-1.0.2.html
2003-07-30 10:40:43 +00:00
espie
d426e175d7 restore install 2003-07-29 22:27:09 +00:00
sturm
706f3c88e2 python module for all standard python ports
from Xavier Santolaria <xavier@santolaria.net>
2003-07-28 17:48:13 +00:00
sturm
16ce58292a this makes our build infrastructure systrace aware
original idea from jsyn@, discussed and first tests at c2k3

Warning!
- this commit is different from all patches sent around, please remove
  them before updating
- due to a few bugs in systrace this is currently not ready for the casual
  porter and several ports will fail to build, you've been warned

The idea of this patch is to help a porter when developing a new port.
With systrace the configure, build and fake stages are not allowed to
open network connections or write outside some well defined directories.
This way misbehaving programs will be noticed due to logfile entries in
/var/log/messages and the port can be fixed. There is generally no need
for endusers to use this, as the checksum ensures that ports in the
future will behave the same as they did when porting. :)

To activate systrace'd port building, set USE_SYSTRACE=Yes (e.g. in
/etc/mk.conf)

tested by some people, ok espie@
2003-07-28 17:17:04 +00:00
espie
7eff30b5be FETCH_MANUALLY
okay naddy
2003-07-25 12:46:26 +00:00
pvalchev
0f13a36266 patch -b is now -z 2003-07-25 02:17:51 +00:00
naddy
c516389304 protect smart recursion in clean-depends against port names that are
substrings of others; ok espie@
2003-07-24 12:50:38 +00:00
espie
250e5fea9d smart recursion in clean-depends: use an extra temp file to avoid cleaning
up the same spec twice.
2003-07-23 22:24:24 +00:00
avsm
0b19487932 ghc module for ports that use the Haskell language 2003-07-23 18:27:09 +00:00
espie
d766877485 say goodbye to DEPENDS, MISC_DEPENDS, FETCH_DEPENDS. Okay naddy@ 2003-07-23 09:58:33 +00:00
espie
0cd1e35343 switch to emacs Makefile mode, at the request of Han Boetes.
Kill extra ending spaces.
2003-07-18 19:02:13 +00:00
espie
4f65d45f7b more non-existing hooks. 2003-07-18 18:54:09 +00:00
espie
f53f21e957 simplify the creation of links in the package repository.
ok naddy@, pval@
2003-07-18 18:34:26 +00:00
espie
bb5f00f090 kill lots of if !target.
Kill targets that don't apply to ports.
2003-07-18 18:18:15 +00:00
naddy
66353942fb Introduce zope module and make zope-* ports use it.
From: Xavier Santolaria <xavier@santolaria.net>
2003-07-17 15:11:38 +00:00
espie
08a54a2657 remove RESTRICTED, CATn, MANn, MANPREFIX, CATPREFIX, NOCLEANDEPENDS.
MANCOMPRESSED, NOMANCOMPRESS.
2003-07-16 21:22:15 +00:00
espie
93157b81b3 zap motif comments 2003-07-14 14:08:57 +00:00
espie
e395afc3c0 zap stuff documented elsewhere. 2003-07-14 14:02:18 +00:00
espie
fbf7277e7b kill tweaks that make no sense:
NO_DESCRIBE, NO_PACKAGE, FETCH_BEFORE_ARGS, FETCH_AFTER_ARGS, NO_WARNINGS
(is this used ?), VARNAME, FORCE_PACKAGE.
Make CKSUMFILES invisible from users.

Make sure repackage and reinstall go through normal clean targets.
Kill pre-clean, pre-distclean, pre-repackage.
Don't allow customization of distclean.
2003-07-14 13:33:04 +00:00
espie
c1ca969495 zap show VARNAME= usage. 2003-07-12 12:51:19 +00:00
espie
c0618f0f68 zap stuff that's now properly documented 2003-07-12 12:50:06 +00:00
pvalchev
31b771de82 use '|' rather than ',' for sed substitution delimiter since the comma
clashed with multiple names into MAINTAINER (separated with comma), now
that it is part of SUBST_VARS.  '|' should be safer wrt all other
variables there; ok espie
2003-07-11 16:46:20 +00:00
espie
a29618cde1 PROBLEMS->_PROBLEMS, this shouldn't be user-visible. 2003-07-09 11:16:21 +00:00
espie
c1e3a7277c say goodbye to obsolete comments and stuff documented in bsd.port.mk(5) 2003-07-08 22:01:23 +00:00
pvalchev
5e156c4b68 Include maintainer name in the description, this way it can be easily
checked by pkg_info(1), etc.; ok espie
2003-07-08 21:51:26 +00:00
avsm
f243823792 point to www/php4/core instead of www/php4/pear 2003-05-23 20:09:01 +00:00
sturm
9c77c97ed3 As "run-depends" is not recursive, only the first layer of pure RUN_DEPENDS
packages got created. By setting DEPENDS_TARGET=install, all layers of
pure RUN_DEPENDS are installed directly.

OK espie@, naddy@
2003-05-18 23:11:21 +00:00
espie
4e35f82f32 do not duplicate gnu in CONFIGURE_STYLE if it's already there.
Useful when one wants a specific CONFIGURE_STYLE order and thus specifies
gnu explicitly, e.g., CONFIGURE_STYLE=autoconf gnu imake
2003-04-06 14:34:36 +00:00
avsm
3990f2d5fb add support for PHP pear modules 2003-04-03 10:29:35 +00:00
pvalchev
8a0d0886ea Stop advising users to ignore wrong checksums, instead suggesting from the
distfiles/ directories on the OpenBSD FTP servers where a good copy is
normally carried.  From Peter Hessler, ok espie lebel
2003-03-02 17:54:27 +00:00
espie
c138118a37 MODULES=gnu can be used to access MODGNU_AUTOCONF_DEPENDS without entering
into CONFIGURE_STYLE issues.
ok naddy, pval
2003-02-27 19:27:00 +00:00
espie
a63ca19a8c Display something useful when a package location has been specified wrong. 2003-02-16 15:16:17 +00:00
espie
86550e7114 no longer a need to pass AUTOCONF/AUTOHEADER through MAKE_FLAGS/FAKE_FLAGS
found out by naddy@, should unbreak erlang.
2003-02-15 19:59:35 +00:00
espie
3c8bf6ed4f make autoconf/automake dependencies visible through
MODGNU_AUTOCONF_DEPENDS/MODGNU_AUTOMAKE_DEPENDS
2003-02-15 16:38:48 +00:00
espie
7de32aba9d switch to metaauto framework: the autoconf ports are now not quite usable,
and need the metaauto wrappers to work.

The metaauto wrapper does not run depend on any autoconf version, to allow
partial installations.

Tested and approved by naddy@
2003-02-15 14:06:58 +00:00
espie
39a4a543c0 make kde module visible 2003-02-08 12:38:16 +00:00
brad
770d499273 fix lib-depends-check on ELF systems to deal with libraries of the form
libN-X.Y.so.A.B
--
From: Lurene Grenier <lurene@daemonkitty.net>
2003-02-06 03:45:15 +00:00
espie
7014ba7264 Make WRKOBJDIR be a basis for WRKDIR when defined.
Do not create a symlink from CURDIR.

Based on a suggestion of Hakan, tested and approved by various ports
people.
2003-01-14 18:18:23 +00:00
espie
24f60aca49 Quote flavors, pass multi_packages as well. 2003-01-06 20:18:23 +00:00
espie
b1320b3d67 Pass more arguments to update-plist 2003-01-06 20:15:39 +00:00
espie
6d742f2c0b revert 2002-12-08 11:04:47 +00:00
brad
3a8ee30d3c be more flexible with the gmake version we will accept. 2002-12-08 04:17:39 +00:00
naddy
f107824102 First cut at OCaml module.
From: Nikolay Sturm <sturm@sec.informatik.tu-darmstadt.de>
2002-11-13 21:42:15 +00:00
pvalchev
482756a7b6 Add gcc3 module. OK espie naddy
MODGCC3_ARCHES should be set to use this, as addition to MODULES=gcc3
MODGCC3_LANGS accepts C++ (C default) and adds proper dependencies, etc
(more languages can be added later on eventually.)

Those will start getting splattered around the tree as time goes now
that the support is there (sparc64 & alpha can make use)
2002-11-12 03:50:56 +00:00
naddy
a152719172 Rename DUDS to SKIPDIR for consistency with the base system; ok espie@ 2002-10-24 23:14:40 +00:00
naddy
dc7b8f8a72 typo; from Han Boetes <han@mijncomputer.nl> 2002-10-10 21:14:11 +00:00
espie
b7349f6e16 fix typo. sigh. this code is not used that much. 2002-09-11 19:35:21 +00:00
brad
c4ba57cd1c fix refetch target when DIST_SUBDIR is defined. FULLDISTDIR -> DISTDIR
--
Problem pointed out by: Nick Nauwelaerts <nick@wanadoo.be>
Ok'd by: espie@
2002-08-30 15:06:06 +00:00
avsm
97d7fd758e remove an unnecessary check for NetBSD
ok espie@
2002-08-29 18:35:40 +00:00
avsm
0d2fe0ad1c PSEUDO_FLAVORS support
from/ok espie
2002-08-07 15:48:19 +00:00
pvalchev
6acee16b30 Kill NEED_VERSION, since people are now told to keep their ports
tree / release in sync, and strictly managing it generates a lot
of useless effort.

Note that the support for NEED_VERSION is now gone, however ports
will get that line stripped from their Makefile as time progresses
with updates, gradually; there is no emergent need for it.

ok espie and others
2002-07-06 09:24:06 +00:00
mpech
c356e917ba /var/X11/... -> /etc/X11/... From form@.
lebel@, naddy@, pval@ ok
2002-06-27 12:47:23 +00:00
mpech
7273a819d5 Add -V and -m to FETCH_CMD. Idea from form@.
espie@ ok
2002-05-20 05:18:18 +00:00
millert
48e962fab3 'perl -p' does not seem to behave as I expected; use -n instead.
Fixes a problem with the perl shar filter noticed by pval@
2002-05-19 18:51:21 +00:00
espie
5d9ca1a5bf say goodbye to MASTER_SITE_SUBDIR 2002-05-15 18:23:21 +00:00
espie
386b666f7c Add WWW: ${HOMEPAGE} at end of DESCR if not integrated already.
Mark MASTER_SITES_SUBDIR obsolete.

Promote a construct taken from NetBSD indeed.
2002-05-13 00:43:42 +00:00
millert
1cb6674558 Replace _SED_FIX_SHAR with _PERL_FIX_SHAR which can deal with shar
archives that don't start with "#!/bin/sh"; espie@ OK
2002-05-08 18:31:49 +00:00
espie
727512ae3c Run check of symlinks post-fake as root too. 2002-05-07 12:25:54 +00:00
espie
92531f47ed let build of dependencies that are not 'install' or 'package' happen
inside a subdirectory of the working directory, instead of elsewhere.
Allows packages BULK=Yes to work correctly, and increase reproducibility
of builds.

tested by naddy@ through several incarnations.

Ports that use patch/configure/build dependencies must be adjusted for this.
Pleasingly enough, the adjusted version is often simpler.

The change uses an internal _MASTER variable to recall the list of ports
built during dependencies, for less confusion.
2002-04-24 21:29:26 +00:00
espie
9acaeefab9 double typo. Let ftp-packages and cdrom-packages be normal BULK_TARGETS. 2002-04-17 16:53:13 +00:00
espie
5c6c013651 kill bulk-packages. Use `make package BULK=Yes' instead.
The main advantage is that workdirs are cleaned up as soon
as package is built (or installed), not later.
2002-04-17 15:58:48 +00:00
espie
2b7c75e086 Move perl manpages where they belong, from section 3 to section 3p.
NOTE THAT /usr/local/man/man3p MUST EXIST FOR THIS TO WORK.
UPDATE /etc/mtree/BSD.local.dist AND RUN IT ACCORDINGLY !!!
2002-04-16 19:25:01 +00:00
espie
83d65ba969 Add variable P5SITE/P5ARCH, this will make future plists more compact. 2002-04-16 17:35:21 +00:00
espie
375850a04e Allow for DIST_SUBDIR to be empty 2002-04-10 08:44:57 +00:00
espie
8033007ddd Add PROTECT_MOUNT_POINTS, to help package builders spot ports that write
outside of the fake area.
2002-04-09 23:55:11 +00:00
espie
6eefe19bd3 fix indentation 2002-04-09 22:52:24 +00:00
espie
74c923f4c6 USE_LIBTOOL, USE_GMAKE, USE_X11 should really be Yes/No variables. 2002-04-09 13:52:58 +00:00
espie
9ad648bfbe Let make update-plist look at dependent packages (LIB_DEPENDS and
RUN_DEPENDS) to create a more accurate list of @dirrm.

Minor negative side-effect: up-to-date dependent packages must be present
for this to work. Not a problem, since this is only used by maintainers.

This improves the quality of generated plists for large packages with lots
of dependencies by a large amount (e.g., kde)

reviewed by pval@
2002-04-03 15:00:30 +00:00
espie
ddaac90cab Add a target to check that makewhatis will build correct index entries. 2002-04-02 15:55:55 +00:00
espie
6d8b4f799b Kill files/md5 magic 2002-03-21 21:28:29 +00:00
espie
25c3970285 oops, bad exec in a combined command 2002-03-18 03:18:24 +00:00
espie
1c8f153f2e Tsk, tsk. 2002-03-18 02:00:00 +00:00
espie
8f76f3fa33 can't set both motif and lesstif flavors at once. 2002-03-18 01:55:40 +00:00
espie
b6d50a2151 Handle ERRORS+='Fatal:...' as well 2002-03-18 01:52:46 +00:00
couderc
69ab7a3aea Include ruby module 2002-03-17 22:34:16 +00:00
espie
b39f70427a move gnu dreck (autoconf, automake...) to gnu.port.mk 2002-03-16 01:09:23 +00:00
espie
6ac449705e disable automake unless explicitly asked for it.
Just did a package build without any apparent ill effect.
2002-03-16 00:54:37 +00:00
espie
4c2a3c3cf5 Add ${WRKDIR}/bin directory. 2002-03-15 13:29:13 +00:00
espie
9775511ef0 Add rules to create a list of homepage links for all ports. 2002-03-13 13:51:59 +00:00
brad
25908a510d mention tcsh 2002-03-10 06:02:16 +00:00
espie
1454c1191c link qt3 in. 2002-03-04 16:15:41 +00:00
espie
e0db562001 create package dependency list in a separate file.
This solves some nasty merged output problems and unconfuse redirection
issues.
2002-03-04 15:33:16 +00:00
brad
ba5772bc40 copy config.sub too 2002-03-03 01:23:23 +00:00
espie
633db19d5e Trip ports that mistakenly try to write into $HOME. 2002-03-02 13:38:25 +00:00
naddy
53bcf007ee fix REGRESS_IS_INTERACTIVE logic; ok espie@ 2002-03-01 00:49:03 +00:00
espie
5430bb6c97 don't redirect build output to /dev/null, redirect it to stderr instead,
so that building packages in the background to solve dependencies won't
break the plist it's building, but show up clearly still...
2002-02-27 00:25:35 +00:00
espie
effd838b50 hooks for switching to autoconf-2.52. 2001-12-31 09:38:54 +00:00
miod
9bc837b28e Repair mvme88k entry in NO_SHARED_ARCHS line. MACHINE_ARCH should be listed
there, not MACHINE....
2001-12-23 02:17:02 +00:00
brad
5bb9f47eb0 for the addsum target, check to see if files/md5 exists before trying to
move it that way we do not get an error message from mv if it does not
already exist.
--
Ok'd by: espie@
2001-12-15 18:10:36 +00:00
naddy
07838e78bd Fix the HTML markup produced by "make readmes" in /usr/ports.
Submitted by:	Nick Nauwelaerts <nick@wanadoo.be>
PR:		2233
2001-12-13 15:40:27 +00:00
naddy
b83c7c9e9f match the comment for the describe target with the actual code; ok espie@ 2001-11-22 16:02:26 +00:00
espie
47692f4664 Use perl lib depends checker, that parses the full gamut of libspecs. 2001-11-17 10:39:19 +00:00
espie
980f49d11e handles subcategories in package-links. Close PR 1731 2001-11-15 02:07:05 +00:00
espie
6221dfd2c5 typo 2001-11-13 12:52:22 +00:00
espie
863226a22f Basic new lib dependency code for package.
LIB_DEPENDS are no longer part of ALWAYS_DEPEND for the new-depends code,
but use their own code.

The code does scan the list of libraries for dependent packages, and insert
corresponding @libdepend lines into the resulting package. There are a few
important consequences:

- no libdepend lines are inserted if only a static library is found. So
RUN_DEPENDS are now needed to supplement LIB_DEPENDS if a package requires
another package for something that isn't a library.
- dependency checking for installed stuff can go one step further, since
we have the major/minor number of the libraries used for the build.
At the moment, pkg resolve dependencies does nothing smart with the
inserted libdepends, but it will (soon). In fact, for most libdepends, if
the major/minor scheme are correct, no check on the installed pkgspec ought
to be necessary... which is why the `default pkgspec to check' is pkg-* for
libraries.
- resolving recursive run dependencies need to go one step further: a
RUN_DEPENDS pkg may have some LIB_DEPENDS, and the RUN_DEPENDS pkg will be
needed to explicitly write the required information into the resulting
package... Hence the necessity of being able to tune the list of libraries
to ask the uninstalled package (and to make sure the uninstalled package
is built).

This is only preliminary work. Currently, this doesn't yield any real
benefits to the old approach, as a few semantic details need to be
sharpened out. Also, there are now quite a few old targets that are a
complete mess and will need to be cleaned up/removed entirely.

Thanks to naddy@ for testing various preliminary versions of this patch
and helping me iron bugs out.
2001-11-12 14:32:52 +00:00
espie
ea79980b4c Replace the lib dependency check with a more mechanical check, that
no longer relies on ldconfig, but rather on the path stored inside
LIB_DEPENDS. Introduce a lib_resolve_fragment that can be used to
resolve the libraries from a given list (e.g., listlibs).

To be used in the next patch.

Note that this check is currently more or less equivalent to the old
check, apart from the fact that:
- libs can't trust packages,
- lib-depends always resort to non-shared libraries, even on shared
architectures, if the shared check doesn't work.
2001-11-12 14:24:06 +00:00
espie
fb319b058a add top-level directory `mystuff' to be used by porters for stuff they
haven't committed yet. The nice part is that dependencies get transparently
resolved to mystuff/dir if they aren't found in dir.
2001-11-12 14:19:17 +00:00
espie
f5975b9f08 Move the `check and change directory' part to flavor_fragment, as it's
invariably duplicated right after otherwise.

This makes the code cleaner, and makes sure the check happens all the time.
2001-11-12 14:14:46 +00:00
pvalchev
a9a3d26241 get a proper list of system libraries to exclude, and report real missing
ones from LIB_DEPENDS for lib-depends-check on ELF. ok espie
2001-11-12 01:27:26 +00:00
heko
0e36dadb66 o Instead of copying the "virtual memory exhausted" warning for each
individual port, introduce a new variable for bsd.port.mk, VMEM_WARNING.
By setting this variable to `Yes', the user is given a warning about the
virtual memory requirements just before the pre-build stage.
o Also give some examples for different shells for what to do about
it, and mention login.conf(5). bash, for example, has a confusing
-v flag to ulimit.
o Document this in bsd.port.mk.5
espie@ ok
2001-11-11 13:57:32 +00:00
espie
1254a2ffa7 transform files/md5 into distinfo magically.
I would credit FreeBSD or NetBSD for the idea if I could remember which
one came up with it first. :)
2001-11-11 12:59:50 +00:00
espie
c66b6461e8 Zap idiot subshell 2001-11-01 12:26:16 +00:00
brad
75f2c36138 bad idea. 2001-10-31 19:36:12 +00:00
espie
1ee295c375 Recursive module support. 2001-10-29 12:51:59 +00:00
brad
94ce66e55a Add gtk module. 2001-10-28 21:41:47 +00:00
espie
d67e77748f defaulted variable in *-depends target, currently unused: way to know
that dependency defaulted to default pattern.
2001-10-28 12:34:57 +00:00
espie
dc1a706952 Move NEED_VERSION check later. Allows for NEED_VERSION to be a list.
Useful for modules support: now specific modules can require later
versions of bsd.port.mk.

Of course, ports using modules may need an update to 1.486 to use
this feature.
2001-10-28 12:31:35 +00:00
brad
53837aa927 For consistency, use :L variable modifier with ELF_TOOLCHAIN check. 2001-10-28 04:59:26 +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
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
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
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
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
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
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
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
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
naddy
5c7d963a5d typo: break to accidentally joined lines 2001-08-21 22:22:57 +00:00