Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147502 - New Doc Changing the CHOST mini-howto
Summary: New Doc Changing the CHOST mini-howto
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: New Documentation (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://dev.gentoo.org/~chriswhite/cha...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-13 14:28 UTC by Chris White (RETIRED)
Modified: 2006-10-09 12:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
change-chost.xml (change-chost.xml,6.76 KB, text/plain)
2006-09-13 14:29 UTC, Chris White (RETIRED)
Details
new version (change-chost.xml,8.41 KB, text/xml)
2006-09-18 08:50 UTC, Wernfried Haas (RETIRED)
Details
some more fixes (change-chost.xml,8.44 KB, text/plain)
2006-09-18 09:02 UTC, Wernfried Haas (RETIRED)
Details
another one... (change-chost.xml,8.57 KB, text/plain)
2006-09-18 14:52 UTC, Wernfried Haas (RETIRED)
Details
New version (change-chost.xml,10.09 KB, text/plain)
2006-09-23 00:30 UTC, Wernfried Haas (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris White (RETIRED) gentoo-dev 2006-09-13 14:28:54 UTC
Here's guidexml-ization of the chost changing guide that amne posted to gentoo-dev.  Consider it a draft.  Passes xmllint and comes up just fine on dev.g.o, which I know doesn't mean it's perfect ;).  Rendered preview is in the URL field.
Comment 1 Chris White (RETIRED) gentoo-dev 2006-09-13 14:29:13 UTC
Created attachment 96906 [details]
change-chost.xml
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2006-09-14 02:20:21 UTC
IMHO, it would be a lot more useful to our users if we used a move from i386 to i686 as an example as that is the most common occurrence. It seems many users used an x86 stage3 instead of the i686 one and need to switch to i686 to keep upgrading.
Comment 3 nm (RETIRED) gentoo-dev 2006-09-14 04:27:34 UTC
(In reply to comment #0)
Minor GuideXML issues, but no real problems there.

However, this mini-howto absolutely must have a short preface explaining why one might need to change CHOST -- basically, repeat the summary off to the side, but expand on it more. Changing CHOST is never something to be undertaken for the hell of it.

Also, it is an absolute CERTAINTY that users will need to recompile world after changing CHOST. I've dealt with users for a straight year that changed CHOST without recompiling world and seen all the problems that result from this. It is not a "may" or "advisable"; it is *critical* that users run emerge -e world after changing CHOST.

This doc should not go in without that part of the guide being changed to reflect this necessity.

Other than that, hey, it's a good start. :)
Comment 4 SpanKY gentoo-dev 2006-09-14 15:20:53 UTC
i really dont think so ... some specific packages have issues (and are mentioned in the guide), but in general packages should not care
Comment 5 nm (RETIRED) gentoo-dev 2006-09-17 05:09:03 UTC
(In reply to comment #4)
> i really dont think so ... some specific packages have issues (and are
> mentioned in the guide), but in general packages should not care
> 

I disagree. I've had an additional year of experience on a project outside of Gentoo (Jackass) in which I've seen countless users bork their systems trying to change (for example) from i586 to i686 without recompiling world. A single emerge -e world is a small price to pay for getting to your desired CHOST. If users really want to change CHOST, then they cannot get around this step. This guide needs to include this step as a requirement, not as a suggestion.
Comment 6 SpanKY gentoo-dev 2006-09-17 12:37:12 UTC
i dont really accept a "wealth" of experience on the forums with users using a ton of different and wrong instructions valid experience
Comment 7 nm (RETIRED) gentoo-dev 2006-09-17 15:39:34 UTC
(In reply to comment #6)
> i dont really accept a "wealth" of experience on the forums with users using a
> ton of different and wrong instructions valid experience
> 

Except that you really don't know how the Jackass! project works, do you? The installation instructions were the Gentoo handbook, since all that the project offered was a vanilla stage3 tarball that was built with and contained (at that time) ~x86 toolchain packages, namely gcc 3.4. So get off the "wrong instructions" platform.

If the Gentoo packages don't work right after changing CHOST, and if they do work by running an emerge -e world right afterward, then emerge -e world goes in. That is the fix. You can't try to switch from gcc 3.4 to 4.1 without recompiling, lest you end up with a mishmash of packages built in funny ways, and you can't try switching CHOSTs without running into the same result.

Besides, the forums are where users report what's wrong with Gentoo packages and build systems, not IRC. Respectfully, you're not active on the forums, so you don't see the how the vast majority of the user community tries to figure out solutions. Re-emerging world after changing CHOST is a time-tested solution to avoiding system b0rkage on down the road. This guide will include that step -- I guarantee you that a simple recompile of two packages won't fix things.
Comment 8 SpanKY gentoo-dev 2006-09-17 22:13:07 UTC
no, i have no idea how the Jackass project works nor do i care

i didnt say anything specific, i said that there is so much wrong information floating around the forums that i dont trust any of it

rebuilding with a different CHOST is not the same thing as a gcc upgrade and unless the gcc upgrade is an ABI change, moving forward is safe as well without rebuilding world
Comment 9 Wernfried Haas (RETIRED) gentoo-dev 2006-09-18 08:47:53 UTC
Thanks Chris for xmlification!

(In reply to comment #2)
> IMHO, it would be a lot more useful to our users if we used a move from i386 to
> i686 as an example as that is the most common occurrence.

Good idea, done that. Perhaps someone can proof-read it in case it became inconsistent, but it looks good to me.


(In reply to comment #3)
> However, this mini-howto absolutely must have a short preface explaining why
> one might need to change CHOST -- basically, repeat the summary off to the
> side, but expand on it more. Changing CHOST is never something to be undertaken
> for the hell of it.

Rearranged some stuff from the abstract and added an introduction.

As for recompiling world, some packages were added and i think the guide should catch the most common pitfalls with the CHOST migration (e.g. the perl packages). No one is forcing the users not to recompile their world target, let's just give them a chance to make their own decisions.
Comment 10 Wernfried Haas (RETIRED) gentoo-dev 2006-09-18 08:50:16 UTC
Created attachment 97342 [details]
new version

New version, can be viewed online on http://dev.gentoo.org/~amne/temp/change-chost.xml
Comment 11 Wernfried Haas (RETIRED) gentoo-dev 2006-09-18 09:02:35 UTC
Created attachment 97343 [details]
some more fixes
Comment 12 Wernfried Haas (RETIRED) gentoo-dev 2006-09-18 14:52:56 UTC
Created attachment 97365 [details]
another one...

i owe you a cookie vapier.
Comment 13 Wernfried Haas (RETIRED) gentoo-dev 2006-09-23 00:30:54 UTC
Created attachment 97820 [details]
New version

New version, Orin Eman reported some problems when upgrading CHOST and gcc at the same time, so i've added a warning not to do that and an explanation from Mike why it doesn't.
Comment 14 Xavier Neys (RETIRED) gentoo-dev 2006-10-09 03:48:13 UTC
Would have been done quicker if I hadn't had to pay special to silly things like "master of wang".
Valid XML is always appreciated btw. Please do use xmllint.

In CVS. You can already see it at http://gentoo.neysx.org/doc/en/change-chost.xml or wait for the next sync on www.g.o

You might want to redirect from your versions on woodpecker btw.

Thank you all for your work.
Comment 15 Wernfried Haas (RETIRED) gentoo-dev 2006-10-09 10:19:06 UTC
(In reply to comment #14)
> Would have been done quicker if I hadn't had to pay special to silly things
> like "master of wang".
Sorry for that silly joke, i couldn't resist.

> You might want to redirect from your versions on woodpecker btw.
Definitely.

> Thank you all for your work.
Thanks, too!
Comment 16 Jan Kundrát (RETIRED) gentoo-dev 2006-10-09 12:11:24 UTC
Do we want to leave the "Feedback" section as-is?