Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 800683 - Consider removing CHOST from make.conf
Summary: Consider removing CHOST from make.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Stages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-05 19:13 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-11-14 15:05 UTC (History)
4 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 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-05 19:13:18 UTC
Why do we have a CHOST in make.conf?

Today an user copied make.conf from glibc system to musl system and got broken gcc. Which is expected on it's own.

But why do we have CHOST in make.conf nowadays? I guess in the olden days profiles/ did not define as many critical variables. But today it's LIBDIR_${ABI}, ${ABI} and similar.

WDYT of stopping populating CHOST in a fresh make.conf systems?

That means more systems would have to rely heavily on valid profiles accessed early (catalyst?). But generally I think it should be fine.

We can require explicit CHOST for special profiles like embedded. But that could be handled by tools that generate the make.conf (crossdev).
Comment 1 Georgy Yakovlev archtester gentoo-dev 2021-07-05 21:51:02 UTC
releng populates CHOST in make.conf that gets shipped in stage3 to users.

so probably worth re-assigning to releng?
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-05 21:54:23 UTC
Sounds good.
Comment 3 Mike Gilbert gentoo-dev 2021-07-06 19:26:42 UTC
Another exception would be i486 stages, which use a profile that has CHOST="i686-pc-linux-gnu".
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2021-11-14 15:05:08 UTC
In many cases it's gone now.