Commit Graph

1873 Commits

Author SHA1 Message Date
espie
8aed1af7f0 Let lock save the BUILD_PKGPATH.
Do port-lib-depends-check in two steps: first generate a list of
binary: lib1,lib2,lib3
in WRKINST/.saved_libs
then run check-lib-depends on it.

Speeds up tweaks to WANTLIB quite a lot, as we do not rescan every
binary all the time...
2007-06-03 11:03:06 +00:00
espie
009f44b53a allows saving/retrieving dump of objdump runs. 2007-06-03 11:01:10 +00:00
espie
1cc1790f05 add an option which simply dumps the stuff out. 2007-06-03 10:32:23 +00:00
espie
27af9a55a3 assorted cleaning-up:
- no longer any needed to put haslib and needlib together, since we
create it independently.
- replace the tests for opt_f by a distinct Recorder object, that either
keeps all binary names, or just some (bonus: this should allow us to
store the information the other way around).
- remove extra $db parameter which no longer servers any purpose.

Comment a few data structure.
2007-06-03 09:21:50 +00:00
espie
f10eb23d0b finish killing old stuff, you should have updated by now. 2007-06-02 12:23:28 +00:00
espie
0c6983c419 allow locking command to take extra parameters, store them inside the lock
file (as a comment)
2007-06-02 12:03:56 +00:00
espie
9a70356e28 use new ProgressMeter interface 2007-06-01 15:01:50 +00:00
espie
4fb932ea5d finish renaming check-newlib-depends -> check-lib-depends 2007-06-01 13:15:21 +00:00
alek
46127e0b2e introduce new master site -- MASTER_SITE_RUBYFORGE; ok jcs@, jasper@ 2007-06-01 10:57:48 +00:00
espie
3eae0fe94a kill REQ script support, flag INSTALL/DEINSTALL as warnings.
Remove obsolete _PKG_PREREQ cruft.
2007-05-31 10:52:16 +00:00
ajacoutot
f4d359465a - revove dead CPAN mirrors and add some working ones
- also remove the duke.edu X11 mirror

from Jim Razmus
2007-05-30 23:16:25 +00:00
aanriot
38f0545b32 add a trailing backslash.
ok naddy@
2007-05-29 17:36:32 +00:00
naddy
a522c9bc3e remove dead mirror sunsite.org.uk; from Jim Razmus 2007-05-29 16:57:00 +00:00
ajacoutot
2ac0379c60 - remove soon to be out-of-service servers and add a few Gnome mirrors
from Jim Razmus <jim at bonetruck dot org>
2007-05-29 14:40:42 +00:00
espie
1a7def9f37 use the same rules to represent comments in describe that are used to
build packages.
2007-05-27 11:53:39 +00:00
jasper
8d825db2fb remove useless master site
from Jim Razmus <jim at bonetruck.org>
2007-05-27 09:13:56 +00:00
naddy
96b2f8b41c add pl_PL.ISO_8859-2 (Polish) NLS directory; required for upcoming tcsh update 2007-05-27 00:24:24 +00:00
espie
f790ffb4c9 better quoting 2007-05-26 20:20:38 +00:00
espie
f693d15fb3 use the new features of pkg_create. A few packages may no longer build
without a packagename bump, or because they have too long comments.

steven@ and I cleaned up most of them.

As a result, there's no longer any WRKPKG directory with their temporary
files.

We also use the `sort -u' feature of pkg_create for dependencies, so that
the command lines to pkg_create get simpler, which will allow for easier
error-checking later on.
2007-05-25 13:07:41 +00:00
espie
3e81f47fb3 synch with pkg_add src/ changes 2007-05-23 10:34:15 +00:00
espie
9fd3895989 fix infinite recursion for p5-version like we already did for modbuild
proper... nothing new under the sun.
2007-05-22 20:57:25 +00:00
espie
9d2f3b66db old `check-lib-depends' has been dead for ages. Prepare for renaming. 2007-05-22 10:39:05 +00:00
espie
8eb23915f4 we don't bother building hardlinks either 2007-05-21 21:43:50 +00:00
espie
170d57a28f oops again: make sure we create the correct files. 2007-05-21 21:38:01 +00:00
espie
3876bf00e9 zap debug line 2007-05-21 21:24:56 +00:00
espie
49aaeb4f95 use the new code to ALSO report libraries recorded in WANTLIB (and used)
that are actually not reachable.

