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 20:03:34
Message-Id: 1477425789.1983.35.camel@infinera.com
In Reply to: Re: [gentoo-dev] LLVM News item by Ian Stakenvicius
1 On Tue, 2016-10-25 at 15:41 -0400, Ian Stakenvicius wrote:
2 > On 25/10/16 03:32 PM, Ian Stakenvicius wrote:
3 > >
4 > > On 25/10/16 03:08 PM, Joakim Tjernlund wrote:
5 > > >
6 > > > On Tue, 2016-10-25 at 20:11 +0200, Michał Górny wrote:
7 > > > >
8 > > > > On Tue, 25 Oct 2016 17:32:22 +0000
9 > > > > Joakim Tjernlund <Joakim.Tjernlund@××××××××.com> wrote:
10 > > > >
11 > > > > >
12 > > > > >
13 > > > > > Noticed todays 2016-10-25-llvm_3_9_with_llvm_targets news item and read:
14 > > > > > ..
15 > > > > > In order to enable all targets, add the following to your
16 > > > > > /etc/portage/package.use or equivalent file:
17 > > > > >
18 > > > > >   sys-devel/llvm LLVM_TARGETS: *
19 > > > > >   sys-devel/clang LLVM_TARGETS: *
20 > > > > > ...
21 > > > > >
22 > > > > > I would like to control such variables(LLVM_TARGETS) through the profile as
23 > > > > > well but it seems not supported?
24 > > > >
25 > > > > Why not? We're already setting the defaults in profiles, and you can do
26 > > > > whatever you want in your own profile. The news item is focused on
27 > > > > regular users, so it covers the usual configuration files rather than
28 > > > > creating custom profiles.
29 > > > >
30 > > >
31 > > > How? in my profile(which inherits gentoo:default/linux/amd64/13.0/desktop) I just tested to add:
32 > > > # > svn diff
33 > > > Index: package.use
34 > > > ===================================================================
35 > > > --- package.use (revision 1087)
36 > > > +++ package.use (working copy)
37 > > > @@ -1,3 +1,6 @@
38 > > > +sys-devel/llvm LLVM_TARGETS: *
39 > > > +sys-devel/clang LLVM_TARGETS: *
40 > > >
41 > > > Then I get:
42 > > > # > emerge -aNDuv world
43 > > > --- Invalid USE flag for 'sys-devel/llvm' in '/var/lib/layman/transmode/profiles/gentoo64/package.use':
44 > > > 'LLVM_TARGETS:'
45 > > > --- Invalid USE flag for 'sys-devel/llvm' in '/var/lib/layman/transmode/profiles/gentoo64/package.use':
46 > > > '*'
47 > > > --- Invalid USE flag for 'sys-devel/clang' in '/var/lib/layman/transmode/profiles/gentoo64/package.use':
48 > > > 'LLVM_TARGETS:'
49 > > > --- Invalid USE flag for 'sys-devel/clang' in '/var/lib/layman/transmode/profiles/gentoo64/package.use':
50 > > > '*'
51 > > >
52 > >
53 > > Syntax error:
54 > >
55 > > sys-devel/llvm llvm_targets_firstone llvm_targets_secondone ..
56 > > sys-devel/clang llvm_targets_firstone llvm_targets_secondone ..
57
58 This is standard USE flags, not the VAR: x y z syntax
59
60 > >
61 > >
62 > > You can't specify wildcards to enable groups of use flags.
63 > >
64 > >
65 >
66 > Correction, the earlier syntax *is* supposed to work (and tested that
67 > it works here, with VIDEO_CARDS)..  If I had to guess this probably
68 > relates to an issue with the transmode overlay.
69 >
70
71 Hmm, are you saying that you can write:
72   x11-base/xorg-drivers VIDEO_CARDS: intel radeon
73 in your profile?
74
75 Any idea what my issue might be?
76
77  Jocke

Replies

Subject Author
Re: [gentoo-dev] LLVM News item Ian Stakenvicius <axs@g.o>
Re: [gentoo-dev] LLVM News item "Michał Górny" <mgorny@g.o>