Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 May 2006 16:37:01 +0800
From:      "Jiawei Ye" <leafy7382@gmail.com>
To:        "Matthew Seaman" <m.seaman@infracaninophile.co.uk>
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>, freebsd-ports@freebsd.org
Subject:   Re: dependency inheritance
Message-ID:  <c21e92e20605150137l578f18e0ub79cef8b1ecf673d@mail.gmail.com>
In-Reply-To: <44683760.9010908@infracaninophile.co.uk>
References:  <44682A60.1090701@gmx.de> <44683760.9010908@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/15/06, Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:
> The dependency information produced by pkg_info is derived from the +CONT=
ENTS
> and the +REQUIRED_BY files in the pkg directory (/var/db/pkg/whatever).  =
Some of
> that -- mostly the stuff in +CONTENTS -- comes out of the package tarball=
 or the
> port installation process, other parts of it come out of tools like portu=
pgrade.
--snip--
>
>         Cheers,
>
>         Matthew
I think the situation contradicts what you state above:

For my installed p5-BerkeleyDB, I have

root@chihiro:/var/db/pkg# more p5-BerkeleyDB-0.27_3/+CONTENTS
@comment PKG_FORMAT_REVISION:1.1
@name p5-BerkeleyDB-0.27_3
@comment ORIGIN:databases/p5-BerkeleyDB
@cwd /usr/local
@pkgdep perl-threaded-5.8.8
@comment DEPORIGIN:lang/perl5.8
@pkgdep db44-4.4.20.2
@comment DEPORIGIN:databases/db44
lib/perl5/5.8.8/man/man3/BerkeleyDB.3.gz
@comment MD5:8c6c620769a90f45373fc22bd62ff01f
@unexec rm -f %D/lib/perl5/5.8.8/man/cat3/BerkeleyDB.3
%D/lib/perl5/5.8.8/man/cat3/BerkeleyDB.3.gz
lib/perl5/site_perl/5.8.8/mach/BerkeleyDB.pm
@comment MD5:025ea209a1b75008a513f59cb09cbca0
lib/perl5/site_perl/5.8.8/mach/BerkeleyDB.pod
@comment MD5:1469940929a9ce376afbc9c6817f91c2
lib/perl5/site_perl/5.8.8/mach/BerkeleyDB/Btree.pm
@comment MD5:b048c704c2cbe8b3be1f16df1939c927
lib/perl5/site_perl/5.8.8/mach/BerkeleyDB/Hash.pm
@comment MD5:ff9a029e17f097fc2cb26bad43408f54
lib/perl5/site_perl/5.8.8/mach/auto/BerkeleyDB/.packlist
@comment MD5:a7810c200f23e7e80155430e0583462a
lib/perl5/site_perl/5.8.8/mach/auto/BerkeleyDB/BerkeleyDB.bs
@comment MD5:d41d8cd98f00b204e9800998ecf8427e
lib/perl5/site_perl/5.8.8/mach/auto/BerkeleyDB/BerkeleyDB.so


Where db44 is the correct dependancy, but

leafy@chihiro:/usr/ports/Mk$ pkg_info -r amavisd-new\*
Information for amavisd-new-2.4.1,1:

Depends on:
Dependency: zoo-2.10.1_2
Dependency: unrar-3.54,3
Dependency: unarj-2.65_1
Dependency: perl-threaded-5.8.8
Dependency: libiconv-1.9.2_2
Dependency: rpm2cpio-1.2_2
Dependency: p5-MIME-Base64-3.07
Dependency: p5-Unix-Syslog-0.100
Dependency: p5-URI-1.35
Dependency: p5-Time-HiRes-1.87,1
Dependency: p5-Storable-2.15
Dependency: p5-Scalar-List-Utils-1.18,1
Dependency: p5-PathTools-3.18
Dependency: p5-Parse-Syslog-1.09
Dependency: p5-IO-Multiplex-1.08
Dependency: p5-Net-SSLeay-1.30_1
Dependency: p5-Net-IP-1.24
Dependency: p5-Digest-SHA1-2.11
Dependency: p5-Net-CIDR-Lite-0.20
Dependency: p5-Mail-Tools-1.74
Dependency: gettext-0.14.5_2
Dependency: p5-Convert-BinHex-1.119
Dependency: p5-Digest-1.15
Dependency: p5-IO-stringy-2.110
Dependency: p5-Compress-Zlib-1.41
Dependency: p5-IO-String-1.08
Dependency: p5-IO-Socket-SSL-0.97
Dependency: p5-Net-Server-0.93_1
Dependency: p5-HTML-Tagset-3.10
Dependency: p5-HTML-Parser-3.54
Dependency: p5-File-Temp-0.16_4
Dependency: p5-Digest-HMAC-1.01
Dependency: p5-Digest-MD5-2.36
Dependency: p5-Net-DNS-0.57
Dependency: p5-libwww-5.805
Dependency: p5-Date-Manip-5.44
Dependency: p5-DBI-1.50
Dependency: postgresql-client-8.1.3
Dependency: p5-Convert-UUlib-1.06,1
Dependency: p5-MIME-Tools-5.420,2
Dependency: p5-Convert-TNEF-0.17
Dependency: p5-IO-Zlib-1.04_1
Dependency: p5-BerkeleyDB-0.27_3
Dependency: p5-Archive-Zip-1.16
Dependency: p5-Archive-Tar-1.29
Dependency: lzo2-2.02_1
Dependency: lzop-1.02.r1
Dependency: gnupg-1.4.3
Dependency: lha-1.14i_6
Dependency: p5-DBD-Pg-1.49
Dependency: p5-Mail-SpamAssassin-3.1.1_4
Dependency: freeze-2.5_1
Dependency: db41-4.1.25_3
Dependency: cabextract-1.1
Dependency: arc-5.21n

db41 was pulled in because the default version used by p5-BerkeleyDB
is 4.1 (via USE_BDB), instead of the installed db44 in my
/var/db/pkg/p5-BerkeleyDB/+CONTENTS.

Obviously our base tools ignore what's in the recorded dependancy and
went the Makefile way, thus the "pkgdb -F" trick required everytime
something gets upgraded or reinstalled.

Jiawei Ye

--=20
"Without the userland, the kernel is useless."
               --inspired by The Tao of Programming



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c21e92e20605150137l578f18e0ub79cef8b1ecf673d>