Commit Graph

1321 Commits

Author SHA1 Message Date
bernd
67538a1775 - only compute signatures if the package name doesn't change
- some error checking
- print differences between package signatures

ok espie@
2005-10-10 22:08:27 +00:00
espie
c4ced942c9 protect against cases where @ARGV == 0, which can happen very seldom... 2005-10-10 19:43:33 +00:00
espie
8089498934 don't bother building default package, just ask print-plist-contents
for its contents.

avoid dirname in print-package-signature, use sh built-ins.
2005-10-10 19:20:00 +00:00
espie
031729bf37 make sure to get ALL libs, that is, several lines in case we need pkg_info
to get the right libraries.
2005-10-10 19:04:06 +00:00
bernd
3a943e5e5d output cosmetics
ok espie@
2005-10-10 16:07:33 +00:00
espie
d939b31653 need an extra indirection: the complete wantlib cookie can easily grow
over 256 characters, so we create an extra file for each wantlib, and
depend on it. That way the full _DEPlibs_COOKIE is regenerated (and retested)
each time WANTLIB changes.
2005-10-10 00:29:38 +00:00
espie
9fa7c10c20 remove intervening comma, so that stuff works. 2005-10-09 23:22:41 +00:00
espie
9d61eb771b better semantics for library checking: just check the pkgspec for recursive
building, and then do one big check of all specs in LIB_DEPENDS and
wantlib. This should be faster and more accurate.
2005-10-09 13:31:50 +00:00
espie
01c2d27f64 let resolve-lib return a useful error code 2005-10-09 13:27:39 +00:00
espie
43ed8edb9c tweak the way library dependencies are resolved to speed them up.
Now, resolve-lib can take a big list of libraries with full paths,
and it can solve a big list of spec at once.
Basically, we move most of the parsing of spec paths into resolve-lib.

Since print-package-signature does build a full list of libs, let's solve
it all at once, instead of invoking a costly perl script repeatedly.

Add some caching possibilities for out-of-date. Specifically:
- store libraries for each package under the directory _PORT_LIBS_CACHE
- use the dependency cache _DEPENDS_FILE to avoid recreating dependency
chains, add a new file _DEPENDS_CACHE that will accumulate all dependencies,
and extract these with a simple script extract-dependencies.

Use echo to build libraries lists instead of ls, that's a bit simpler...

Some more clean-up will happen: it's probably simpler to parse libspecs
at once, extract the libraries needed and go fetch the corresponding libraries
just once.
2005-10-09 12:01:22 +00:00
pvalchev
046e52975e more 2005-10-08 07:22:25 +00:00
espie
21c89e0e8f overeager code cloning.
noticed by matthieu@/mbalmer@
2005-10-07 21:08:16 +00:00
alek
d87c252496 Add _sane user and group 2005-10-03 21:23:28 +00:00
espie
6ed42bc212 some clean-up + progress meter.
okay bernd@
2005-10-01 16:36:03 +00:00
bernd
f4a024d5a8 Rewrite in perl. It compares package signatures instead of package names.
This needs a lot of testing, so please test!

Suggestions and ideas from sturm@ and espie@.

ok espie@
2005-10-01 13:17:54 +00:00
espie
ef74c2c91e need to list static libraries as well.
problem reported by bernd@
2005-09-25 09:43:09 +00:00
espie
6d9e12644b tweak _print-package-args a bit.
Add internal NODEPS to turn off computing dependencies.

Write code similar to _print-package-args that is strictly ports based,
and hence really walks the wantlibs, and needs the pkg_create stuff
to get at the real ports contents.

Recode print-package-signature to refer to the ports tree contents
exclusively (pkg_info -S for the package).

Thx bernd@ for trying that out.

