[upcomming linux_base-fc6] conditional install

Boris Samorodov bsam at ipt.ru
Fri Mar 23 12:24:25 UTC 2007


On Fri, 23 Mar 2007 11:36:54 +0100 Alexander Leidinger wrote:
> Quoting Boris Samorodov <bsam at ipt.ru> (from Fri, 23 Mar 2007 02:36:37 +0300):

> > The FC6 port doesn't install with linux.osrelease=2.4.2. Assuming that
> > FreeBSD supports only two values (2.6.16 is the second one) I use the
> > following line at the Makefile:
> > -----
> > .include <bsd.port.pre.mk>
> >
> > LINUX_OSRELEASE!=       ${SYSCTL} -n compat.linux.osrelease
> >
> > .if ${LINUX_OSRELEASE} != "2.6.16"
> > IGNORE= supported only for compat.linux.osrelease: 2.6.16
> > .endif
> > -----
> >
> > Something similar should be written to pkg-install script for
> > packages sake. The Porters Handbook says it's not good to use sysctl.
> > But such approach should be used for all upcomming fc6 ports...
> >
> > What do you think? Thanks.

> I suggest to do it the other way around:
>  .if ${LINUX_OSRELEASE} == "2.4.2"
>  IGNORE
>  .endif

> This way the current default is to ignore and anyone who plays around
> can do so. It also allows us to use any 2.6.x number we want (in case
> we think another one is more appropriate) without the need to change
> the port. WE just want to protect the innocent, everyone else is
> allowed to shot into their own foot.

Well, I tend to argee with you. ;-)
Thanks for the feedback.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-emulation mailing list