Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 228907
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: SpanKY <vapier@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 228907 depends on: 133327 176467 Show dependency tree
Bug 228907 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-06-22 14:59 0000
portage apparently is removing CROSSCOMPILE_OPTS from the environment thus
breaking any cross-compiles of glibc

for example, adding this to any ebuild:
pkg_setup() { die $CROSSCOMPILE_OPTS ; }

and then emerging it by doing:
CROSSCOMPILE_OPTS="headers-only" emerge ...

shows that the variable is empty when it clearly should not be

the related command "use crosscompile_opts_headers-only" also fails

------- Comment #1 From Zac Medico 2008-06-22 18:05:23 0000 -------
The problem is that CROSSCOMPILE_OPTS is in USE_EXPAND yet glibc doesn't have
crosscompile_opts_headers-only in IUSE. In order to stop
CROSSCOMPILE_OPTS="headers-only" from being filtered, you can remove
CROSSCOMPILE_OPTS from USE_EXPAND or else add crosscompile_opts_headers-only to
IUSE.

------- Comment #2 From SpanKY 2008-06-22 19:33:50 0000 -------
it's not in IUSE on purpose: these are internal variables that the user should
know nothing about

------- Comment #3 From Zac Medico 2008-06-22 20:59:30 0000 -------
It sounds like maybe CROSSCOMPILE_OPTS doesn't really fit well in USE_EXPAND
then...

------- Comment #4 From Zac Medico 2008-06-22 21:13:16 0000 -------
If you really need to keep CROSSCOMPILE_OPTS in USE_EXPAND for some reason, you
can just add the relevant flags to IUSE. Since CROSSCOMPILE is also in
USE_EXPAND_HIDDEN, users won't see those flags in emerge output.

------- Comment #5 From Zac Medico 2008-06-22 21:34:00 0000 -------
If CROSSCOMPILE_OPTS must be in USE_EXPAND and you absolutely refuse to add the
relevant flags to IUSE, we have another option. We can add an exemption for
USE_EXPAND_HIDDEN variables that exempts them from the IUSE filtering behavior.

------- Comment #6 From SpanKY 2008-06-23 00:47:49 0000 -------
i didnt opt for the IUSE_EXPAND cruft, someone else did.  if adding the stuff
to IUSE fixes things and it wont show up in -pv output, that's fine.  of course
Bug 133327 still needs to be implemented, but until then ...

thanks for researching + fix

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug