Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588368 - sys-libs/glibc: does not respect LIBDIR_* from profiles
Summary: sys-libs/glibc: does not respect LIBDIR_* from profiles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://archives.gentoo.org/gentoo-de...
Whiteboard:
Keywords:
: 464916 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-07-08 22:00 UTC by Michał Górny
Modified: 2016-09-04 04:26 UTC (History)
2 users (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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-07-08 22:00:18 UTC
The glibc common.eblit calls multilib_env_setup from multilib.eclass that overrides LIBDIR_* values using some fancy hardcoded logic. As a result, the correct LIBDIR_* values from the current profile are being ignored and glibc does not compile correctly on my profile.

The multilib.eclass describes multilib_env_setup as intended for cross-compiling. Why is it called on regular host builds then?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-07-09 21:11:22 UTC
Patch on gentoo-dev: https://archives.gentoo.org/gentoo-dev/message/a32582f62f9a198b15113700605d3d4b
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-09-03 11:07:53 UTC
Two months with no reply, committed now.


commit ffc59b9e2bbe9ad89a1ab60e3a147785fe944141
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Sat Jul 9 00:03:15 2016
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Sat Sep 3 13:05:55 2016

    sys-libs/glibc: Do not reset multilib vars unless cross-compiling, #588368
    
    Do not call multilib_env_reset unless cross-compiling, in order to
    prevent the function from redefining profile-defined variables such as
    LIBDIR_*.
Comment 3 Benda Xu gentoo-dev 2016-09-04 04:26:23 UTC
*** Bug 464916 has been marked as a duplicate of this bug. ***