On Wednesday 13 April 2005 22:06, Mike Frysinger wrote:
> On Wednesday 13 April 2005 06:44 am, Martin MOKREJŠ wrote:
> > I'm not sure how to block the ebuild when user is running 2.6 kernel
> > (uname(1)?), of when the /usr/src/linux points to 2.6 kernel ... or just
> > to check whether gentoo-sources or vanila-sources of 2.4 version are
> > installed?
>
> put this into pkg_setup():
> [[ ${KV:0:3} == "2.6" ]] && die "Sorry, this package doesnt support 2.6
> kernels"
Better to use the kernel groups eclass of the month for this one. The defining
of $KV will likely be removed from portage down the track.
Regards,
Jason Stubbs
--
[email protected] mailing list