proper way to handle ports dependencies ?

Kris Kennaway kris at obsecurity.org
Fri Feb 2 22:24:57 UTC 2007


On Fri, Feb 02, 2007 at 07:45:28PM +0100, Pav Lucistnik wrote:
> Luigi Rizzo p??e v p? 02. 02. 2007 v 09:27 -0800:
> > I have some ports (linux-gspca-kmod, linux-ov511-kmod, more in the
> > future) which depend on linux-kmod-devel which in turn only works
> > on i386 and 6.2 or above.
> > 
> > Is it enough to put ONLY_FOR_ARCHS and .if ${OSVERSION} < ...
> > just in the parent (linux-kmod-devel), or should i
> > put it in all children too ?
> 
> Technically it's enough to put it in the parent port, but it's a service
> to the users to put it everywhere, so the process bails out earlier.

Actually I prefer only doing it in the parent.  Otherwise as these
things become more portable over time (e.g. when amd64 came along and
gained i386 linux compat), there may be many ports that are now
buildable but are forgotten until someone hunts down each and every
one of them and makes lots of fixup commits.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070202/b4792460/attachment.pgp


More information about the freebsd-ports mailing list