Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2005 22:59:44 -0800
From:      "Michael C. Shultz" <ringworm01@gmail.com>
To:        Craig Boston <craig@yekse.gank.org>
Cc:        Jiawei Ye <leafy7382@gmail.com>, freebsd-ports@freebsd.org
Subject:   Re: Why does security/amavisd-new depend on db3?
Message-ID:  <200511142259.45090.ringworm01@gmail.com>
In-Reply-To: <20051115065211.GB35001@nowhere>
References:  <c21e92e20511130557g4ad76176l85beb6ceee078886@mail.gmail.com> <c21e92e20511142201o70752d66p20b4ef233612d6e@mail.gmail.com> <20051115065211.GB35001@nowhere>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 14 November 2005 22:52, Craig Boston wrote:
> On Tue, Nov 15, 2005 at 02:01:26PM +0800, Jiawei Ye wrote:
> > in pkgtools.conf:
> >   MAKE_ARGS = {
> >         'databases/p5-BerkeleyDB' => 'WITH_BDB_VER=42',
> >
> > in pm-020.conf
> > databases/p5-BerkeleyDB|WITH_BDB_VER=42|
>
> Does it work if you also set WITH_BDB_VER for security/amavisd-new?
>
> I suspect that the dependencies being registered at install time for
> amavisd-new are being calculated based on the environment at that time,
> by recursing the ports tree rather than looking at installed packages.
>
> A quick glance looks like:
>
> cd /usr/ports/security/amavisd-new && make package-depends-list
>
> shows bdb3 normally, and changes to bdb42 when WITH_BDB_VER=42 is set.
> IIRC portupgrade and portmanager both install ports one at a time, so if
> the list is created in this way you may need to make sure the options
> are consistent for all the ones affected by them...
>
> If that works, it's not necessarily portmanager's fault but rather a bug
> (feature?) in the ports system.
>
> Craig

The WITH_BDB_VER=42 only needs to be applied to databases/p5-BerkeleyDB,

when "portmanager security/amavisd-new" is run ports will build in this order:

ports/databases/db42			before
databases/p5-BerkeleyDB		before
security/amavisd-new 

I'm sure there is a simple explanaition for the problem if Jiawei would only 
post something demonstrating how things are going wrong for him instead of 
merely describing what he thinks is happening.

-Mike





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