Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] RFC: CONFIG_CHECK_FATAL, making CONFIG_CHECKS fatal by default
Date: Tue, 22 Jan 2013 03:38:47
Message-Id: robbat2-20130122T032417-835825558Z@orbis-terrarum.net
1 I'm raising this patch because of the recent spate of bugs with the
2 latest udev that now fails to boot your system if CONFIG_DEVTMPFS is
3 not available in your kernel.
4
5 Bugs: 408947, 409393, 437320, 453074
6
7 CONFIG_CHECK has not been fatal for some years now, because there turned
8 out to be some cases where it cannot detect what the system really has
9 [1], or what is returned is wrong [2].
10
11 However, while this is has been superb in helping those corner-cases,
12 the fallout is that users frequently ignore the non-fatal warnings that
13 a configuration option is needed to run a binary later, and end up with
14 weird breakage.
15
16 This patch introduces a new option, CONFIG_CHECK_FATAL, defaulting to
17 enabled, that explicitly causes a die if:
18 - CONFIG_CHECK cannot be performed successfully.
19 - Any CONFIG_CHECK options fail.
20
21 For the aforementioned corner cases, those environments are used to
22 customizing their make.conf heavily, and they should add:
23 CONFIG_CHECK_FATAL=0
24
25 This patch does NOT change the handling of ~/tilde in CONFIG_CHECK
26 - options that are required at compile-time MUST NOT use ~/tilde.
27 - options that are only required at run-time MUST include the ~/tilde.
28
29 Footnotes:
30 1. If you are using a VM environment, where the kernel is provided
31 outside of your VM, and you don't have kernel sources, or
32 /proc/config.gz, you CANNOT detect what options the kernel is
33 configured with.
34 2. Building stages for example. You may have /proc bind-mounted from the
35 host system, but it does not reflect the environment you are building
36 for.
37
38 --
39 Robin Hugh Johnson
40 Gentoo Linux: Developer, Trustee & Infrastructure Lead
41 E-Mail : robbat2@g.o
42 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

Attachments

File name MIME type
linux-info-config_check_fatal.patch text/x-diff
signature.asc application/pgp-signature

Replies