Date: Fri, 23 Mar 2007 11:36:54 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: freebsd-emulation@freebsd.org, bsam@ipt.ru Subject: Re: [upcomming linux_base-fc6] conditional install Message-ID: <20070323113654.8eiudpiv9sco80g0@webmail.leidinger.net> In-Reply-To: <58206554@bsam.ru> References: <58206554@bsam.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Boris Samorodov <bsam@ipt.ru> (from Fri, 23 Mar 2007 02:36:37 +0300)= : > Hi! > > > The FC6 port doesn't install with linux.osrelease=3D2.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!=3D ${SYSCTL} -n compat.linux.osrelease > > .if ${LINUX_OSRELEASE} !=3D "2.6.16" > IGNORE=3D 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} =3D=3D "2.4.2" IGNORE .endif This way the current default is to ignore and anyone who plays around =20 can do so. It also allows us to use any 2.6.x number we want (in case =20 we think another one is more appropriate) without the need to change =20 the port. WE just want to protect the innocent, everyone else is =20 allowed to shot into their own foot. Bye, Alexander. --=20 my NOSE is NUMB! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070323113654.8eiudpiv9sco80g0>