Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 373726 Details for
Bug 506062
dev-util/pkgconf: multilib support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
multilib-build.eclass: rewrite symlinks in MULTILIB_CHOST_TOOLS
multilib-build-symlink-rewriting.patch (text/plain), 1.53 KB, created by
Michał Górny
on 2014-03-28 11:50:16 UTC
(
hide
)
Description:
multilib-build.eclass: rewrite symlinks in MULTILIB_CHOST_TOOLS
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2014-03-28 11:50:16 UTC
Size:
1.53 KB
patch
obsolete
>Index: multilib-build.eclass >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v >retrieving revision 1.27 >diff -u -B -r1.27 multilib-build.eclass >--- multilib-build.eclass 16 Jan 2014 20:05:12 -0000 1.27 >+++ multilib-build.eclass 28 Mar 2014 11:49:39 -0000 >@@ -244,8 +244,13 @@ > # and the native variant will be symlinked to the generic name. > # > # This variable has to be a bash array. Paths shall be relative to >-# installation root (${ED}), and name regular files. Recursive wrapping >-# is not supported. >+# installation root (${ED}), and name regular files or symbolic >+# links to regular files. Recursive wrapping is not supported. >+# >+# If symbolic link is passed, both symlink path and symlink target >+# will be changed. As a result, the symlink target is expected >+# to be wrapped as well (either by listing in MULTILIB_CHOST_TOOLS >+# or externally). > # > # Please note that tool wrapping is *discouraged*. It is preferred to > # install pkg-config files for each ABI, and require reverse >@@ -368,6 +373,18 @@ > local dir=${f%/*} > local fn=${f##*/} > >+ if [[ -L ${root}/${f} ]]; then >+ # rewrite the symlink target >+ local target=$(readlink "${root}/${f}") >+ local target_dir >+ local target_fn=${target##*/} >+ >+ [[ ${target} == */* ]] && target_dir=${target%/*} >+ >+ ln -f -s "${target_dir+${target_dir}/}${CHOST}-${target_fn}" \ >+ "${root}/${f}" || die >+ fi >+ > mv "${root}/${f}" "${root}/${dir}/${CHOST}-${fn}" || die > > # symlink the native one back
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 506062
: 373726 |
373728