Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 377064 Details for
Bug 510400
sys-devel/gcc-4.8.2: initial multilib support for Gentoo/FreeBSD
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for sys-apps/portage, pym/portage/util/env_update.py
510400-envupdate.patch (text/plain), 2.12 KB, created by
Yuta SATOH
on 2014-05-16 11:21:00 UTC
(
hide
)
Description:
patch for sys-apps/portage, pym/portage/util/env_update.py
Filename:
MIME Type:
Creator:
Yuta SATOH
Created:
2014-05-16 11:21:00 UTC
Size:
2.12 KB
patch
obsolete
>diff --git a/portage-2.2.10/pym/portage/util/env_update.py b/portage-2.2.10/pym/portage/util/env_update.py >index c0a93a8..93f1ffc 100644 >--- a/portage-2.2.10/pym/portage/util/env_update.py >+++ b/portage-2.2.10/pym/portage/util/env_update.py >@@ -9,6 +9,8 @@ import io > import stat > import sys > import time >+import re >+import platform > > import portage > from portage import os, _encodings, _unicode_decode, _unicode_encode >@@ -189,11 +191,29 @@ def _env_update(makelinks, target_root, prev_mtimes, contents, env, > if (oldld != newld): > #ld.so.conf needs updating and ldconfig needs to be run > myfd = atomic_ofstream(ldsoconf_path) >+ if ostype == "FreeBSD" and platform.machine() == "amd64": >+ ld32soconf_path = os.path.join(eroot, "etc", "ld32.so.conf") >+ myfd32 = atomic_ofstream(ld32soconf_path) > myfd.write("# ld.so.conf autogenerated by env-update; make all changes to\n") > myfd.write("# contents of /etc/env.d directory\n") > for x in specials["LDPATH"]: >- myfd.write(x + "\n") >+ if ostype == "FreeBSD" and platform.machine() == "amd64": >+ if re.search("lib32", x) != None: >+ myfd32.write(x + "\n") >+ elif re.search("gcc", x) != None: >+ gccldconf = x.split('\n') >+ for y in gccldconf: >+ if re.search("gcc.*/32", y) != None: >+ myfd32.write(y + "\n") >+ else: >+ myfd.write(y + "\n") >+ else: >+ myfd.write(x + "\n") >+ else: >+ myfd.write(x + "\n") > myfd.close() >+ if ostype == "FreeBSD" and platform.machine() == "amd64": >+ myfd32.close() > > potential_lib_dirs = set() > for lib_dir_glob in ('usr/lib*', 'lib*'): >@@ -328,6 +348,12 @@ def _env_update(makelinks, target_root, prev_mtimes, contents, env, > os.system(("cd / ; %s -elf -i " + \ > "-f '%svar/run/ld-elf.so.hints' '%setc/ld.so.conf'") % \ > (ldconfig, target_root, target_root)) >+ if ostype == "FreeBSD" and platform.machine() == "amd64": >+ writemsg_level(_(">>> Regenerating %svar/run/ld-elf32.so.hints...\n") % \ >+ target_root) >+ os.system(("cd / ; %s -32 -elf -i " + \ >+ "-f '%svar/run/ld-elf32.so.hints' '%setc/ld32.so.conf'") % \ >+ (ldconfig, target_root, target_root)) > > del specials["LDPATH"] >
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 510400
:
377004
|
377006
|
377016
| 377064 |
377068
|
469654
|
469656
|
469658