Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: using package.provided
Date: Fri, 26 Feb 2016 16:52:42
Message-Id: 87k2lrh10a.fsf@reader.local.lan
In Reply to: [gentoo-user] Re: using package.provided by Nikos Chantziaras
1 First off, thanks to all posters for the excellent input
2
3 > Nikos Chantziaras <realnc@×××××.com> writes:
4
5 > On 25/02/16 05:55, Harry Putnam wrote:
6 >> I'd like to stay on kernel-4.1.6, rather than keep installing the
7 >> newest version at each upgrade.
8 >
9 > I'd instead recommend putting
10 >
11 > >=sys-kernel/gentoo-sources-4.2
12 >
13 > in package.mask to stay with 4.1 (it's an LTS kernel) and always get
14 > the patches for that one.
15
16 In /etc/portage/package-mask, using the line you suggest:
17
18 >=sys-kernel/gentoo-sources-4.2
19
20 Makes emerge want to install 4.1.18:
21
22 emerge -vp gentoo-sources
23 [...]
24 Calculating dependencies... done!
25 [ebuild NS ] sys-kernel/gentoo-sources-4.1.18:4.1.18::gentoo
26 [4.1.6:4.1.6::gentoo] USE="-build -experimental -kdbus -symlink" 575 KiB
27
28 Using `>=sys-kernel/gentoo-sources-4.1.6'
29 emerge wants to install 4.0.9:
30
31 [ebuild NS ] sys-kernel/gentoo-sources-4.0.9:4.0.9::gentoo
32 [...]
33
34 Using `>sys-kernel/gentoo-sources-4.1.6'
35 emerge want to install 4.0.9 as well
36
37 [ebuild NS ] sys-kernel/gentoo-sources-4.0.9:4.0.9::gentoo [...]
38
39 So apparently none of the suggestions causes emerge to just stay with 4.1.6
40
41 ------- ------- ---=--- ------- -------
42
43 However, after creating /etc/portage/profile and placing
44 package.provided with `sys-kernel/gentoo-sources-4.1.6' inside.
45 (NOTE:package.provided does not allow any <,>,= type signs)
46
47 root # emerge -vp gentoo-sources
48
49 These are the packages that would be merged, in order:
50
51 Calculating dependencies... done!
52
53 Total: 0 packages, Size of downloads: 0 KiB
54
55 WARNING: A requested package will not be merged because it is listed in
56 package.provided:
57
58 gentoo-sources pulled in by 'args'
59
60 This appears to do what I was after. Should I expect any `gotchas'?

Replies

Subject Author
[gentoo-user] Re: using package.provided Nikos Chantziaras <realnc@×××××.com>