Gentoo Archives: gentoo-dev

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

Attachments

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