-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In working with my packages, I've written a little script that uses otool -L and dpkg -S to figure out what my package needs to depend on.
I don't know my around fink (the program) well enough to add this myself, but I thought it might be helpful if there were something that did a trick like this one to verify that a .info depends on all the libraries it needs.


Anyway, here's the little script I've been using:
- ----
#!/usr/bin/perl

@files = `find . -type f -perm +111`; #run from the root-* directory of the package.
@libs = `otool -L @files`;
%depends;


for $lib (@libs) {
  if ( $lib =~ m:(\t/sw/lib/.*\.dylib): ){
    $tmp=`dpkg -S $1`;
    $tmp =~/(.*):/;
    $depends{$1}=1;
  }
}

for $key (keys %depends) { print "$key\n"; }
- ----

regards,
crh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFA3ZUOHttEfMmUResRAtxYAKCDbYDpiy6p8fwwHKvSAO07tFF19ACgjiAR
DVM9LJ7olrMcx1rLMM2O/gE=
=Pori
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to