This should make for a slow, but accurate, out-of-date printer.
2005-09-24 19:46:56 +00:00
espie
202146d6ab add print-package-signature
suggested by bernd@
2005-09-23 08:26:21 +00:00
pvalchev
48a568fc60 change to cope with the new comment/descr package format; ok espie mjc 2005-09-21 04:52:22 +00:00
pvalchev
6befda6c28 some 3.8 updates 2005-09-20 17:59:40 +00:00
espie
715995a25c use new interface to PackageLocator 2005-09-19 21:12:27 +00:00
espie
ebfaf60b88 simplify locks 2005-09-18 12:20:00 +00:00
espie
08e7b4c048 oops 2005-09-17 14:47:40 +00:00
espie
0031945c6e Fix a buglet in bsd.port.mk where the PSEUDO_FLAVORS get encoded into
the FULLPKGPATH, thus providing changes to packing-lists which shouldn't
happen, and making update more difficult.

Accordingly, bump all pkgnames with PSEUDO_FLAVORS, and provide an
update @pkgpath for the bug for most of them (left out the ones with 3
or 4 pseudo flavors for space constraints...)
2005-09-16 09:51:25 +00:00
espie
388edd407a use new interface to Locator 2005-09-13 20:48:41 +00:00
naddy
07871fe865 don't hardcode /usr/ports, use PORTSDIR; ok espie@ 2005-09-10 18:07:47 +00:00
espie
6dc3872b96 readable error when !-d and a dependent package is needed 2005-09-10 09:48:54 +00:00
espie
1e9f0a5a06 kill mystuff 2005-09-09 08:20:37 +00:00
pvalchev
7349478a89 sync 2005-09-08 01:03:00 +00:00
espie
00ba79a06d copy new annotations over. 2005-09-07 10:40:00 +00:00
pedro
802e685b58 Add _xavante, okay jolan@ 2005-09-06 16:49:20 +00:00
pvalchev
da0e5b92cf sync 2005-09-05 17:18:32 +00:00
espie
026d4464af use PkgSpec to work on plists (since they have no def value...)
rearrange output of common-dirs to be more usable.
2005-09-05 14:39:57 +00:00
espie
9daab219eb some perl stuff installs manpages as ../man3p/manpage.3 2005-09-05 13:06:01 +00:00
espie
9fc55bc3e6 clean-up register-plist logic, so that package is uniformously deleted
if a problem occurs.
2005-09-05 12:43:07 +00:00
espie
c55945a28e merge code for find-all-conflicts and check-common-dirs, since there is
a lot of shared logic in there.
2005-09-05 10:17:05 +00:00
espie
65b60545ef protect against $OpenBSD$ expansion problems.
Allow the first argument to be a path:, so that we can archive
the packing-lists in a less haphazard way.
2005-09-05 10:13:11 +00:00
marcm
a51e4cbcac add _gpsd 2005-09-05 00:36:49 +00:00
espie
368bd09c02 cache ways more information, so that it runs at a reasonable pace for
3000 packages.
output stuff in a more readable way.

allows looking only in a PLIST_DB directory.
2005-09-04 22:34:23 +00:00
espie
f7b78407d9 - new read-only variable, PKGNAMES.
- plist repository under PLIST_DB (optional).
- print-package-signatures shows what's used for signatures.
- make fetch shows full url you can copy/paste, simpler to look for typos
that way.
2005-09-04 22:32:37 +00:00
espie
a27436f413 new script, to register packing-list in a nice way. 2005-09-04 22:30:39 +00:00
pvalchev
d7909ac978 sync 2005-09-04 18:36:53 +00:00
pvalchev
3059521cb0 append pkglocatedb to plists; ok deraadt 2005-09-02 01:11:02 +00:00
pvalchev
23b2af5c44 sync 2005-09-01 07:53:38 +00:00
pvalchev
b175ea928c sync 2005-09-01 07:30:48 +00:00
pvalchev
def7406ca5 oops, apparently old python still 2005-08-24 21:42:19 +00:00
pvalchev
0a95e79054 tweak 2005-08-24 21:40:12 +00:00
pvalchev
c2f009f3bf python-2.4 2005-08-24 21:27:03 +00:00
pvalchev
d3c422a122 sync 2005-08-24 21:24:45 +00:00
pvalchev
4f74a44df2 gphoto2 works; robert 2005-08-16 02:04:13 +00:00