Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 613582 Details for
Bug 709422
app-eselect/eselect-php-0.9.4-r5: does not respect ROOT env variable
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
root-env-patch
root_env.patch (text/plain), 1.92 KB, created by
Stefan Langenmaier
on 2020-02-12 19:59:30 UTC
(
hide
)
Description:
root-env-patch
Filename:
MIME Type:
Creator:
Stefan Langenmaier
Created:
2020-02-12 19:59:30 UTC
Size:
1.92 KB
patch
obsolete
>From 9a15b02ad5466769a17a33c138bb2851122b0058 Mon Sep 17 00:00:00 2001 >From: Stefan Langenmaier <stefan.langenmaier@makandra.de> >Date: Wed, 12 Feb 2020 17:24:53 +0100 >Subject: [PATCH] respect ROOT env variable > >--- > src/php.eselect.in.in | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/src/php.eselect.in.in b/src/php.eselect.in.in >index 8e25f96..c5d906a 100644 >--- a/src/php.eselect.in.in >+++ b/src/php.eselect.in.in >@@ -113,11 +113,11 @@ sapi_active_link_dir() { > local sapi="${1}" > > case "${sapi}" in >- apache2) echo "@LIBDIR@/apache2/modules" ;; >- cli) echo "@BINDIR@" ;; >- fpm) echo "@BINDIR@" ;; >- cgi) echo "@BINDIR@" ;; >- phpdbg) echo "@BINDIR@" ;; >+ apache2) echo "${ROOT}@LIBDIR@/apache2/modules" ;; >+ cli) echo "${ROOT}@BINDIR@" ;; >+ fpm) echo "${ROOT}@BINDIR@" ;; >+ cgi) echo "${ROOT}@BINDIR@" ;; >+ phpdbg) echo "${ROOT}@BINDIR@" ;; > *) die "invalid SAPI name: ${sapi}" ;; > esac > } >@@ -249,7 +249,7 @@ find_targets() { > # TODO: when there aren't any phpX.Y directories, this returns > # "php*.*". This doesn't seem to bother our consumers, but it > # would probably be more polite to return nothing in that case. >- cd "@LIBDIR@" && echo php*.* >+ cd "${ROOT}@LIBDIR@" && echo php*.* > } > > # List all valid targets for the given SAPI. The list is obtained by >@@ -283,7 +283,7 @@ find_sapi_targets() { > esac > > for target in $(find_targets); do >- local pattern="@LIBDIR@/${target}/${pattern_suffix}" >+ local pattern="${ROOT}@LIBDIR@/${target}/${pattern_suffix}" > > for file in $pattern; do > [[ -f "${file}" ]] && echo "${target}" >@@ -338,7 +338,7 @@ get_sapi_active_target() { > # > write_mod_php_conf() { > local target="${1}" >- local conf_dir="@LOCALSTATEDIR@/lib/eselect-php" >+ local conf_dir="${ROOT}@LOCALSTATEDIR@/lib/eselect-php" > local conf_path="${conf_dir}/mod_php.conf" > > @MKDIR_P@ "${conf_dir}" || die "failed to create ${conf_dir}" >-- >2.17.1 > >
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 709422
:
613582
|
616552
|
616630