Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 130873 Details for
Bug 192341
portage only outputs brief error message when python imports fail, causing secondary failures later
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make emerge bail out and allow override via FEATURES="ignore-missing-freebsd-module"
ignore_missing.patch (text/plain), 1.98 KB, created by
Zac Medico
on 2007-09-13 23:51:47 UTC
(
hide
)
Description:
make emerge bail out and allow override via FEATURES="ignore-missing-freebsd-module"
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-09-13 23:51:47 UTC
Size:
1.98 KB
patch
obsolete
>Index: bin/emerge >=================================================================== >--- bin/emerge (revision 7780) >+++ bin/emerge (working copy) >@@ -48,6 +48,7 @@ > import portage_util > import portage_locks > import portage_exception >+import portage_data > from portage_data import secpass > from portage_util import normalize_path as normpath > from portage_util import writemsg >@@ -6051,6 +6052,43 @@ > print >> sys.stderr, bad("\a!!! Is the symlink correct? " + \ > "Is your portage tree complete?\n") > sys.exit(9) >+ if myroot == "/" and \ >+ portage_data.ostype == "FreeBSD": >+ ignore_missing = "ignore-missing-freebsd-module" >+ msg = None >+ die = False >+ if portage.bsd_chflags is not None and \ >+ ignore_missing in mysettings.features: >+ msg = \ >+ "Do NOT forget to remove \"%s\" " % ignore_missing + \ >+ "from FEATURES as soon as " + \ >+ "the freebsd python module has been properly " + \ >+ "installed." >+ elif portage.bsd_chflags is None and \ >+ ignore_missing not in mysettings.features: >+ die = True >+ msg = \ >+ "An error occurred while attempting to import the " + \ >+ "freebsd python module. This usually means that " + \ >+ "python has just been upgraded and the py-freebsd " + \ >+ "package has not yet been rebuilt by python-updater. " + \ >+ "The freebsd python module is required for proper " + \ >+ "operation. Please install or rebuild py-freebsd as " + \ >+ "soon as possible. In order to bypass this error, " + \ >+ "add \"%s\" to FEATURES. " % ignore_missing + \ >+ "Do NOT forget to remove it from FEATURES as soon as " + \ >+ "the freebsd python module has been properly " + \ >+ "installed." >+ if msg: >+ width = 72 # leave room for the " * " prefix >+ from textwrap import wrap >+ for line in wrap(msg, width): >+ sys.stderr.write(bad(" * ")) >+ sys.stderr.write(line) >+ sys.stderr.write("\n") >+ sys.stderr.flush() >+ if die: >+ sys.exit(9) > del myroot, mysettings > > def load_emerge_config(trees=None):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192341
:
130873
|
131918