Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 1/1] profiles: unset USE=modules by default.
Date: Sun, 14 Jan 2018 22:19:47
Message-Id: 20180114221928.28170-1-mjo@gentoo.org
1 The "modules" USE flag was originally enabled by default in the base
2 profile so that any ebuild inheriting linux-mod.eclass would have its
3 kernel modules built by default. However, the name of that USE flag is
4 now controlled by the MODULES_OPTIONAL_USE variable, set in the ebuild
5 itself. The best place for the USE flag default is therefore in IUSE
6 (in the ebuild), because only the ebuild knows the correct flag name.
7
8 There are at least two packages, media-gfx/graphicsmagick and
9 net-im/mcabber, that assign a different meaning to the "modules" flag,
10 further suggesting that a global default is too blunt an approach.
11
12 This commit drops the flag from base/make.defaults, and also from
13 default/linux/make.defaults where a redundant entry was present.
14 Thereafter, the override in features/hardened/make.defaults is
15 unnecessary, so it has been dropped as well.
16
17 Closes: https://bugs.gentoo.org/635720
18 ---
19 profiles/base/make.defaults | 5 -----
20 profiles/default/linux/make.defaults | 5 -----
21 profiles/features/hardened/make.defaults | 1 -
22 3 files changed, 11 deletions(-)
23
24 diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults
25 index 493af9ce75d..b44fd06ab4b 100644
26 --- a/profiles/base/make.defaults
27 +++ b/profiles/base/make.defaults
28 @@ -75,11 +75,6 @@ LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses te
29 # Netbeans modules/clusters
30 NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
31
32 -# 2009/09/21 Robin H. Johnson <robbat2@g.o>
33 -# https://archives.gentoo.org/gentoo-dev/msg_dc705dc2c1a45e18a85aa62e8fb17009.xml
34 -# Build kernel modules from linux-mod by default:
35 -USE="${USE} modules"
36 -
37 # Manuel RĂ¼ger <mrueg@g.o> (09 Sep 2015)
38 # Default Ruby build targets
39 RUBY_TARGETS="ruby22"
40 diff --git a/profiles/default/linux/make.defaults b/profiles/default/linux/make.defaults
41 index 4d580b1ba06..0716de8a14c 100644
42 --- a/profiles/default/linux/make.defaults
43 +++ b/profiles/default/linux/make.defaults
44 @@ -53,8 +53,3 @@ VIDEO_CARDS="dummy fbdev v4l"
45 # Note that adding LDFLAGS="-Wl,-O1 ${LDFLAGS}" breaks dev-util/boost-build
46 # because of whitespace.
47 LDFLAGS="-Wl,-O1 -Wl,--as-needed"
48 -
49 -# 2009/09/21 Robin H. Johnson <robbat2@g.o>
50 -# https://archives.gentoo.org/gentoo-dev/msg_dc705dc2c1a45e18a85aa62e8fb17009.xml
51 -# Build kernel modules from linux-mod by default:
52 -USE="${USE} modules"
53 diff --git a/profiles/features/hardened/make.defaults b/profiles/features/hardened/make.defaults
54 index 1502b08728f..88e165c4611 100644
55 --- a/profiles/features/hardened/make.defaults
56 +++ b/profiles/features/hardened/make.defaults
57 @@ -24,4 +24,3 @@ USE="${USE} -berkdb -gdbm -tcpd"
58 USE="${USE} -fortran"
59 USE="${USE} -cli"
60 USE="${USE} -dri"
61 -USE="${USE} -modules"
62 --
63 2.13.6