on 02/01/2014 12:47 AM Neil Bothwick wrote the following:

> 
> I think it would, I used to have a general gentoo-sources plus specific
> versions in world before it was possible to use sets to stop older
> kernels being depcleaned. If you have the above line plus an unversioned
> atom, I think you should get something close to what you want.
> 
> Of course, there's an easy way to tell if it would work...
> 
> 

Tried it and indeed it *worked*.

So, for the record, here are the two solutions, as suggested in this thread:

1) Proposed by eroen:

You can make it happen by adding your own virtual ebuilds in a local
overlay[1], say virtual/thanasis-sources, then adding that to world.

You can make one ebuild for each kernel-series you want, each in its
own slot, using the =cat/pkg-3.10* syntax for RDEPEND. Find attached a
(barely tested) suggestion for
virtual/thanasis-sources/thanasis-sources-3.10.ebuild .

After setting up an overlay and adding the ebuild, you can add it to
world with `emerge --select virtual/thanasis-sources:3.10`.

To add a different kernel series, you should only need to rename/copy
the ebuild in your overlay and add the new version/slot to world.

[1]: https://wiki.gentoo.org/wiki/Overlay/Local_overlay

2) Proposed by Khumba:

Put the following in your world file:
    <sys-kernel/gentoo-sources-3.11
    sys-kernel/gentoo-sources

*Thanks* to all for your help:)





# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

DESCRIPTION="Virtual for Linux kernel sources"
HOMEPAGE=""
SRC_URI=""

LICENSE=""
SLOT="${PV}"
KEYWORDS="~amd64"
IUSE=""

RDEPEND="=sys-kernel/gentoo-sources-${PV}*"

Reply via email to