Reword the print-out slightly, I think it looks nicer ;-)
2007-05-21 21:23:45 +00:00
espie
e0e45027b6 oops 2007-05-21 21:02:14 +00:00
espie
3b31079021 unify reporting of lib issues 2007-05-21 20:52:33 +00:00
espie
023cfd6b44 Create error objects based on library stuff. 2007-05-21 20:39:27 +00:00
espie
ed3de34f07 separate usage of variables. 2007-05-21 20:20:50 +00:00
espie
440c45949a $o->method() becomes $o->method 2007-05-21 20:14:28 +00:00
espie
ee3c5a28f4 slightly clearer code: retrieve files through a FileSource, that abstracts
all details of archive extraction (or not).
2007-05-21 14:41:38 +00:00
espie
f438993d53 cut the main routine into scanning binaries/checking libraries. 2007-05-21 14:15:31 +00:00
steven
f1aafbc927 add clean=plist to clean a port's registered plists.
fine with bernd@, ok espie@
2007-05-21 11:18:10 +00:00
espie
b61771ff87 generalize info files to zap auxiliary junk. Allows for manpages to change
without obvious negative consequences.
2007-05-20 17:27:51 +00:00
jasper
925e847361 sync the packetstorm list with reality
from Jim Razmus <jim@bonetruck.org>
2007-05-18 20:26:32 +00:00
ckuethe
3c2be6022b update to darkstat 3.0.619.
ok rui
2007-05-14 21:42:47 +00:00
pvalchev
133a1b014c 4.1; beck 2007-05-14 16:16:17 +00:00
espie
c43a2cc6c2 use new-style plist visitors. 2007-05-13 08:03:47 +00:00
espie
2b5101e32f use newest PkgSpec interface 2007-05-12 14:56:21 +00:00
espie
c8985ffe5e strip quotes 2007-05-12 14:02:08 +00:00
sturm
7c066d7098 fix the recursive case for FETCH_PACKAGES by appending the PACKAGE_COOKIE
to _TRIED_FETCHING, this broke in 1.774

