Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2007 15:12:19 +0100
From:      Paul Schenkeveld <fb-ports@psconsult.nl>
To:        freebsd-ports@freebsd.org
Subject:   Re: DEPENDS -- is it time to remove it?
Message-ID:  <20071211141219.GB76594@psconsult.nl>
In-Reply-To: <790a9fff0712110535w361308bu3e93de636d0e048e@mail.gmail.com>
References:  <459D08CA.7060104@infracaninophile.co.uk> <20070105173738.2f4d86c4@gumby.homeunix.com> <cb5206420701050952k2a6943bfy7b16e4a2c4d9673a@mail.gmail.com> <20070105202810.010d4bea@gumby.homeunix.com> <20071211103330.GA69937@psconsult.nl> <790a9fff0712110535w361308bu3e93de636d0e048e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 11, 2007 at 07:35:16AM -0600, Scot Hetzel wrote:
> On 12/11/07, Paul Schenkeveld <fb-ports@psconsult.nl> wrote:
> > So now I have a need for a metaport to depend on another metaport.
> > Without DEPENDS, how do I accomplish that.  Using RUN_DEPENDS with
> > ${NONEXISTENT} seems not appropriate here, the Porters Handbook says
> > that this should only be used to pull in source, not to install another
> > metaport (unless it is already installed) and the effect of using
> > something like RUN_DEPENDS=${NONEXISTENT}:${PORTSDIR}/lang/php5-extensions
> > causes make install to try installing php5-extensions even when this port
> > is already installed.
> >
> > The two metaport I need to depend on are php5-extensions and
> > xorg-drivers and I really don't want to copy the OPTIONS processing of
> > these ports and maintain that in the future.
> >
> 
> For xorg-drivers you simply use:
> 
> RUN_DEPENDS= ${LOCALBASE}/libdata/xorg/drivers:${PORTSDIR}/x11-drivers/xorg-drivers
> 
> to get this to work for php5-extensions, you would need to patch the
> Makefile with:
> 
> PLIST_FILES= libdata/php5/extensions
> PLIST_DIR= libdata/php5
> 
> do-install:
>                 ${MKDIR} ${PREFIX}/libdata/php5
>                 ${TOUCH} ${PREFIX}/libdata/php5/extensions
> 
> Then you could use:
> 
> RUN_DEPENDS= ${LOCALBASE}/libdata/php5/extensions:${PORTSDIR}/lang/php5-extensions

Thanks.

I was afraid it would turn out this way but this would make my port
non-portable to my customers unless I patch all their php5-extensions
Makefiles and make sure they won't get overwritten by a a future cvs
checkout.

Or try to ask the php5-extensions maintainer to add a dummy file or
dir to this meta-port for other meta-ports to depend on.

Anyway, it's a pity that the old DEPENDS functionality of depending on
a port instead of something installed by the port has gone.

Regards,

Paul Schenkeveld



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