Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673394 - USE from the environment is not correctly handled in cross-prefix
Summary: USE from the environment is not correctly handled in cross-prefix
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: Normal critical
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-18 16:43 UTC by Benda Xu
Modified: 2018-12-20 10:58 UTC (History)
0 users

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 Benda Xu gentoo-dev 2018-12-18 16:43:11 UTC
In the cross-prefix senario, setting USE via the environment variable is broken.

Reproducible: Always

Steps to Reproduce:
1. USE='-acl -xattr -nls' EPREFIX=/tmp emerge -pvt gettext

   You can see the 'nls', 'acl', 'xattr' flags are not enabled. As expected.

2. USE='-acl -xattr -nls' EPREFIX=/tmp emerge -pvet gettext

   You can see that for some ebuilds 'nls', 'acl', 'xattr' are enabled.




It is very likely related to the EAPI-7 bump.  I think at first we need to clarify that during cross-prefix,

1. if a compile time DEPEND is installed in BROOT but not the lastest version,

   Will the package in BROOT be upgraded?  In this case will the environment variable USE affect the use flags of the BROOT?

2. if a compile time DEPEND is not installed anywhere,

   Will it be installed into BROOT or EPREFIX?  Will the environmental USE flag  be respected?
Comment 1 Benda Xu gentoo-dev 2018-12-20 10:58:15 UTC
> It is very likely related to the EAPI-7 bump.  I think at first we need to
> clarify that during cross-prefix,
> 
> 1. if a compile time DEPEND is installed in BROOT but not the lastest
> version,
> 
>    Will the package in BROOT be upgraded?  In this case will the environment
> variable USE affect the use flags of the BROOT?

No.

> 2. if a compile time DEPEND is not installed anywhere,
> 
>    Will it be installed into BROOT or EPREFIX?  Will the environmental USE
> flag  be respected?

No.