Gentoo Archives: gentoo-user

From: madscientistatlarge <madscientistatlarge@××××××××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] How to fix license error during install?
Date: Sat, 21 Mar 2020 02:39:26
Message-Id: sqtTnejr3T0JMBkDDwmCtSYqIw24BHd-9kKLlfCVxe41MR3zGgfEj30OHI5MR_QZgVqU7EdL1mk7Mb5IdNAwFgUodqZCI73WBqdpPCCHFGo=@protonmail.com
In Reply to: Re: [gentoo-user] How to fix license error during install? by Jeffrey Walton
1 Sent with ProtonMail Secure Email.
2
3 ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
4 On Friday, March 20, 2020 8:18 PM, Jeffrey Walton <noloader@×××××.com> wrote:
5
6 > On Fri, Mar 20, 2020 at 10:16 PM John Covici covici@××××××××××.com wrote:
7 >
8 > > On Fri, 20 Mar 2020 21:16:10 -0400,
9 > > Jeffrey Walton wrote:
10 > >
11 > > > Hi Everyone,
12 > > > I'm having trouble installing Gentoo in a Virtual Box VM for testing.
13 > > > It is a x86_64 guest. I selected a hardened profile to test PaX, which
14 > > > means I selected 18 in 'eselect profile'.
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 > > > The specific error is:
20 > > > $ LICENSE_ACCEPT="*" emerge --ask --autounmask-write
21 > > > sys-kernel/genkernel 2>&1 | tee kernel.txt
22 > > > $ cat kernel.txt
23 > > >
24 > > > - IMPORTANT: 6 config files in '/etc/portage' need updating.
25 > > > Calculating dependencies * See the CONFIGURATION FILES and
26 > > > CONFIGURATION FILES UPDATE TOOLS
27 > > >
28 > > > - sections of the emerge man page to learn how to update config files.
29 > > > ... done!
30 > > > [ebuild N ] app-arch/cpio-2.12-r1 USE="nls"
31 > > > [ebuild N ] sys-kernel/linux-firmware-20200316
32 > > > USE="redistributable -initramfs -savedconfig (-unknown-license)"
33 > > > [ebuild N ] sys-kernel/genkernel-4.0.4 USE="firmware (-ibm)"
34 > > >
35 > > >
36 > > > The following license changes are necessary to proceed:
37 > > > (see "package.license" in the portage(5) man page for more details)
38 > > >
39 > > > required by sys-kernel/genkernel-4.0.4::gentoo[firmware]
40 > > >
41 > > > =========================================================
42 > > >
43 > > > required by genkernel (argument)
44 > > >
45 > > > =================================
46 > > >
47 > > > =sys-kernel/linux-firmware-20200316 linux-fw-redistributable no-source-code
48 > > > Autounmask changes successfully written.
49 > > >
50 > > > - IMPORTANT: 7 config files in '/etc/portage' need updating.
51 > > > - See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
52 > > > - sections of the emerge man page to learn how to update config
53 > > > files.Here is the
54 > > >
55 > > >
56 > > > Here is the portage(5) man page:
57 > > > https://dev.gentoo.org/~zmedico/portage/doc/man/portage.5.html. Here
58 > > > is the part about package.license:
59 > > >
60 > > > This will allow ACCEPT_LICENSE (see make.conf(5)) to be augmented
61 > > >
62 > > >
63 > > > for a single package.
64 > > >
65 > > > Format:
66 > > >
67 > > > - comment lines begin with # (no inline comments)
68 > > > - one DEPEND atom per line followed by additional licenses or groups
69 > > >
70 > > >
71 > > > Removing LICENSE_ACCEPT="*" and --autounmask-write does not help.
72 > > > The information provided in portage(5) and package.license leaves a
73 > > > lot to be desired.
74 > > > What is the problem and how do I fix it?
75 > >
76 > > Well, you need to change your config files as portage asked you to do
77 > > before proceeding. There are several utilities to do that, I use
78 > > etc-update, but there are several others.
79 >
80 > Thanks John.
81 >
82 > The Handbook does not say to make any configuration changes. That
83 > seems safe to me since I have no idea what changes to make.
84 >
85 > Jeff
86
87 The manual is a starting point, not a step by step guide that tells you enough by itself. You have to pay attention to what your' system is telling you and look up the things you don't understand. A lack of configuration of many files will doom later steps. For example, if you lack substantial shell experience, and even if you don't you will have to learn new things, on your' own or with some help from the list. If you just do the basic things in the manual, you won't get anywhere. It's more of an outline with some steps well documented, some over documented, and some not documented properly unless you are smart enough too look up error messages and do what is required. Most if not all the info is on the gentoo site, but it's your' job to find it. It's a learning experience, not a complete and detailed set of instructions. Part of this is because you have options, you have to chose how some things will be done and investigate. I strongly recommend using a "tee" etc. to dump everything into text files you can skim. Often compiling will produce specific suggestions that won't be on the last page of text that scrowls by, you have to read ALL of the output from each step, and learn enough to have some understanding of why and how which will require research on the gentoo site, and often other sites. You have to modify the "USE" files for each application, as your' machine will tell you, that's actually the easy part. The hard part involves dealing with issues you don't understand yet. You have to learn, you have to try and want to learn, and you have to pay attention to what your' computer etc. is trying to tell you. It's not as trivial as the manual may imply at first. The people who wrote the various support materials are usually very experienced, that make it hard to anticipate everything someone less experienced may need to be told. Think about rebuilding an engine, for a highly experienced mechanic it's easy and obvious, to someone less experienced it requires real thought and learning many things you don't already have burned into your' brain from years of experience. Fully supporting the less experienced (like myself frankly) is always challenging, because when you learn you won't remember everything to tell someone else in advance, it will be interactive by it's very nature. Understanding some concepts may be easy for one person, but difficult for another, and it will vary from person to person, brains are not identical.