1 |
On Saturday, 21 March 2020 02:18:47 GMT Jeffrey Walton wrote: |
2 |
Hi Jeff, |
3 |
|
4 |
> On Fri, Mar 20, 2020 at 10:16 PM John Covici <covici@××××××××××.com> wrote: |
5 |
> > On Fri, 20 Mar 2020 21:16:10 -0400, |
6 |
> > |
7 |
> > Jeffrey Walton wrote: |
8 |
> > > Hi Everyone, |
9 |
> > > |
10 |
> > > I'm having trouble installing Gentoo in a Virtual Box VM for testing. |
11 |
> > > It is a x86_64 guest. I selected a hardened profile to test PaX, which |
12 |
> > > means I selected 18 in 'eselect profile'. |
13 |
> > > |
14 |
> > > I'm at "Configuring the Linux kernel" in the Handbook |
15 |
> > > (https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Alterna |
16 |
> > > tive:_Using_genkernel). The part "emerge --ask |
17 |
> > > sys-kernel/gentoo-sources" seems OK and does not report errors. The |
18 |
> > > genkernel part fails. |
19 |
> > > |
20 |
> > > The specific error is: |
21 |
> > > |
22 |
> > > $ LICENSE_ACCEPT="*" emerge --ask --autounmask-write |
23 |
> > > sys-kernel/genkernel 2>&1 | tee kernel.txt |
24 |
> > > $ cat kernel.txt |
25 |
> > > |
26 |
> > > * IMPORTANT: 6 config files in '/etc/portage' need updating. |
27 |
> > > |
28 |
> > > Calculating dependencies * See the CONFIGURATION FILES and |
29 |
> > > CONFIGURATION FILES UPDATE TOOLS |
30 |
|
31 |
As others have already commented, the notices in CAPITAL case above are not to |
32 |
be ignored. Packages you installed require changing/updating their |
33 |
configuration files in /etc/, which portage won't do without your review and |
34 |
manual intervention. |
35 |
|
36 |
There are a variety of tools to perform this configuration files update. The |
37 |
notice provided by portage also tells you where to look: |
38 |
|
39 |
> > > * sections of the emerge man page to learn how to update config files. |
40 |
|
41 |
So run 'man emerge' then type: |
42 |
|
43 |
/CONFIGURATION\ FILES |
44 |
|
45 |
and hit enter to search for "CONFIGURATION FILES" in the man page of the |
46 |
emerge command. |
47 |
|
48 |
Additional information on the etc-update (installed by default) and other |
49 |
tools is given here: |
50 |
|
51 |
https://wiki.gentoo.org/wiki/Handbook:X86/Portage/Tools |
52 |
|
53 |
|
54 |
> > > ... done! |
55 |
> > > [ebuild N ] app-arch/cpio-2.12-r1 USE="nls" |
56 |
> > > [ebuild N ] sys-kernel/linux-firmware-20200316 |
57 |
> > > USE="redistributable -initramfs -savedconfig (-unknown-license)" |
58 |
> > > [ebuild N ] sys-kernel/genkernel-4.0.4 USE="firmware (-ibm)" |
59 |
> > > |
60 |
> > > The following license changes are necessary to proceed: |
61 |
> > > (see "package.license" in the portage(5) man page for more details) |
62 |
> > > |
63 |
> > > # required by sys-kernel/genkernel-4.0.4::gentoo[firmware] |
64 |
> > > # required by genkernel (argument) |
65 |
> > > =sys-kernel/linux-firmware-20200316 linux-fw-redistributable |
66 |
> > > no-source-code |
67 |
> > > |
68 |
> > > Autounmask changes successfully written. |
69 |
> > > |
70 |
> > > * IMPORTANT: 7 config files in '/etc/portage' need updating. |
71 |
> > > * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS |
72 |
> > > * sections of the emerge man page to learn how to update config |
73 |
> > > |
74 |
> > > files.Here is the |
75 |
> > > |
76 |
> > > Here is the portage(5) man page: |
77 |
> > > https://dev.gentoo.org/~zmedico/portage/doc/man/portage.5.html. Here |
78 |
> > > |
79 |
> > > is the part about package.license: |
80 |
> > > This will allow ACCEPT_LICENSE (see make.conf(5)) to be augmented |
81 |
> > > |
82 |
> > > for a single package. |
83 |
> > > |
84 |
> > > Format: |
85 |
> > > - comment lines begin with # (no inline comments) |
86 |
> > > - one DEPEND atom per line followed by additional licenses or |
87 |
> > > groups |
88 |
> > > |
89 |
> > > Removing LICENSE_ACCEPT="*" and --autounmask-write does not help. |
90 |
> > > |
91 |
> > > The information provided in portage(5) and package.license leaves a |
92 |
> > > lot to be desired. |
93 |
> > > |
94 |
> > > What is the problem and how do I fix it? |
95 |
> > |
96 |
> > Well, you need to change your config files as portage asked you to do |
97 |
> > before proceeding. There are several utilities to do that, I use |
98 |
> > etc-update, but there are several others. |
99 |
> |
100 |
> Thanks John. |
101 |
> |
102 |
> The Handbook does not say to make any configuration changes. That |
103 |
> seems safe to me since I have no idea what changes to make. |
104 |
> |
105 |
> Jeff |
106 |
|
107 |
When you ran '--autounmask-write' emerge saved some files specific to the |
108 |
license changes and perhaps other packages in /etc/ - it will not apply these |
109 |
automatically. You have to merge or reject these yourself by using 'etc- |
110 |
update'. The interactive merge feature of 'etc-update' and other similar |
111 |
tools is quite useful when many changes need to be reviewed and applied on |
112 |
long configuration files. Some of these changes you may want to apply, others |
113 |
reject, often within the same file. |
114 |
|
115 |
Eventually you'll get the hang of this and go through the steps without much |
116 |
consternation. |
117 |
|
118 |
HTH. |