1 |
Daniel Frey wrote: |
2 |
> On 6/19/19 11:27 AM, Grant Taylor wrote: |
3 |
>> On 6/19/19 11:37 AM, Vadim A. Misbakh-Soloviov wrote: |
4 |
>>> echo '>sys-kernel/gentoo-sources-4.15' >> |
5 |
>>> /etc/portage/package.mask/kernels |
6 |
>> |
7 |
>> Perfect! |
8 |
>> |
9 |
>> Thank you. :-) |
10 |
>> |
11 |
>> I did name the file /etc/portage/package.mask/gentoo-sources as I |
12 |
>> like to name the file after the package that it's meant to effect. |
13 |
>> |
14 |
>> The testing is even better than I had originally hoped. |
15 |
>> gentoo-sources-4.14.127.ebuild came in since I did my updates a few |
16 |
>> days ago. So now emerge is telling me there is a new version of |
17 |
>> gentoo-sources, that is within my specified parameters. :-) |
18 |
>> |
19 |
>> |
20 |
>> |
21 |
> |
22 |
> I was thinking about this for a bit, and thought that maybe adding the |
23 |
> slot to the package in /var/lib/portage/world would work. |
24 |
> |
25 |
> So, using `emerge --select` and `emerge --deselect` I set up my world |
26 |
> file this way: |
27 |
> |
28 |
> # grep -i gentoo-sources /var/lib/portage/world |
29 |
> sys-kernel/gentoo-sources:4.14.105-r1 |
30 |
> sys-kernel/gentoo-sources:4.14.114 |
31 |
> sys-kernel/gentoo-sources:4.14.83 |
32 |
> |
33 |
> I removed all other kernel packages manually so only those three are |
34 |
> installed. |
35 |
> |
36 |
> However, portage still wants to install the latest gentoo-sources, |
37 |
> even though the generic "sys-kernel/gentoo-sources" is absent from the |
38 |
> world file. |
39 |
> |
40 |
> I figured this would be a way to manually update the kernel without |
41 |
> having to manually add and remove masks. Darn. |
42 |
> |
43 |
> That's not how I'd expect portage to handle that situation (or maybe |
44 |
> it's just me?) Can a dev chime in? |
45 |
> |
46 |
> Dan |
47 |
> |
48 |
> |
49 |
|
50 |
|
51 |
I don't think my way will be any better but this is how I do it. I mask |
52 |
gentoo-sources completely until I want to update. When I want to |
53 |
update, I comment out the mask in the mask file and uncomment the entry |
54 |
in the keyword file. At that point I can emerge whatever version I want |
55 |
and then undo the changes when I've emerged it. |
56 |
|
57 |
The bad thing about this, sometimes I have to use exclude gentoo-sources |
58 |
from things such as --depclean. It's annoying but it's the only way I |
59 |
could come up with to do this. |
60 |
|
61 |
Honestly, I'm not sure there is a easy way to do this. No matter how it |
62 |
is done, it causes some other annoying issue to pop up. I was hoping |
63 |
someone had a really nifty idea on this which is why I'm also following |
64 |
this thread. My way might be a option but then again, you may not like |
65 |
it for the same reasons I don't. ;-) |
66 |
|
67 |
Dale |
68 |
|
69 |
:-) :-) |