Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117988 - [patch] `emerge -u portage` restart fails with "emerge: please tell me what to do."
Summary: [patch] `emerge -u portage` restart fails with "emerge: please tell me what t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 39901 124163 (view as bug list)
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-01-05 22:07 UTC by Zac Medico
Modified: 2006-03-14 00:07 UTC (History)
2 users (show)

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


Attachments
emerge-restart-resume.patch (emerge-restart-resume.patch,1.74 KB, patch)
2006-01-06 00:43 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2006-01-05 22:07:30 UTC
Do `USE="doc" emerge -u portage` when portage-manpages is not installed and after portage is upgraded it will output "emerge: please tell me what to do." instead of continuing to install portage-manpages.  This seems to be a side effect of the fix for bug 107865.  This problem exists in both 2.0.53 and 2.0.54 (first brought to my attention by a comment on bug 108262).
Comment 1 Zac Medico gentoo-dev 2006-01-06 00:43:57 UTC
Created attachment 76306 [details, diff]
emerge-restart-resume.patch

This patch uses the list of long options stored in "myopts" to generate a new argument list for the os.execv call.  As before, selected "badlongopts" are filtered out.  In addition, "--resume" is added to the arguments and the first item in the mtimedb mergelist (portage itself) is removed.  Hopefully this will have the desired behavior while being less error prone than the previous approach.  The patch applies to all versions of portage currently in the tree (2.0.51.22-r3 through 2.1_pre3-r1).

Note that this bug is actually unrelated to bug 107865 (though symptoms initially led me to suspect they were related).
Comment 2 Zac Medico gentoo-dev 2006-01-06 01:49:22 UTC
Thinking about it, --skipfirst should be added to badlongopts (or equivalently, leave portage in the mergelist and force --skipfirst intentionally).  One drawback of my suggested approach is that it assumes the new version of portage will be able to read the mtimedb that was created by the old version (good assumption?).
Comment 3 Zac Medico gentoo-dev 2006-02-05 11:43:25 UTC
This is now in trunk for release in portage-2.1_pre5.
Comment 4 Zac Medico gentoo-dev 2006-02-26 06:01:31 UTC
*** Bug 124163 has been marked as a duplicate of this bug. ***
Comment 5 Zac Medico gentoo-dev 2006-02-26 14:46:13 UTC
Released in 2.1_pre5.
Comment 6 Zac Medico gentoo-dev 2006-03-14 00:07:39 UTC
*** Bug 39901 has been marked as a duplicate of this bug. ***