ok bernd, espie
2007-05-01 17:17:54 +00:00
espie
77b04141fd pedantic fix: typo without actual consequences. 2007-04-30 12:44:46 +00:00
espie
7fdd640bc8 put down the ualberta mirror for apache, not reliable for me... 2007-04-28 10:31:11 +00:00
espie
e55de40a3f handle exact matches on STARTDIR.
allows `partial' STARTDIR, such as make describe STARTDIR=x11/kde
to work as expected.
2007-04-28 10:19:41 +00:00
ajacoutot
3f3ea4d7f5 Add the _gnugk user. 2007-04-27 21:12:25 +00:00
ckuethe
cb609921c5 add a daemon user for lighttpd, from brad.
ok kili@
2007-04-24 05:09:41 +00:00
jasper
86cde9b492 zap some dead master sites for gnome.
"sure" espie@
2007-04-19 19:00:51 +00:00
espie
2e20da7e2c make it work with >2 directories in PORTSDIR_PATH.
From Mikolaj Kujars
2007-04-17 15:22:46 +00:00
espie
a5d3f1822b shave a bit of time (roughly 5%) by noticing that package lists are
now more or less `unique', so we can avoid processing them more
than once.
2007-04-16 15:09:03 +00:00
espie
4d3e4bb38e shrink memory used by building only one single list per set of pkgnames.
Also use a simple `seen' cache for files only used by one package, since
they cannot participate in actual conflicts.

Shrinks memory for 250M to 190M, with no negative speed effects.
2007-04-16 14:36:25 +00:00
aanriot
662b3c8355 add _nepenthes uid/gid for net/nepenthes.
from Rui Reis.
2007-04-15 11:56:26 +00:00
espie
8b9618e252 minor indent clean-up.
use auto-vivification to shorten code a bit.
pull out complicated code into its own function.
marginally faster than old version... some size decrease to do later...
2007-04-10 21:36:26 +00:00
espie
e4dcfe629b avoid Makemaker going interactive, okay naddy@ 2007-04-08 16:16:06 +00:00
espie
e9ebd9d4e4 avoid recursing ad nauseam on symlinks. 2007-04-08 15:22:49 +00:00
espie
44415f04fb abort early if packing-list was not read correctly. 2007-04-08 12:36:04 +00:00
espie
7c076f597b port-lib-depends-check should ignore errors, because it's much less useful
that way.
2007-04-08 11:26:39 +00:00
espie
04b97b2f22 STARTDIR functionality: allows one to skip directly to a given directory
and start from there.
2007-04-07 09:55:13 +00:00
espie
97e872a96d sha256 by default 2007-04-05 18:32:26 +00:00
espie
3a1268d790 finish the infrastructure changes needed for correct mirroring:
- use cksum -c, be careful about directories in fetch-all.
- also create links for the base64 version of the links.
2007-04-03 15:37:38 +00:00
espie
064be6c9e4 revert order of tests, if CHECK_LIB_DEPENDS is active, do not register plist
until we're satisfied.
2007-04-03 13:32:45 +00:00
espie
23c2d177a9 allow people to run check-lib-depends automatically, grabbing the files
from WRKINST and the packing-list from the just built package.
Reuse the register_plist pattern.
2007-04-03 10:14:14 +00:00
espie
2ad9b6ee63 error out in case something is not found, remove debug message. 2007-04-03 10:13:27 +00:00
espie
31721c0772 don't restrict -B to the case the packing-list comes from stdin. 2007-04-03 10:05:50 +00:00
espie
1cca659066 configure may not exist. found oud by steven@ 2007-04-02 10:43:39 +00:00
espie
f020e9e32b new target: port-lib-depends-check, can verify libraries directly from the
fake area, without needing to build bogus packages first.
2007-03-31 15:36:43 +00:00
espie
8016e70458 new mode: can work with packing-list on stdin, and a fake directory as -B
argument.
2007-03-31 15:26:45 +00:00
espie
5bc25e411a display warnings if autoconf version differs. 2007-03-30 13:55:07 +00:00
espie
949afb38a5 like xenocara: REORDER_DEPENDENCIES has been tested enough, silence it
by default.
2007-03-30 13:44:50 +00:00
espie
c6897dc077 CHECKSUM_FILE never changes -> can be used directly 2007-03-30 13:41:44 +00:00
espie
c11b8cf59b make sha256 stuff linked as well. 2007-03-30 08:59:07 +00:00
espie
634644d8e4 tweak the way mirror-maker emits stuff, so that the Makefile contains lines
suitable for cksum -c.
2007-03-28 15:45:03 +00:00
espie
fb9fcd5fbc use cksum -c so we can get `magic' base64/hex matching. 2007-03-28 13:21:43 +00:00
espie
bc0a71b1bb remove stupid hack that makes _print-packagename display README on
subdirs. Confuse the hell out of broken dependencies, and is not
even needed.

fix typo.
2007-03-19 21:32:35 +00:00
espie
23eb9fed1b reserve _kdesud 2007-03-18 17:12:16 +00:00
naddy
2c2c250df3 makesum: don't try to create distinfo if there are no distfiles; ok espie@ 2007-03-15 18:11:54 +00:00
pvalchev
3a58459afd latest 2007-03-08 22:55:17 +00:00
pvalchev
39aa16e13b tweak 2007-03-04 18:00:56 +00:00
pvalchev
c46042755b shrink 2007-03-04 08:02:23 +00:00
robert
bb78d67894 add mozilla-firefox 2007-02-26 14:27:39 +00:00
naddy
4d683b20c2 use cksum -a $CIPHER instead of $CIPHER here, too; ok espie@ 2007-02-19 20:14:50 +00:00
bernd
5183642076 Introduce -p option. This allows us to scan the ports tree for conflicts
without the need to have the packages around.

