Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117988

Summary: [patch] `emerge -u portage` restart fails with "emerge: please tell me what to do."
Product: Gentoo Linux Reporter: Zac Medico <zmedico>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: betelgeuse, gentoo
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 115839    
Attachments: emerge-restart-resume.patch

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. ***