Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 60228 Details for
Bug 94571
Remove USERLAND autodetection code from portage
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to remove USERLAND autodetection.
portage-2.0.51.22-noautodetection.patch (text/plain), 1.26 KB, created by
Diego Elio Pettenò (RETIRED)
on 2005-05-30 17:57:21 UTC
(
hide
)
Description:
Patch to remove USERLAND autodetection.
Filename:
MIME Type:
Creator:
Diego Elio Pettenò (RETIRED)
Created:
2005-05-30 17:57:21 UTC
Size:
1.26 KB
patch
obsolete
>diff -x '*~' -ur portage-2.0.51.22/pym/portage_data.py portage-2.0.51.22-nouserland/pym/portage_data.py >--- portage-2.0.51.22/pym/portage_data.py 2005-05-15 12:20:58.000000000 +0200 >+++ portage-2.0.51.22-nouserland/pym/portage_data.py 2005-05-31 02:49:10.250863496 +0200 >@@ -8,21 +8,16 @@ > from portage_util import writemsg > from output import green,red > >-ostype=os.uname()[0] >- > lchown = None >-if ostype=="Linux" or ostype.lower().endswith("gnu"): >- userland="GNU" >+if os.environ["USERLAND"] == "GNU": > os.environ["XARGS"]="xargs -r" >-elif ostype == "Darwin": >- userland="Darwin" >- os.environ["XARGS"]="xargs" >- lchown=os.chown >-elif ostype in ["FreeBSD","OpenBSD"]: >- userland="BSD" >+elif os.environ["USERLAND"] == "BSD": >+ os.environ["XARGS"]="xargs" >+elif os.environ["USERLAND"] == "Darwin": > os.environ["XARGS"]="xargs" >-else: >- writemsg(red("Operating system")+" \""+ostype+"\" "+red("currently unsupported. Exiting.")+"\n") >+ lchown=os.chown >+else >+ writemsg(red("Userland")+" \""+os.environ["USERLAND"]+"\" "+red("currently unsupported. Exiting.")+"\n") > sys.exit(1) > > if not lchown: >@@ -33,10 +28,6 @@ > import missingos > lchown = missingos.lchown > >- >- >-os.environ["USERLAND"]=userland >- > #Secpass will be set to 1 if the user is root or in the portage group. > secpass=0 >
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 94571
: 60228