Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 264023 Details for
Bug 356467
New ebuild: app-admin/eselect-php-0.6.2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
eselect-php-0.6.2-prefix.patch
eselect-php-0.6.2-prefix.patch (text/plain), 3.65 KB, created by
Fabian Groffen
on 2011-02-27 09:48:06 UTC
(
hide
)
Description:
eselect-php-0.6.2-prefix.patch
Filename:
MIME Type:
Creator:
Fabian Groffen
Created:
2011-02-27 09:48:06 UTC
Size:
3.65 KB
patch
obsolete
>--- eselect-php-0.6.2 >+++ eselect-php-0.6.2 >@@ -17,7 +17,7 @@ > } > > find_targets() { >- for dir in $(get_libdir)/php*.*; do >+ for dir in "${EPREFIX}"$(get_libdir)/php*.*; do > t=$(basename $dir) > has $t $dirs || dirs="${dirs} $t" > done >@@ -26,42 +26,42 @@ > > find_targets_apache2() { > for target in $(find_targets); do >- [[ -f $(get_libdir)/$target/apache2/libphp5.so ]] && echo $target >+ [[ -f ${EPREFIX}$(get_libdir)/$target/apache2/libphp5.so ]] && echo $target > done > } > > find_targets_cli() { > for target in $(find_targets); do >- [[ -f $(get_libdir)/$target/bin/php ]] && echo $target >+ [[ -f ${EPREFIX}$(get_libdir)/$target/bin/php ]] && echo $target > done > } > > find_targets_fpm() { > for target in $(find_targets); do >- [[ -f $(get_libdir)/$target/bin/php-fpm ]] && echo $target >+ [[ -f ${EPREFIX}$(get_libdir)/$target/bin/php-fpm ]] && echo $target > done > } > > find_targets_cgi() { > for target in $(find_targets); do >- [[ -f $(get_libdir)/$target/bin/php-cgi ]] && echo $target >+ [[ -f ${EPREFIX}$(get_libdir)/$target/bin/php-cgi ]] && echo $target > done > } > > get_active_cli() { >- readlink -e /usr/bin/php | sed -ne "s:$(get_libdir)/\(php[0-9]\.[0-9][0-9]*\)/bin/php:\1:p" >+ readlink -e "${EPREFIX}"/usr/bin/php | sed -ne "s:$(get_libdir)/\(php[0-9]\.[0-9][0-9]*\)/bin/php:\1:p" > } > > get_active_cgi() { >- readlink -e /usr/bin/php-cgi | sed -ne "s:$(get_libdir)/\(php[0-9]\.[0-9]\)/bin/php-cgi:\1:p" >+ readlink -e "${EPREFIX}"/usr/bin/php-cgi | sed -ne "s:$(get_libdir)/\(php[0-9]\.[0-9]\)/bin/php-cgi:\1:p" > } > > get_active_fpm() { >- readlink -e /usr/bin/php-fpm | sed -ne "s:$(get_libdir)/\(php[0-9]\.[0-9]\)/bin/php-fpm:\1:p" >+ readlink -e "${EPREFIX}"/usr/bin/php-fpm | sed -ne "s:$(get_libdir)/\(php[0-9]\.[0-9]\)/bin/php-fpm:\1:p" > } > > get_active_apache2() { >- readlink -e $(get_libdir)/apache2/modules/libphp5.so | sed -ne "s:$(get_libdir)/\(php[0-9]\.[0-9]\)/apache2/libphp5.so:\1:p" >+ readlink -e "${EPREFIX}"$(get_libdir)/apache2/modules/libphp5.so | sed -ne "s:$(get_libdir)/\(php[0-9]\.[0-9]\)/apache2/libphp5.so:\1:p" > } > > resolv_target() { >@@ -127,9 +127,9 @@ > set_apache2() { > local t=$(resolv_target apache2 $1) > [[ -z $t ]] && die -q "Bad target" >- ln -sf $(get_libdir)/$t/apache2/libphp5.so $(get_libdir)/apache2/modules/ || \ >+ ln -sf "${EPREFIX}"$(get_libdir)/$t/apache2/libphp5.so "${EPREFIX}"$(get_libdir)/apache2/modules/ || \ > die -q "Failed to set symlink for libphp5.so" >- echo "You have to run \`/etc/init.d/apache2 restart' for the changes to take effect" >+ echo "You have to run \`${EPREFIX}/etc/init.d/apache2 restart' for the changes to take effect" > } > > set_cli() { >@@ -137,7 +137,7 @@ > [[ -z $t ]] && die -q "Bad target" > local file > for file in php phpize php-config; do >- ln -sf $(get_libdir)/$t/bin/$file /usr/bin/$file || \ >+ ln -sf "${EPREFIX}"$(get_libdir)/$t/bin/$file "${EPREFIX}"/usr/bin/$file || \ > die -q "Failed to create symlink for ${file}" > done > } >@@ -146,16 +146,16 @@ > t=$(resolv_target cgi $1) > [[ -z $t ]] && die -q "Bad target" > local file >- ln -sf $(get_libdir)/$t/bin/php-cgi /usr/bin/php-cgi || \ >+ ln -sf "${EPREFIX}"$(get_libdir)/$t/bin/php-cgi "${EPREFIX}"/usr/bin/php-cgi || \ > die -q "Failed to create symlink for php-cgi" > } > > set_fpm() { > local t=$(resolv_target fpm $1) > [[ -z $t ]] && die -q "Bad target" >- ln -sf $(get_libdir)/$t/bin/php-fpm /usr/bin/php-fpm || \ >+ ln -sf "${EPREFIX}"$(get_libdir)/$t/bin/php-fpm "${EPREFIX}"/usr/bin/php-fpm || \ > die -q "Failed to create symlink for the php-fpm binary" >- echo "You have to run \`/etc/init.d/php-fpm restart' for the changes to take effect" >+ echo "You have to run \`${EPREFIX}/etc/init.d/php-fpm restart' for the changes to take effect" > } > ## set action >
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 356467
:
263831
|
263833
|
263835
|
263951
|
263953
| 264023 |
290567
|
290569