Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 318544 Details for
Bug 413447
EAPI change and Prefix support for app-admin/eselect-boost-0.4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
boost.eselect-0.4.patch
eselect-boost.patch (text/plain), 6.53 KB, created by
Fabian Groffen
on 2012-07-18 17:34:18 UTC
(
hide
)
Description:
boost.eselect-0.4.patch
Filename:
MIME Type:
Creator:
Fabian Groffen
Created:
2012-07-18 17:34:18 UTC
Size:
6.53 KB
patch
obsolete
>--- files/boost.eselect-0.4 >+++ files/boost.eselect-0.4 >@@ -17,7 +17,7 @@ > find_targets() { > local f > # use ls here to get a really empty set in case no boost is installed >- for d in $(ls -d "${ROOT}"/usr/share/boost-eselect/profiles/* 2>/dev/null) ; do >+ for d in $(ls -d "${EROOT}"/usr/share/boost-eselect/profiles/* 2>/dev/null) ; do > for p in "${d}"/* ; do > echo "boost-$(basename ${d})/$(basename ${p})" > done >@@ -28,7 +28,7 @@ > echo "Removing symlinks from old version" > > local link >- for link in "${ROOT}/usr/include/boost" "${ROOT}/usr/share/boostbook" ; do >+ for link in "${EROOT}/usr/include/boost" "${EROOT}/usr/share/boostbook" ; do > if [[ -L "${link}" ]] ; then > rm "${link}" || die -q "Couldn't remove \"${link}\" symlink" > else >@@ -36,15 +36,15 @@ > fi > done > >- pushd "${ROOT}/usr/%LIBDIR%" 1>/dev/null >+ pushd "${EROOT}/usr/%LIBDIR%" 1>/dev/null > local lib >- for lib in libboost_*.{a,so} ; do >- [[ -L "${lib}" && "${lib}" != libboost_*[[:digit:]]_[[:digit:]][[:digit:]]@(${_suffices}).@(a|so) ]] || continue >+ for lib in libboost_*.{a,so,dylib} ; do >+ [[ -L "${lib}" && "${lib}" != libboost_*[[:digit:]]_[[:digit:]][[:digit:]]@(${_suffices}).@(a|so|dylib) ]] || continue > rm "${lib}" || die -q "Unable to remove \"/usr/%LIBDIR%/${lib}\" symlink" > done > popd 1>/dev/null > >- pushd "${ROOT}"/usr/bin 1>/dev/null >+ pushd "${EROOT}"/usr/bin 1>/dev/null > local tool > for tool in ${_boost_tools} ; do > [[ -L "${tool}" ]] && ( rm "${tool}" || die -q "Unable to remove \"/usr/bin/${tool}\" symlink" ) >@@ -53,7 +53,7 @@ > > local python_module python_module_dir > for python_module in mpi.py mpi_debug.py ; do >- for python_module_dir in "${ROOT}"usr/%LIBDIR%/python*/site-packages ; do >+ for python_module_dir in "${EROOT}"usr/%LIBDIR%/python*/site-packages ; do > if [[ -e "${python_module_dir}/${python_module}" ]] ; then > rm "${python_module_dir}/${python_module}" || die -q "Unable to remove \"${python_module_dir}/${python_module}\"" > fi >@@ -62,7 +62,7 @@ > > # Deprecated code for older versions of Boost. > local mod="mpi.so" >- for moddir in "${ROOT}"/usr/%LIBDIR%/python*/site-packages ; do >+ for moddir in "${EROOT}"/usr/%LIBDIR%/python*/site-packages ; do > if [ -L "${moddir}/${mod}" ] ; then > rm "${moddir}/${mod}" || die -q "Unable to remove \"${moddir}/${mod}\" symlink" > else >@@ -74,13 +74,13 @@ > for python_module in ${python_modules} ; do > local target_python_module="${python_module#*:}" > local wrapper_python_module="${python_module%:*}" >- echo "from ${target_python_module} import *" > "${ROOT}${wrapper_python_module}" || die -q "Couldn't create wrapper python module \"$(pwd)/${wrapper_python_module}\"" >+ echo "from ${target_python_module} import *" > "${EROOT}${wrapper_python_module}" || die -q "Couldn't create wrapper python module \"$(pwd)/${wrapper_python_module}\"" > done > >- if [ -L "${ROOT}/etc/eselect/boost/active" ] ; then >- rm "${ROOT}/etc/eselect/boost/active" || die -q "Unable to remove \"${ROOT}/etc/eselect/boost/active\" symlink" >+ if [ -L "${EROOT}/etc/eselect/boost/active" ] ; then >+ rm "${EROOT}/etc/eselect/boost/active" || die -q "Unable to remove \"${EROOT}/etc/eselect/boost/active\" symlink" > else >- [[ -e "${ROOT}/etc/eselect/boost/active" ]] && die -q "\"${ROOT}/etc/eselect/boost/active\" exists and isn't a symlink" >+ [[ -e "${EROOT}/etc/eselect/boost/active" ]] && die -q "\"${EROOT}/etc/eselect/boost/active\" exists and isn't a symlink" > fi > } > >@@ -95,10 +95,10 @@ > version="${version/boost-}" > version="${version/./_}" > >- cd "${ROOT}/etc/eselect/boost" >- ln -s "${ROOT}/usr/share/boost-eselect/profiles/${target//boost-}" active || die -q "Couldn't create symlink active -> /usr/share/boost-eselect/profiles/${target//boost-}/${profile}" >+ cd "${EROOT}/etc/eselect/boost" >+ ln -s "${EROOT}/usr/share/boost-eselect/profiles/${target//boost-}" active || die -q "Couldn't create symlink active -> /usr/share/boost-eselect/profiles/${target//boost-}/${profile}" > >- . "${ROOT}/usr/share/boost-eselect/profiles/${target//boost-}" >+ . "${EROOT}/usr/share/boost-eselect/profiles/${target//boost-}" > > for t in ${dirs} ${bins} ${libs} ; do > [[ -e "${ROOT}${t}" ]] || die -q "\"${t}\" listed as target does not exist" >@@ -112,15 +112,15 @@ > done > > [[ -d "${ROOT}${includes}" ]] || die -q "\"${includes}\" does not exist" >- pushd "${ROOT}/usr/include" 1>/dev/null >- ln -s ${includes//\/usr\/include\/} boost || die -q "Couldn't create symlink \"/usr/include/boost\"" >+ pushd "${EROOT}/usr/include" 1>/dev/null >+ ln -s ${includes//"${EROOT}/usr/include/"} boost || die -q "Couldn't create symlink \"/usr/include/boost\"" > popd 1>/dev/null > > local python_module > for python_module in ${python_modules} ; do > local target_python_module="${python_module#*:}" > local wrapper_python_module="${python_module%:*}" >- echo "from ${target_python_module} import *" > "${ROOT}${wrapper_python_module}" || die -q "Couldn't create wrapper python module \"$(pwd)/${wrapper_python_module}\"" >+ echo "from ${target_python_module} import *" > "${EROOT}${wrapper_python_module}" || die -q "Couldn't create wrapper python module \"$(pwd)/${wrapper_python_module}\"" > done > > # Deprecated code for older versions of Boost. >@@ -144,8 +144,8 @@ > local include > > write_list_start "Current boost version:" >- if [[ -L "${ROOT}"/usr/include/boost ]] ; then >- include=$(basename $(dirname $(canonicalise "${ROOT}"/usr/include/boost ))) >+ if [[ -L "${EROOT}"/usr/include/boost ]] ; then >+ include=$(basename $(dirname $(canonicalise "${EROOT}"/usr/include/boost ))) > write_kv_list_entry "${include%/}" "" > else > write_kv_list_entry "(unset)" "" >@@ -163,8 +163,8 @@ > write_list_start "Available boost versions:" > if [[ -n "${targets[@]}" ]] ; then > local i >- local active_slot=$(canonicalise "${ROOT}/etc/eselect/boost/active") >- active_slot=${active_slot/"${ROOT}/usr/share/boost-eselect/profiles/"/boost-} >+ local active_slot=$(canonicalise "${EROOT}/etc/eselect/boost/active") >+ active_slot=${active_slot/"${EROOT}/usr/share/boost-eselect/profiles/"/boost-} > for (( i = 0 ; i < ${#targets[@]} ; i = i + 1 )) ; do > if [[ "${targets[${i}]}" == ${active_slot} ]] ; then > targets[${i}]="${targets[${i}]} $(highlight '*' )" >@@ -217,8 +217,8 @@ > profile="default" > > # extract profile if there's already one boost version selected >- if [ -L "${ROOT}"/etc/eselect/boost/active ] ; then >- profile=$(basename $(canonicalise "${ROOT}/etc/eselect/boost/active")) >+ if [ -L "${EROOT}"/etc/eselect/boost/active ] ; then >+ profile=$(basename $(canonicalise "${EROOT}/etc/eselect/boost/active")) > fi > > echo "Previously selected profile: ${profile}"
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 413447
:
309985
|
309987
|
312493
|
315273
| 318544