Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33977 - stage1 install, emerge --sync and portage updates
Summary: stage1 install, emerge --sync and portage updates
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Xavier Neys (RETIRED)
URL:
Whiteboard:
Keywords:
: 34460 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-20 17:10 UTC by Marius Mauch (RETIRED)
Modified: 2003-11-27 08:37 UTC (History)
3 users (show)

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


Attachments
Patch to hb-install-system.xml (hb-install-system.diff,473 bytes, patch)
2003-11-21 03:44 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch to gentoo-x86-install.xml (gentoo-x86-install.diff,465 bytes, patch)
2003-11-21 03:44 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Post-patch for gentoo-x86-install.xml (gentoo-x86-install.xml.patch,934 bytes, patch)
2003-11-25 14:21 UTC, Xavier Neys (RETIRED)
Details | Diff
Post-patch for hb-install-system.xml (hb-install-system.xml.patch,749 bytes, patch)
2003-11-25 14:22 UTC, Xavier Neys (RETIRED)
Details | Diff
Post-patch for gentoo-x86-install.xml (gentoo-x86-install.xml.patch,976 bytes, patch)
2003-11-26 15:06 UTC, Xavier Neys (RETIRED)
Details | Diff
Post-patch for hb-install-system.xml (hb-install-system.xml.patch,791 bytes, patch)
2003-11-26 15:06 UTC, Xavier Neys (RETIRED)
Details | Diff
Patch to gentoo-x86-install.xml (gentoo-x86-install.xml.patch,960 bytes, patch)
2003-11-27 08:23 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch to hb-install-system.xml (hb-install-system.xml.patch,775 bytes, patch)
2003-11-27 08:24 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Mauch (RETIRED) gentoo-dev 2003-11-20 17:10:03 UTC
When you run `emerge --sync` and there's a new portage version available portage tells you to update it. This should not be done before you have bootstrap and `emerge system` completed as the compilation of depencies will fail. I suggest that you add a sentence about it to the install doc.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-21 01:45:23 UTC
I haven't done an enormous amount of Gentoo installs, but it is more than the sum of all my fingers and toes and when asked, I've always first updated portage. Furthermore, the update will also happen quite early in the bootstrap if users don't do this manually.

Why would dependencies fail?
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-11-21 02:23:00 UTC
Maybe this thread explains it better than me:
http://article.gmane.org/gmane.linux.gentoo.user/54975
Comment 3 Xavier Neys (RETIRED) gentoo-dev 2003-11-21 02:43:15 UTC
At step #9, after emerge sync, portage will mention there is a new portage version and it should be upgraded.
According to the article in gmane, the user tried to do emerge system instead of emerge portage.
I have installed Gentoo less times than I have fingers on my left hand (because they all worked 1st time and never had to be reinstalled contrary to other distros or alternative OS'es) but I believe emerge system at that point will not work. It has to be done at step #12, after bootstrap.

It might be worth adding a small note about the warning users might receive after emerge sync telling them to emerge portage and nothing else at that point ? Or not do it at all if it does not work, I can't remember. Please confirm.

Keep in mind that at that point users don't know anything about portage, yet. Hence the trip to google mentioned in the article.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-21 03:44:20 UTC
Created attachment 21023 [details, diff]
Patch to hb-install-system.xml
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-21 03:44:54 UTC
Created attachment 21024 [details, diff]
Patch to gentoo-x86-install.xml
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-21 03:46:55 UTC
As far as I know, there are two possibilities: 
(1) the user ignores the recommendation and continues (as portage will be updated 
    anyway due to "bootstrap.sh" or "emerge system"
(2) the user explicitly updates portage first

I've attached patches for the second possibility, but if you believe the first is 
preferred I can agree too.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2003-11-22 19:27:48 UTC
Both options are ok, I don't prefer one over the other.
Comment 8 Xavier Neys (RETIRED) gentoo-dev 2003-11-23 03:32:52 UTC
Patch looks good to me.
Comment 9 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-23 06:23:20 UTC
Okay, thanks for reporting this. It has now been corrected.
Comment 10 Marius Mauch (RETIRED) gentoo-dev 2003-11-25 13:56:10 UTC
Hmm, reading -user today it seems that I was wrong, `emerge -u portage` isn't working before bootstrap: http://article.gmane.org/gmane.linux.gentoo.user/55799/
Comment 11 Jon Portnoy (RETIRED) gentoo-dev 2003-11-25 13:58:14 UTC
Portage should definitely not be upgraded until after bootstrapping (at which point it's irrelevant) - this is confusing a whole lot of people trying to install.
Comment 12 Xavier Neys (RETIRED) gentoo-dev 2003-11-25 14:21:38 UTC
Created attachment 21287 [details, diff]
Post-patch for gentoo-x86-install.xml
Comment 13 Xavier Neys (RETIRED) gentoo-dev 2003-11-25 14:22:34 UTC
Created attachment 21288 [details, diff]
Post-patch for hb-install-system.xml

Please review ASAP
Comment 14 Robert Coie (RETIRED) gentoo-dev 2003-11-25 14:57:23 UTC
If the recommendation to upgrade portage is going to stay, one safe way I can
think of to do it is with:

USE="build" emerge -O portage
Comment 15 Erwin (RETIRED) gentoo-dev 2003-11-25 17:31:18 UTC
patches look good
Comment 16 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-25 21:24:50 UTC
Don't use such an emphasised "don't", it gives a bad impression that portage is broken. Instead use something like "ignore this as Portage will be updated as part of the bootstrap".
Comment 17 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-26 13:09:38 UTC
*** Bug 34460 has been marked as a duplicate of this bug. ***
Comment 18 Xavier Neys (RETIRED) gentoo-dev 2003-11-26 15:06:05 UTC
Created attachment 21335 [details, diff]
Post-patch for gentoo-x86-install.xml

Rephrased patch.
Comment 19 Xavier Neys (RETIRED) gentoo-dev 2003-11-26 15:06:54 UTC
Created attachment 21336 [details, diff]
Post-patch for hb-install-system.xml

Rephrased patch.

Please review.
Comment 20 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-27 08:23:17 UTC
Created attachment 21366 [details, diff]
Patch to gentoo-x86-install.xml
Comment 21 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-27 08:24:17 UTC
Created attachment 21367 [details, diff]
Patch to hb-install-system.xml

These patches use a phrazing of which I believe users don't feel weird :)
Comment 22 Xavier Neys (RETIRED) gentoo-dev 2003-11-27 08:37:53 UTC
Committed. Thanks.