Gentoo Archives: gentoo-user

From: John Covici <covici@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to fix license error during install?
Date: Sat, 21 Mar 2020 09:34:23
Message-Id: m3a74auk4s.wl-covici@ccs.covici.com
In Reply to: Re: [gentoo-user] How to fix license error during install? by Jeffrey Walton
1 On Fri, 20 Mar 2020 22:18:47 -0400,
2 Jeffrey Walton wrote:
3 >
4 > On Fri, Mar 20, 2020 at 10:16 PM John Covici <covici@××××××××××.com> wrote:
5 > >
6 > > On Fri, 20 Mar 2020 21:16:10 -0400,
7 > > Jeffrey Walton wrote:
8 > > >
9 > > > Hi Everyone,
10 > > >
11 > > > I'm having trouble installing Gentoo in a Virtual Box VM for testing.
12 > > > It is a x86_64 guest. I selected a hardened profile to test PaX, which
13 > > > means I selected 18 in 'eselect profile'.
14 > > >
15 > > > I'm at "Configuring the Linux kernel" in the Handbook
16 > > > (https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel#Alternative:_Using_genkernel).
17 > > > The part "emerge --ask sys-kernel/gentoo-sources" seems OK and does
18 > > > not report errors. The 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 > > > Calculating dependencies * See the CONFIGURATION FILES and
28 > > > CONFIGURATION FILES UPDATE TOOLS
29 > > > * sections of the emerge man page to learn how to update config files.
30 > > > ... done!
31 > > > [ebuild N ] app-arch/cpio-2.12-r1 USE="nls"
32 > > > [ebuild N ] sys-kernel/linux-firmware-20200316
33 > > > USE="redistributable -initramfs -savedconfig (-unknown-license)"
34 > > > [ebuild N ] sys-kernel/genkernel-4.0.4 USE="firmware (-ibm)"
35 > > >
36 > > > The following license changes are necessary to proceed:
37 > > > (see "package.license" in the portage(5) man page for more details)
38 > > > # required by sys-kernel/genkernel-4.0.4::gentoo[firmware]
39 > > > # required by genkernel (argument)
40 > > > =sys-kernel/linux-firmware-20200316 linux-fw-redistributable no-source-code
41 > > >
42 > > > Autounmask changes successfully written.
43 > > >
44 > > > * IMPORTANT: 7 config files in '/etc/portage' need updating.
45 > > > * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
46 > > > * sections of the emerge man page to learn how to update config
47 > > > files.Here is the
48 > > >
49 > > > Here is the portage(5) man page:
50 > > > https://dev.gentoo.org/~zmedico/portage/doc/man/portage.5.html. Here
51 > > > is the part about package.license:
52 > > >
53 > > > This will allow ACCEPT_LICENSE (see make.conf(5)) to be augmented
54 > > > for a single package.
55 > > >
56 > > > Format:
57 > > >
58 > > > - comment lines begin with # (no inline comments)
59 > > > - one DEPEND atom per line followed by additional licenses or groups
60 > > >
61 > > > Removing LICENSE_ACCEPT="*" and --autounmask-write does not help.
62 > > >
63 > > > The information provided in portage(5) and package.license leaves a
64 > > > lot to be desired.
65 > > >
66 > > > What is the problem and how do I fix it?
67 > > >
68 > >
69 > > Well, you need to change your config files as portage asked you to do
70 > > before proceeding. There are several utilities to do that, I use
71 > > etc-update, but there are several others.
72 >
73 > Thanks John.
74 >
75 > The Handbook does not say to make any configuration changes. That
76 > seems safe to me since I have no idea what changes to make.
77 >
78 > Jeff
79 >
80
81 OK, remember where it said at the end of your portage output that
82 there were several configuration files that needed updating? Run
83 etc-update and you will see the differences between the current and
84 new configuration files and you will see the necessary changes and you
85 should accept them and try your emerge again after accepting them.
86
87 --
88 Your life is like a penny. You're going to lose it. The question is:
89 How do
90 you spend it?
91
92 John Covici wb2una
93 covici@××××××××××.com