Gentoo Archives: gentoo-dev

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] LLVM News item Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>