Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
profile 23, remove CHOST... why?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Sun Mar 24, 2024 11:48 am    Post subject: profile 23, remove CHOST... why? Reply with quote

I was reading the provided document for the new profile update, and they want us to remove CHOST from make.conf... but I don't understand the rationale behind that...

I've been using gentoo for 20 years, and as much as I admire the recent push for binary packages (that I will never ever use), removing CHOST seems the most un-gentoo thing I have heard in these past 20 years.

Can someone tell us why you want us to do this? It's bad enough that someone has been breaking the toolchain in other fashions in the past couple months (without testing things beforehand), but I feel like this is only going to cause even more breakage to people's systems going forward.

Thanks
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Sun Mar 24, 2024 12:08 pm    Post subject: Reply with quote

How is it an "un-gentoo" thing? The point is that CHOST defines ABI, and ABI is already specified by profiles. Redefining it in make.conf just leads to user error when they copy it to another machine. If you know and care about customising your CHOST, then nothing changes, and you're free to continue doing so.

Were you aware that not all architectures and stages even shipped with CHOST in their default make.conf? It was very inconsistent.

While working on the removal, we ended up creating other profiles for configurations which were missing, which means we get proper CI for them and we can verify there's a consistent depgraph (e.g. for i586).

bunder wrote:

Can someone tell us why you want us to do this? It's bad enough that someone has been breaking the toolchain in other fashions in the past couple months (without testing things beforehand), but I feel like this is only going to cause even more breakage to people's systems going forward.


Please file bugs if you hit issues, without snark.

I also try to remind people that in general, maintaining things in Gentoo isn't easy, especially when users have such a wide array of different configs (which is why we love Gentoo). But then the other side of that is, we can't know about problems unless they report them in some cases, and one shouldn't assume that if it's broken for you, it's broken for everybody. Obviously, if something was critically broken, there would be much noise about it. That doesn't mean nothing was broken for you, but it doesn't imply carelessness on the part of others.

It's much better to just focus on the technical issues and report them so they can be handled.
Back to top
View user's profile Send private message
joaopft
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 86
Location: Lisbon, Portugal

PostPosted: Mon Mar 25, 2024 9:48 am    Post subject: Removal of CHOST setting from make.conf Reply with quote

How does it work? How does the profle select the right architecture, particularly when it is different from x86_64-pc-linux-gnu or i686-pc-linux-gnu?
_________________
Fiction is obliged to stick to possibilities. Truth isn't.
Mark Twain
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Mon Mar 25, 2024 10:20 am    Post subject: Re: Removal of CHOST setting from make.conf Reply with quote

joaopft wrote:
How does it work? How does the profle select the right architecture, particularly when it is different from x86_64-pc-linux-gnu or i686-pc-linux-gnu?
You're the one picking the profile, and you have to pick a profile that match your hardware. So there's no need for any magic to figure that out as you're telling it :)

Former would be a /amd64/ profile, latter a /x86/ one.

As sam pointed, there's also some more precise profiles, e.g.
Code:
default/linux/x86/23.0/i486
default/linux/arm/23.0/armv6j_sf
default/linux/arm/23.0/armv6j_hf
So in the vast majority of situations, should leave little reason to play with CHOST yourself and self-inflict issues by using something that's likely unexpected by build systems and/or ebuilds that are based on known profiles' CHOST (not that people can't but those doing that will largely be on their own -- with musl profiles we used to have a -gentoo- in there and it was already causing problems on top of being kinda silly, 23.0 changed that to a more widely used -unknown-).
Back to top
View user's profile Send private message
joaopft
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 86
Location: Lisbon, Portugal

PostPosted: Mon Mar 25, 2024 12:24 pm    Post subject: Reply with quote

Ok, understood. Thanks!
_________________
Fiction is obliged to stick to possibilities. Truth isn't.
Mark Twain
Back to top
View user's profile Send private message
e8root
n00b
n00b


Joined: 09 Feb 2024
Posts: 71

PostPosted: Mon Mar 25, 2024 2:58 pm    Post subject: Reply with quote

Adding proper support for binary packages is imho not "ungentoo" but instead fixes biggest issue Gentoo had.
And no, I am not going to use this feature either. At least not very often. Quickly installing Gentoo to then allow it to rebuild from sources on its own pace? Sure!, why not?

There are however people who would want to use Gentoo but not necessarily feel the need to build each and every package from software everything else be dammed.
For example what advantage does building libreoffice from sources brings to the table? If you use it a lot and have custom USE flags in mind then yeah but for ~99% cases it is installed because "every system should have office suite" and not out of any real necessity... and then it still takes few hours to build even on modern gaming PC with >10 cores and does so each time there is an update. No matter how you look at it this is an overkill and it is absolutely great Gentoo now can do without such silliness. (BTW. this is an example I picked before remembering there already was libreoffice-bin... but not all packages had -bin version so my argument stands ;))

Ridiculous build times is and why many people shy away from this distro. Binary packages are great way to drastically reduce package installation times.
Also they are an amazing way to resolve certain issues like what can happen when you remove something GCC needs to build GCC... though here there are probably already workarounds for that unfortunate event it should be much easier to fix system when you can just emerge binary GCC.

Of course to use the best features Gentoo has to offer one still has to build from source but it makes big difference between customizing or optimizing few packages and then building them from sources and having to build all packages from source.

That said your fears are at least justified in the sense that every unlikely scenario that leads to terrible results should be at least investigated with the priority based on its probability and impact - in this case however jumping to conclusion that Gentoo soon will change in to Ubuntu because binary packages were added and then recommendation to remove CHOST only shows that less effort went to write rant about impending end of Gentoo as we know it than thinking the whole thing through. I mean if you have to bother removing CHOST then it is kinda obvious it still works, isn't it? :roll:
_________________
Unix Wars - Episode V: AT&T Strikes Back
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Mon Mar 25, 2024 4:38 pm    Post subject: Reply with quote

No CHOST defined here using 17.1 profile.
Can't recall date of removal nor what caused such a commit....

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum