Commit Graph

181 Commits

Author SHA1 Message Date
espie
3e81f47fb3 synch with pkg_add src/ changes 2007-05-23 10:34:15 +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
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
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
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
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
44415f04fb abort early if packing-list was not read correctly. 2007-04-08 12:36:04 +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
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
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
sturm
1cc933bba1 check build depends (currently duplicates most of check_run_deps())
ok bernd
2007-01-16 18:15:53 +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
espie
1ef1f2940b let check-newlib-depends use the new targets 2006-12-18 12:53:09 +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
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
ea00df0a25 allows grabbing the packing-list from the ports tree.
suggestion from bernd
2006-11-11 13:11:45 +00:00
espie
321aced247 rename function for future change.
avoid re-reading the same plist for getting the same info (which doesn't
work anyways, so this avoids looking up a package for nothing).
let depwalk stash the pkgpath away for future use.
2006-11-11 12:44:26 +00:00
pvalchev
ea93d319d1 4.0 2006-10-26 00:41:45 +00:00
pvalchev
db68c59fd2 update list of architectures 2006-10-26 00:40:46 +00:00
espie
3291960295 oops, fix. 2006-10-23 11:19:35 +00:00
espie
872bae539e -f: display a full listing of which binary uses what library. Useful for
figuring out dependencies in a fine way for creating multi packages.
2006-10-23 10:54:45 +00:00
bernd
5e5fdfe2a4 Add libs which are reachable through dependencies to the cut&paste WANTLIB
output as well.

spotted by alek@, ok espie@
2006-10-20 18:10:25 +00:00
espie
7aa333e1ca output a simple set of WANTLIB lines you can cut&paste, by popular demand... 2006-10-20 15:09:24 +00:00
espie
992a0a28a0 sort information instead of putting it out in an haphazard way. 2006-10-20 14:40:29 +00:00
bernd
1db3e02224 Teach register-plist how to deal with the case where the recorded
plist in PLIST_DB misses the last line.

found & debugged by sturm@
ok sturm@, espie@
2006-10-19 00:15:46 +00:00
espie
55c0fd4b29 moved to ports/databases/sqlports 2006-10-15 09:42:17 +00:00
espie
dff6979a7a oops, forgot to commit FULLPKGNAME.
From Serge Basterot
2006-10-14 09:03:23 +00:00
espie
ccb088f096 let register-plist show stuff in a format ready for copy-paste.
Suggestion from alek@, took it one step further...
2006-10-02 18:48:01 +00:00
espie
6372292fc7 split things exactly like make does, avoid a few spurious error messages
from sqlite.
2006-09-19 09:57:58 +00:00
espie
b160c64929 tweak for PKGPATH, name it correctly as FULLPKGPATH, and add a subsidiary
table to map FULLPKGPATH to PKGPATH, e.g.,

SELECT DISTINCT PKGPATH, VALUE FROM Wantlib,Paths WHERE Wantlib.FULLPKGPATH=Paths.FULLPKGPATH ORDER BY PKGPATH
2006-08-01 16:22:22 +00:00
espie
fe3a0bfbff handle new lib specs 2006-08-01 11:01:15 +00:00
espie
46c41e9259 guards preventing out-of-bound access 2006-07-17 16:51:53 +00:00
espie
7d211a2885 tweak it a bit to ignore changes in number of generated info files. 2006-07-12 08:11:28 +00:00
espie
893cc09231 CONFIGURE_ARGS holds values that look like --with-cxxflags="-O2 -pipe"
deal with split/quotes correctly.
2006-07-10 15:19:52 +00:00
espie
80448819a5 Handle CONFIGURE_ARGS as a list, e.g.,
SELECT DISTINCT VALUE FROM ConfigureArgs
makes sense.
2006-07-10 14:34:01 +00:00
espie
64feab316c Really process SHARED_LIBS 2006-07-10 11:44:30 +00:00
espie
15cecfd126 +CONFIGURE_ARGS 2006-07-10 10:52:08 +00:00
espie
413a0547de add AUTOCONF/AUTOMAKE_VERSION 2006-07-10 10:35:50 +00:00
bernd
34a129ce4f Fix typos and do some cleanup.
'go ahead' espie@
2006-07-10 08:01:08 +00:00
espie
92759b023b avoid committing empty entries in space separated lists. 2006-07-09 20:59:57 +00:00
espie
3b1cddbff9 do not commit empty libspecs.
keep rowid around, since the key does not change for every iteration.
2006-07-09 20:56:48 +00:00
ckuethe
857210df82 Fix comment describing usage.
ok espie
2006-07-09 17:39:34 +00:00
espie
8dd6a28c5f also dump SUPDISTFILES
do not store empty values which are always defined, but can be empty.
2006-07-09 11:23:50 +00:00
espie
1aecbb09e3 Example script to convert values from the ports tree into an sqlite database.
Discussed with robi/bernd/steven.
2006-07-09 11:00:53 +00:00
espie
c5101965f7 remove erroneous optimization 2006-03-04 13:02:04 +00:00
espie
5d80851387 cache even more stuff.
avoid half the computation in conflicts.