It's really easy now to check if a new package conflicts with other stuff
in the ports-tree:

$ find-all-conflicts -p /usr/ports newpkg.tgz

help & ok espie@
2007-02-19 19:50:50 +00:00
pvalchev
5214917679 vax plist 2007-02-18 07:08:52 +00:00
pvalchev
2f6ccd5571 update to what i use now.. 2007-02-17 02:29:46 +00:00
espie
b5a3fca2a6 use _CKSUMFILES in clean=dist, and recurse if we notice there are
SUPDISTFILES, so we get them as well.

This misbehavior noticed by Mikolaj Kucharski.

(the intention is obviously to regrab everything to verify whether
anything changed, and that includes SUPDISTFILES)
2007-02-16 19:08:54 +00:00
espie
3b1db2b2c1 use cksum -a $$cipher instead of $$cipher to compute crypto hashes.
Only functional change:
Add sha256 at the end of the list of supported ciphers, so that new
makesums will add the new cipher.

The rest is business as usual.
2007-02-11 11:44:17 +00:00
bernd
41bd832cdc Add missing parameter for a parse_original_plist() call in grab_all_lists(). 2007-02-07 11:24:23 +00:00
espie
2c0953c14e minor tidbit: define FULLPKGPATH based on FULLPKGPATH${SUBPACKAGE} in
the multi-packages case, as should be.

introduce _ALLPKGPATHS, and use it in show-required-by, so that
show-required-by works for multi-packages.

problem noticed by bernd@
2007-02-06 20:04:01 +00:00
espie
d0d6d56f7e allow extract-dependencies to use several seeds, which is necessary
for multi-packages ports (databases/sqlite3 == databases/sqlite3,-main).
2007-02-06 20:01:06 +00:00
espie
50ea26a11c rely on new make feature, avoid old work-around (need a current make to
work)
2007-02-03 17:09:39 +00:00
espie
fa6fc8a2f7 sometimes (not very often), config.h.in files live in any directory 2007-02-03 17:08:59 +00:00
espie
7b1ed78b46 pass -a to diff always, as it will often get confused with unicode/iso-latin
stuff.
2007-02-03 17:08:13 +00:00
steven
2e28343314 remove broken and add new sourceforge mirrors
from Jim Razmus <jim at bonetruck.org>
2007-01-18 11:21:15 +00:00
jasper
1616b919e5 zap trailing whitespace in the output 2007-01-17 19:44:19 +00:00
jasper
35713408c8 zap archive.progeny.com, it's refusing connections for some time now.
"go ahead" mbalmer@ and "nuke it!" ckuethe@
2007-01-16 20:00:42 +00:00
sturm
1cc933bba1 check build depends (currently duplicates most of check_run_deps())
ok bernd
2007-01-16 18:15:53 +00:00
espie
a7cedd9db7 add the ability to cleanly delimit embedded plist info.
will help unconfuse lib-depends-check and make-plist wrt error messages.
2007-01-15 13:43:52 +00:00
espie
f7229e2ff8 make expr less greedy 2007-01-12 21:53:31 +00:00
mbalmer
81648b584d Add the _tabled user. 2007-01-12 14:01:08 +00:00
bernd
64d1a3eb01 It's possible that the package version we get from the ports tree is
different than expected. Teach handle_dependency() how to cope with that.

Debugged with msf@ some time ago. Fix tested by msf@, sturm@ and steven@.

This also fixes the following error some people have seen:

"Can't use an undefined value as a HASH reference at
/usr/ports/infrastructure/package/check-newlib-depends line 234."

