Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Portage being silly with kernel sources
Date: Sun, 11 Oct 2020 17:57:54
Message-Id: 20201011185738.3ae68370@digimed.co.uk
In Reply to: [gentoo-user] Portage being silly with kernel sources by Daniel Frey
1 On Sun, 11 Oct 2020 09:23:29 -0700, Daniel Frey wrote:
2
3 > I have nvidia-drivers installed. It has a dependency to
4 > virtual/linux-sources.
5 >
6 > The problem is it's always trying to pull in unstable packages when I
7 > have two slotted kernels in world:
8 >
9 > sys-kernel/gentoo-sources:5.4.48
10 > sys-kernel/gentoo-sources:5.4.66
11 >
12 > I tried masking kernels >5.5 but now it's trying to pull in unstable
13 > kernel 5.4.70.
14
15 Are you running ~arch globally? If so, the simple solution is to turn it
16 off for kernel-sources.
17
18 > I do not run unstable kernels, and have two stable kernels installed.
19 >
20 > Why is portage insistent on pulling in sys-kernel/gentoo-sources
21 > (non-slotted) when two slotted entries already exist?
22
23 Because it will always try to install the latest version that fits all
24 your requirements.
25
26 > I do not want to install unstable kernel sources as I don't use them
27 > and am trying to spare the thousands of unnecessary writes on my SSD.
28 > Whenever I update I check to see if there's a new stable kernel
29 > available manually and update to it if needed.
30
31 I too stick to stable sources, partly for the reason you give, partly to
32 avoid excessive reboots and partly because some systems use ZFS.
33
34 % cat /etc/portage/package.accept_keywords/kernel
35 sys-kernel/gentoo-sources -~amd64
36 sys-kernel/linux-headers -~amd64
37
38 Works for me.
39
40
41 --
42 Neil Bothwick
43
44 (A)bort, (R)etry, (P)retend this never happened...

Replies

Subject Author
Re: [gentoo-user] Portage being silly with kernel sources Rich Freeman <rich0@g.o>