Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382261 - app-portage/layman-1.4.1 uses global "test", but per file not wanted
Summary: app-portage/layman-1.4.1 uses global "test", but per file not wanted
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 12:14 UTC by Steffen Bergner
Modified: 2011-09-09 12:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Bergner 2011-09-08 12:14:24 UTC
problem:

/etc/make.conf uses -> FEATURES="test" <-

app-portage/layman-1.4.1 shall be installed without "test"

file /etc/portage/env/app-portage/layman-1.4.1 created with content:
FEATURES="-test"

"emerge -vp layman" still wants to install anything for tests (subversion...)


workaround:
FEATURES="-test" emerge -vp layman

but when doing an "emerge -evp world" or layman requires an emerge again (update), it will do the test-feature all over again (subversion and all that)

question:
Why does the package "app-portage/layman" doesn't use per file Feature requirement?

The global make.conf test feature is necessary for all other packages, so to say.

Thanks.

I just want to emerge the "bleachbit" package for tests and I need an overlay...
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2011-09-09 09:10:47 UTC
This is not the correct way to mask the 'test' use flag. Try 

echo "app-portage/layman test" >> /etc/portage/profile/package.use.mask

have a look on 'man portage'

If this does not work for you, reopen this bug
Comment 2 Steffen Bergner 2011-09-09 09:22:13 UTC
Thanks for the quick response and the help, but won't work... always test is used.

linux01 ~ # echo "app-portage/layman -test" >> /etc/portage/profile/package.use.mask
linux01 ~ # cat /etc/portage/profile/package.use.mask
app-portage/layman -test
linux01 ~ # emerge -vp layman

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/apr-util-1.3.11  USE="-berkdb -doc -freetds -gdbm -ldap -mysql -odbc -postgres -sqlite -sqlite3" 594 kB
[ebuild  N     ] dev-db/sqlite-3.7.7.1  USE="extensions fts3 readline test threadsafe -debug -doc -icu -secure-delete -soundex -tcl -unlock-notify" 4,456 kB
[ebuild  N     ] virtual/perl-MIME-Base64-3.08  0 kB
[ebuild  N     ] dev-perl/URI-1.55  79 kB
[ebuild  N     ] dev-vcs/subversion-1.6.17  USE="dso nls perl python test -apache2 -bash-completion -berkdb -ctypes-python -debug -doc -emacs -extras -gnome-keyring -java -kde -ruby -sasl -vim-syntax -webdav-neon -webdav-serf" 5,376 kB
[ebuild  N     ] app-portage/layman-1.4.1  USE="test -bazaar -cvs -darcs -git -mercurial -subversion" 59 kB

Total: 6 packages (6 new), Size of downloads: 10,561 kB
linux01 ~ #
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2011-09-09 10:26:56 UTC
You don't pay attention on what I write

I said 

echo "app-portage/layman test"

NOT

echo "app-portage/layman -test"
Comment 4 Steffen Bergner 2011-09-09 10:56:14 UTC
Sorry, got the logic "mask" -> reverse "test" = -test.

It does the trick.

Thank you very much Markos.

Ticket RESOLVED. No bug.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2011-09-09 11:49:57 UTC
package.use.mask is for masking use flags ( make this useflag unavailable )
if you need to unmask a use flag then it is the same file but you use '-test' instead of 'test'
Comment 6 Steffen Bergner 2011-09-09 12:06:24 UTC
Unavailable ("blocked") use flag, when in this file, ok. Thanks. :)