Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/eselect-php:master commit in: src/
Date: Fri, 11 Dec 2015 00:40:36
Message-Id: 1449785708.0a14910c4b819a4200e37ab0ffbc7dc126451be6.mjo@gentoo
1 commit: 0a14910c4b819a4200e37ab0ffbc7dc126451be6
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 10 22:15:08 2015 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 10 22:15:08 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=0a14910c
7
8 Rename our active DSO symlink to mod_php.so.
9
10 Our DSO symlink used to be called libphp5.so or libphp7.so. This was
11 very recently changed to an unversioned libphp.so, but at that point,
12 we might as well just call it mod_php.so for consistency. Note that
13 our 70_mod_php5.conf currently points directly to the libphp file and
14 doesn't use the symlink, no matter its name. That will need to be
15 changed.
16
17 An unused cleanup() function was removed in the process, because the
18 function that is actually used was updated to remove the obsolete
19 libphp* symlinks.
20
21 src/php.eselect.in | 16 ++++++++--------
22 1 file changed, 8 insertions(+), 8 deletions(-)
23
24 diff --git a/src/php.eselect.in b/src/php.eselect.in
25 index d882095..e77b86a 100644
26 --- a/src/php.eselect.in
27 +++ b/src/php.eselect.in
28 @@ -34,6 +34,12 @@ cleanup_sapi() {
29 return
30 fi
31 fi
32 +
33 + if [[ "${1}" == "apache2" ]]; then
34 + rm -f "${EROOT}$(get_active_libdir)/apache2/modules/libphp[57].so" \
35 + || die "failed to remove old libphp.so symlink"
36 + fi
37 +
38 return 1
39 }
40
41 @@ -65,12 +71,6 @@ get_active_libdir() {
42 echo /usr/lib
43 }
44
45 -cleanup() {
46 - local target=$(find_targets_$1 | tail -n 1)
47 - [[ -z $target ]] &&
48 - set_$1 $target
49 -}
50 -
51 find_targets() {
52 local dir dirs libdir
53 for libdir in $(get_libdirs); do
54 @@ -170,11 +170,11 @@ get_active_fpm() {
55 #
56 # OUTPUT:
57 #
58 -# The path to our libphp.so symlink, which should (but is not
59 +# The path to our mod_php.so symlink, which should (but is not
60 # guaranteed to) point to a real apache DSO.
61 #
62 get_apache2_active_symlink_path() {
63 - echo "${EROOT}$(get_active_libdir)/apache2/modules/libphp.so"
64 + echo "${EROOT}$(get_active_libdir)/apache2/modules/mod_php.so"
65 }
66
67 # Find the active (selected) version of the apache2 module. Used to