Gentoo Archives: gentoo-dev

From: "William L. Thomson Jr." <wlt-ml@××××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Strip features via profile.bashrc
Date: Mon, 20 Nov 2017 02:57:47
Message-Id: assp.049751775c.20171119215730.21845e33@wlt.obsidian-studios.com
1 I am trying to replicate like /etc/portage/package.env type function.
2 For some packages I had FEATURES="-buildpkg". I cannot seem to
3 replicate this what so ever with profile.bashrc.
4
5 Not sure how via a profile in an overlay/tree, not /etc/portage, one
6 can add/remove features. I do not seem to have this problem with other
7 stuff. I_KNOW_WHAT_I_AM_DOING works for skipping pre-merge checks.
8 I am also able to add CFLAGS/CXXFLAGS. Which I noticed were being added
9 like 4 times, so I added in a phase check/hook.
10
11 https://github.com/Obsidian-StudiosInc/os-xtoo/blob/master/profiles/linux/amd64/profile.bashrc
12
13 For some reason I cannot seem to add or remove FEATURES. I can see them
14 in the shell. But they seem to have no effect. At least with regard to
15 buildpkg FEATURE.
16
17 phase: setup features: assume-digests binpkg-logs buildpkg ...
18 phase: setup features: assume-digests binpkg-logs buildpkg ...
19
20 In this case its removed, but still makes a binpkg.
21
22 phase: package features: assume-digests binpkg-logs
23 config-protect-if-modified ...
24
25 .Doesn't show but in my output there is a gap, 2 spaces
26 where it was. I can see the profile.bash being processed and doing its
27 thing.
28
29 I have tried export and set, neither have effect. Even when replaced
30 with -buildpkg. Seems like make.conf is sourced or something for that.
31 I do not think I am setting it to late. I cannot seem to set it for the
32 build env.
33
34 Any way to do this? A bug?
35
36 --
37 William L. Thomson Jr.

Replies

Subject Author
Re: [gentoo-dev] Strip features via profile.bashrc Mike Gilbert <floppym@g.o>