Gentoo Archives: gentoo-user

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] package.features
Date: Sat, 03 Mar 2007 20:15:59
Message-Id: 200703032107.28310.bo.andresen@zlin.dk
In Reply to: Re: [gentoo-user] package.features by Michal 'vorner' Vaner
1 On Saturday 03 March 2007 20:39:01 Michal 'vorner' Vaner wrote:
2 > But there may be situations where this possibility could be used in some
3 > other ways. You may want nostrip for few packages only (need of debug
4 > symbols, and you do not want to have them for the whole system), or the
5 > make check fails for one package you critically need just now and have
6 > no other choice than to use it anyway.
7 >
8 > In my opinion, it should be possible to configure all the variables
9 > according to the package name.
10
11 The cases you've mentioned here (nostrip, splitdebug, test) are handled on the
12 bash side of portage which means disabling them in /etc/portage/bashrc on a
13 per package basis (or in /etc/portage/env/*) is possible.
14
15 # grep -C 1 env $(portageq portdir)/profiles/base/profile.bashrc
16 for conf in ${PN} ${PN}-${PV} ${PN}-${PV}-${PR}; do
17 [[ -r ${PORTAGE_CONFIGROOT}/etc/portage/env/${CATEGORY}/${conf} ]] \
18 && . ${PORTAGE_CONFIGROOT}/etc/portage/env/${CATEGORY}/${conf}
19 done
20
21 So e.g this would work:
22
23 # mkdir -p /etc/portage/env/${CATEGORY}/ && \
24 echo 'FEATURES=nostrip' > /etc/portage/env/${CATEGORY}/${PN}`
25
26 FEATURES=userpriv, however, is handled on the python side and hence that won't
27 work. In order to persuade someone to change this you'll probably need a
28 better use case than -userpriv which ultimately should be either fixed or
29 restricted in the ebuild.
30
31 > But in other words, if I want such functionality, I have to hack it in
32 > somehow. Or I will have a look at paladius, or how is that thing called
33 > (will test it in virtual machine first…)
34
35 eix can help you if even if you cannot spell... ;)
36
37 # eix --fuzzy paladius
38 [I] sys-apps/paludis
39 Available versions: (~)0.16.2 (~)0.18.1 (~)0.20.0 (~)0.20.1
40 Installed: 0.20.1 [...]
41 Homepage: http://paludis.pioto.org/
42 Description: paludis, the other package mangler
43
44 --
45 Bo Andresen

Replies

Subject Author
Re: [gentoo-user] package.features Michal 'vorner' Vaner <vorner@×××.cz>