Gentoo Archives: gentoo-dev

From: Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
To: "gentoo-dev@l.g.o" <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] LLVM News item
Date: Tue, 25 Oct 2016 22:45:48
Message-Id: 1477435534.1983.49.camel@infinera.com
In Reply to: Re: [gentoo-dev] LLVM News item by Ian Stakenvicius
1 On Tue, 2016-10-25 at 16:07 -0400, Ian Stakenvicius wrote:
2 > On 25/10/16 04:02 PM, Joakim Tjernlund wrote:
3 > >
4 > > On Tue, 2016-10-25 at 15:41 -0400, Ian Stakenvicius wrote:
5 > > >
6 > > > On 25/10/16 03:32 PM, Ian Stakenvicius wrote:
7 > > > >
8 > > > >
9 > > > > On 25/10/16 03:08 PM, Joakim Tjernlund wrote:
10 > > > > >
11 > > > > >
12 > > > > > On Tue, 2016-10-25 at 20:11 +0200, Michał Górny wrote:
13 > > > > > >
14 > > > > > >
15 > > > > > > On Tue, 25 Oct 2016 17:32:22 +0000
16 > > > > > > Joakim Tjernlund <Joakim.Tjernlund@××××××××.com> wrote:
17 > > > > > >
18 > > > > > > >
19 > > > > > > >
20 > > > > > > >
21 > > > > > > > Noticed todays 2016-10-25-llvm_3_9_with_llvm_targets news item and read:
22 > > > > > > > ..
23 > > > > > > > In order to enable all targets, add the following to your
24 > > > > > > > /etc/portage/package.use or equivalent file:
25 > > > > > > >
26 > > > > > > >   sys-devel/llvm LLVM_TARGETS: *
27 > > > > > > >   sys-devel/clang LLVM_TARGETS: *
28 > > > > > > > ...
29 > > > > > > >
30 > > > > > > > I would like to control such variables(LLVM_TARGETS) through the profile as
31 > > > > > > > well but it seems not supported?
32 > > > > > >
33 > > > > > > Why not? We're already setting the defaults in profiles, and you can do
34 > > > > > > whatever you want in your own profile. The news item is focused on
35 > > > > > > regular users, so it covers the usual configuration files rather than
36 > > > > > > creating custom profiles.
37 > > > > > >
38 > > > > >
39 > > > > > How? in my profile(which inherits gentoo:default/linux/amd64/13.0/desktop) I just tested to add:
40 > > > > > # > svn diff
41 > > > > > Index: package.use
42 > > > > > ===================================================================
43 > > > > > --- package.use (revision 1087)
44 > > > > > +++ package.use (working copy)
45 > > > > > @@ -1,3 +1,6 @@
46 > > > > > +sys-devel/llvm LLVM_TARGETS: *
47 > > > > > +sys-devel/clang LLVM_TARGETS: *
48 > > > > >
49 > > > > > Then I get:
50 > > > > > # > emerge -aNDuv world
51 > > > > > --- Invalid USE flag for 'sys-devel/llvm' in
52 > > > > > '/var/lib/layman/transmode/profiles/gentoo64/package.use':
53 > > > > > 'LLVM_TARGETS:'
54 > > > > > --- Invalid USE flag for 'sys-devel/llvm' in
55 > > > > > '/var/lib/layman/transmode/profiles/gentoo64/package.use':
56 > > > > > '*'
57 > > > > > --- Invalid USE flag for 'sys-devel/clang' in
58 > > > > > '/var/lib/layman/transmode/profiles/gentoo64/package.use':
59 > > > > > 'LLVM_TARGETS:'
60 > > > > > --- Invalid USE flag for 'sys-devel/clang' in
61 > > > > > '/var/lib/layman/transmode/profiles/gentoo64/package.use':
62 > > > > > '*'
63 > > > > >
64 > > > >
65 > > > > Syntax error:
66 > > > >
67 > > > > sys-devel/llvm llvm_targets_firstone llvm_targets_secondone ..
68 > > > > sys-devel/clang llvm_targets_firstone llvm_targets_secondone ..
69 > >
70 > > This is standard USE flags, not the VAR: x y z syntax
71 > >
72 > > >
73 > > > >
74 > > > >
75 > > > >
76 > > > > You can't specify wildcards to enable groups of use flags.
77 > > > >
78 > > > >
79 > > >
80 > > > Correction, the earlier syntax *is* supposed to work (and tested that
81 > > > it works here, with VIDEO_CARDS)..  If I had to guess this probably
82 > > > relates to an issue with the transmode overlay.
83 > > >
84 > >
85 > > Hmm, are you saying that you can write:
86 > >   x11-base/xorg-drivers VIDEO_CARDS: intel radeon
87 > > in your profile?
88 > >
89 > > Any idea what my issue might be?
90 > >
91 > >  Jocke
92 > >
93 >
94 > In my profile as in /etc/portage/package.use/  , yes. Specifically I
95 > tested VIDEO_CARDS: *
96
97 I thought it was obvious that I was referring to a custom profile
98 as in eselect profile ..
99
100 >
101 > I *didn't* try to mess with my in-repo profile though.  Given that
102 > repositories may well need to follow PMS, and the USE_EXPAND: * syntax
103 > is a portage'ism, this is why they are being rejected in the
104 > transmode-overlay case.  I certainly can't find an example of this
105 > syntax in the gentoo repo.
106
107 Portage supports lots more than PMS as is, should we remove that?
108 Just because something is supported in portage, you don't have to use it
109 in official repos. Our overlay is used to maintain all the linux computers
110 we have here and /etc/portage is the individual using a particular computer.
111
112 It would be nice if portage, in general, supported the same features/syntax as
113 /etc/portage does.
114
115   Jocke

Replies

Subject Author
Re: [gentoo-dev] LLVM News item Ian Stakenvicius <axs@g.o>