"go for it" espie@
2007-01-11 18:45:18 +00:00
jasper
dfa7b8ee47 add _gonzui
ok bernd@
2007-01-11 15:20:22 +00:00
steven
33dc528822 sync packetstorm mirrors with their official mirror list.
from Jim Razmus <jim at bonetruck.org>
2007-01-10 23:19:19 +00:00
steven
683f71c7c5 remove unused MASTER_SITE_SOURCEWARE.
from Jim Razmus <jim at bonetruck.org>
2007-01-10 23:06:41 +00:00
espie
6c505bfc6f cache mtrees read from dependencies so that we don't parse the same
dependency twice across MULTI_PACKAGES.
2007-01-10 01:41:29 +00:00
espie
98c444198b yet more special-casing: do backsubst for libnames correctly, so that
update plist correctly registers existing ones, otherwise shared libraries
with some weird names will always pop back to the main PLIST.
2007-01-09 19:40:49 +00:00
msf
0aa5a677c5 add missing entry for _puppet 2007-01-09 12:40:32 +00:00
espie
084dbff69a for shared libraries, only apply var_backsubst on the library name, leave
the version alone.
2007-01-08 18:33:37 +00:00
robert
5ddcbee4c6 add a list of sh packages i use for building; ok pvalchev@ 2007-01-04 13:34:06 +00:00
bernd
c5e1d48b7a Fix typo. This unbreaks 'make update'. 2007-01-04 11:34:14 +00:00
espie
9f019509e8 prefer subpackage-dependent version of variables for substitutions.
this lets the correct PREFIX be substituted in packages, among other things.

Problem discovered in php5-extensions
2006-12-31 13:12:35 +00:00
ajacoutot
39aa7e7766 Add _hiawatha (www/hiawatha) 2006-12-31 10:34:26 +00:00
jakob
fff5ab39a3 wrong uid/gid; noted by antoine 2006-12-29 13:37:24 +00:00
jakob
cd342c4462 add _mrtg user 2006-12-29 13:08:14 +00:00
espie
8b31dd60d8 use a simple perl script to compute initial pkgpaths... Cwd can replace
pwd -P, and we select the longest prefix from PORTSDIR_PATH.

This lets mystuff-like dirs get stripped from PKGPATH correctly, as long
as PORTSDIR_PATH is set correctly.
2006-12-26 15:00:24 +00:00
espie
6a1241ecdc don't insist on matching subpackage names, anything goes... 2006-12-19 10:03:22 +00:00
espie
1ef1f2940b let check-newlib-depends use the new targets 2006-12-18 12:53:09 +00:00
espie
5efd6b68e4 duplicate the print-plist targets, add a version -with-depends, which is
slower, but shows dependency lines as well...

Also fix target evaluation to work like it does elsewhere
2006-12-18 12:52:34 +00:00
robert
1ba388a915 add _openvpn 2006-12-16 11:58:21 +00:00
espie
25c626b21e activate our pkg-config. 2006-12-16 11:53:46 +00:00
bernd
12d8350649 Output beautification. One chunk from sturm@, two chunks by myself.
ok sturm@
2006-12-15 11:19:46 +00:00
sturm
e4f1e2c985 don't check build dependencies for now, these have to be compared against
indirect run dependencies which needs a little more code
2006-12-15 09:58:55 +00:00
deanna
3610da9e52 _apache2 for www/apache-httpd
ok robert@, dlg@
2006-12-14 07:10:48 +00:00
espie
86a95eb2d8 filter prefix early, in preparation of more changes to come. 2006-12-11 17:17:25 +00:00
espie
b3ba10ebac repair pkg_mklocatedb from src 2006-12-11 15:52:14 +00:00
steven
e3820f5171 DEPPATHS per subpackage, ok espie 2006-12-11 14:01:03 +00:00
espie
468c67ec44 zap extra parse_args. 2006-12-11 13:51:14 +00:00
espie
c89eab44fc pass all subpackage information to make-plist.
Adapt make-plist to use the same code as pkg_create to deduce fragment
names, remove some old special cases that should no longer matter.

