Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2005 13:37:04 -0800
From:      "Michael C. Shultz" <ringworm01@gmail.com>
To:        Scot Hetzel <swhetzel@gmail.com>
Cc:        Craig Boston <craig@yekse.gank.org>, Jiawei Ye <leafy7382@gmail.com>, freebsd-ports@freebsd.org
Subject:   Re: Why does security/amavisd-new depend on db3?
Message-ID:  <200511151337.05264.ringworm01@gmail.com>
In-Reply-To: <790a9fff0511151340t461bcc64kcc58d0817af4795@mail.gmail.com>
References:  <c21e92e20511130557g4ad76176l85beb6ceee078886@mail.gmail.com> <200511151301.16549.ringworm01@gmail.com> <790a9fff0511151340t461bcc64kcc58d0817af4795@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 15 November 2005 13:40, Scot Hetzel wrote:
> > This would still be wrong:
> >
> > .if ${.CURDIR} == /usr/ports/databases/p5-BerkleyDB
> > WITH_BDB_VER?=42
> >  .endif
>
> No, it would be right because when the build for security/amavisd-new
> calls for the build of databases/p5-BerkleyDB, the WITH_BDB_VER
> variable is set in the environment for database/p5-BerkleyDB and cause
> the dependancy to be set on the correct version of Berkley DB port.
>
> > It is equivalent to:
> >
> > in pkgtools.conf:
> >  MAKE_ARGS = {
> >        'databases/p5-BerkeleyDB' => 'WITH_BDB_VER=42',
> >
> > in pm-020.conf
> > databases/p5-BerkeleyDB|WITH_BDB_VER=42|
>
> It's similar, but not equivalent because when the security/amavisd-new
> then goes to record it's dependancies on the databases/p5-BerkleyDB
> port.  Using portupgrade and portmanager, security/amavisd-new
> +CONTENT shows db3 as dependancy, were as the /etc/make.conf entry
> will show a +CONTENT dependacy on db42.
>
> > Maybe you mean to set it as a global
> > value ie. without the .if ${.CURDIR} == /usr/ports/databases/p5-BerkleyDB
> > wrapper?  If that were the case it would still have no effect on
> > security/amavisd-new where the incorrect dependency is being recorded,
> > see for yourself:
>
> The incorrect dependency is being reported from databases/p5-BerkleyDB
> to the security/amavisd-new port.  Which then records the incorrect
> dependancy in the +CONTENT file.  By using the WITH_BDB_VER as either
> a global variable or using '.if ${.CURDIR} ==
> /usr/ports/database/p5-BerkleyDB' in /etc/make.conf will fix the
> dependancy for security/amavisd-new.
>
> Each time make is called the /etc/make.conf file is re-evaluated.
> Since the security/amavisd-new port calls cd
> /usr/ports/database/p5-BerkleyDB ; make install (from bsd.port.mk),
> the /etc/make.conf file is re-evaluated, and WITH_BDB_VER is set.
>
> Scot

OK, I appoligize.  This is still wrong behavior on the part of the ports 
system because use of WITH_* switches from the make command line
are going to lead to the same exact problem that is occuring with portupgrade
and portmanager's conf files.

-Mike





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