allows to specify packing-lists directly.
2006-02-12 16:33:35 +00:00
espie
fd27df373d oops, avoid IO::Scalar, which is a local module.
perl 5.8.0 does scalars directly.
2006-02-09 12:03:55 +00:00
espie
ab8eafb0a7 deal transparently with changing CVS tags or mystuff addition/removal. 2006-02-09 11:39:02 +00:00
espie
1a551c8008 use a much smarter comparator: check each element independently.
This finally allows us to transparently update old registered plists
for new elements.

For instance, let's store md5 for constant elements, like DESC, DISPLAY, etc.
2006-02-09 10:49:13 +00:00
espie
7c0d5b76c2 don't bother checking symlinks, they point at a bogus location anyways. 2005-12-30 14:09:47 +00:00
espie
f755566506 be more specific about conflict handling: conflicts can be registered at
any level in the dependency tree, but we shouldn't mark as conflicting packages
that do depend on each other or that have common dependencies.

Issue noticed by alek@ on plone vs. zope.
2005-12-12 13:37: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
388edd407a use new interface to Locator 2005-09-13 20:48:41 +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
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
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
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
a27436f413 new script, to register packing-list in a nice way. 2005-09-04 22:30:39 +00:00
pvalchev
3059521cb0 append pkglocatedb to plists; ok deraadt 2005-09-02 01:11:02 +00:00
espie
dd7e097b7c remove duplicates, in case we're scanning the same package several times.
okay pvalchev@
2005-08-14 11:57:17 +00:00
pvalchev
70cd8f0b74 sort list of pkgs properly; ok and tweak espie 2005-05-17 22:08:13 +00:00
pvalchev
d237bab01d ignore "pkglocatedb.gz" in the listing as well 2005-05-17 16:17:50 +00:00
pvalchev
58a2b77280 - print pathname of file in case of error
- fix up comment
2005-05-17 16:17:00 +00:00
pvalchev
1d1a81e90d missed mips64, also update osrev=3.7 2005-05-13 17:35:19 +00:00
pvalchev
251ff517f0 update list of all arches 2005-05-13 17:34:19 +00:00
espie
23f2ba46c9 don't strip the version number from wantlib in reporting issues.
will help people figure out why an incorrect library version is enough
to get lib-depends-check to holler.
2005-03-26 11:52:58 +00:00
espie
1621329450 trace dependencies. 2005-03-07 11:15:33 +00:00
espie
ebf45d12c9 let check-newlib-depends diagnose simple missing LIB_DEPENDS.
(will diagnose complicated WANTLIB by walking the dependency path
and checking that the library is indeed reachable soon).
2005-03-06 12:05:11 +00:00
espie
7394586952 start looking closer at library origin: report system libs differently.
(dependency walk and caching not finished yet).
2005-03-05 11:36:26 +00:00
espie
60aaac2918 libs found inside package itself can be marked as used directly.
Reporting these as `Extra' is obviously a bug...
2005-03-02 20:45:37 +00:00
espie
4e8bcfc35e oops, Wantlib needs special treatment, removes bogus warnings. 2005-02-26 13:21:58 +00:00
espie
19e4c12467 support a.out by calling ldd with a format that passes as objdump output. 2005-01-31 10:09:42 +00:00
espie
ce81b410e6 do not look at simple modules. 2005-01-31 09:51:32 +00:00
espie
bd19cd4c90 kill very old stuff 2004-12-22 14:09:37 +00:00
espie
059ae7b0b6 make sure libraries contained in a package are not reported as missing... 2004-12-11 14:35:05 +00:00
espie
13d53957be minimal wantlib checker. 2004-12-11 14:27:57 +00:00
espie
f4978ac9af synch with changes 2004-11-13 11:49:48 +00:00
espie
5dc2fdab3a tell all big analyzers they can forget about the packing-list. 2004-11-11 15:38:02 +00:00
espie
b71495c6f2 use base classes more 2004-10-05 20:40:11 +00:00
pvalchev
def59b4c36 update list of arches for 3.6 2004-09-15 18:57:16 +00:00