Gentoo Archives: gentoo-dev

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