Zap directories from dependencies in a way depending on the dependency.
Far from perfect yet, as directories should be registered multiple times
in packages that do not depend on each other, and could also be used to
figure out where to put new files...
2006-12-11 13:36:06 +00:00
espie
9d1d088f4c missed a few = signs.
Avoid writing anything when no libspecs.
2006-12-11 11:05:43 +00:00
sturm
0bcaa0f861 reduce the amount of direct dependencies by pointing out those which
are pulled in as indirect dependencies

ok espie@
2006-12-10 17:34:41 +00:00
espie
5792254153 Add proper "Returning to build of..." to unconfuse the logger in the case
of FORCE_UPDATE.   Also break out in case update fails (otherwise the old
installed package would be enough to continue building).

Sprinkle REPORT_PROBLEM to know more precisely what stuff is breaking.

replace some
if eval cmd; then
with
if (eval exec cmd); then

because if eval... seems to break early, even with the test guard, thus
giving a chance to REPORT_PROBLEM to do stuff instead of having to wait.

(Note: a trap would probably be simpler ?)
2006-12-09 14:56:41 +00:00
espie
1afd447f95 wrap calls for _print-package-args to print reliable errors (better than:
`some Makefile somewhere is broken ! find it')
2006-12-08 10:19:08 +00:00
jakob
52fb94beac add user for net/flow-tools 2006-12-07 17:11:08 +00:00
espie
a9bf5ac052 ending up with an empty SUBPACKAGE is an explicit error. 2006-12-05 19:23:42 +00:00
espie
26075e9de6 move TMPDIR to pkgpath.mk to allow its use from both bsd.port.mk and
bsd.port.subdir.mk

Use absolute paths to build readmes files, based on READMES_TOP, which
can be (or not) PORTSDIR.

Generate category readmes in tmp directory as well.

minor clean-ups
2006-12-02 11:27:46 +00:00
espie
b219b82d19 move the generated readme stuff to a temporary directory, much cleaner that way. 2006-12-02 11:08:49 +00:00
espie
6f8c254c9e fix READMES again 2006-12-02 10:27:40 +00:00
espie
8fb5e71cef clean-up spacing 2006-12-02 00:10:24 +00:00
espie
1259dc14cb let license-check recurse correctly, thus we are checking ALL licences,
finally.

Remove work-around for undefined SUBPACKAGE stuff, since we're no longer
hardcoding it at the Makefile level, and thus the ERROR check works.
2006-12-01 17:56:38 +00:00
espie
5f5c120220 use the pkg-config in /usr/local preferably, until we get a decent
pkg-config in /usr/bin...
2006-12-01 17:37:15 +00:00
espie
197d308a2f remove the last redirectors, regenerate readmes on the fly... 2006-12-01 17:33:16 +00:00
espie
0e7d3606d9 make it possible to override a FULLPKGPATH if you REALLY know what you're
doing... DO NOT USE, unless you really know.
2006-12-01 11:34:04 +00:00
espie
dfa3a77ddb fix describe 2006-11-30 23:08:07 +00:00
espie
a8356d9ae2 un-recursive dump-vars, remove vars that don't make a lot of sense now. 2006-11-29 09:42:08 +00:00
espie
6d7703e824 move a large cpan mirror near the top, this one tends to have old stuff
the others forgot.
2006-11-28 23:43:54 +00:00
espie
c72f6e29fd hidden SUBPACKAGE in _register_plist: put it back into ${_PACKAGE_COOKIE${_S}} 2006-11-28 23:13:30 +00:00
espie
6d481f3f77 apply the same transformation to install/install-all 2006-11-28 20:40:55 +00:00
espie
cd97d2252c move a few things around inside one single MULTI_PACKAGES loop 2006-11-28 20:31:25 +00:00
espie
46484d5a90 fix a typo
mv some PKG_ARGS where they belong, and s/SUBPACKAGE/_S
2006-11-28 20:26:38 +00:00
espie
fe36feb551 remove a lot of redirectors, add a lot more loops, build stuff based
on internal variables mostly.
2006-11-28 20:20:25 +00:00
espie
fda8ee6238 let PKG_ARGS be SUBPACKAGE dependent, define them all 2006-11-28 19:59:15 +00:00