Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/php/
Date: Fri, 27 Apr 2018 02:21:57
Message-Id: 1524795706.93d888fd008fb4a1f3b7295b772792a53559b298.grknight@gentoo
1 commit: 93d888fd008fb4a1f3b7295b772792a53559b298
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 27 02:21:20 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 27 02:21:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93d888fd
7
8 dev-lang/php: Drop old
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 dev-lang/php/Manifest | 2 -
13 dev-lang/php/php-7.1.14.ebuild | 723 ----------------------------------------
14 dev-lang/php/php-7.2.4.ebuild | 739 -----------------------------------------
15 3 files changed, 1464 deletions(-)
16
17 diff --git a/dev-lang/php/Manifest b/dev-lang/php/Manifest
18 index 810483fce8b..3db50e33cae 100644
19 --- a/dev-lang/php/Manifest
20 +++ b/dev-lang/php/Manifest
21 @@ -7,9 +7,7 @@ DIST php-7.0.28.tar.xz 11917836 BLAKE2B 8110b0486b0556abf2249d7cbdbd245249f32e23
22 DIST php-7.0.29.tar.xz 12400192 BLAKE2B 0bd1bd9450b87437e539ec5131cb4f7e4dbf76d5fd5212bdf34c4f022dd8f2d357e9a845d83b485d89469e20675c031bcf382a8ca348161dfd082d7a389ffcb2 SHA512 ea5a2fbcfc875dd2621e3f67038c1e00f43b53bc7079ae2127fcefbf116db0f32e34d4435f8211305402a4eccdaa5dfd6b96cf9416e68700f2c1f438d74a0af8
23 DIST php-7.0.30.tar.xz 12030228 BLAKE2B cc4c50d108fca68ee98b70a3007893d912d2343dd255faf52e41c1de04f590f427d9edad7b637177ccf1d9c62212ee6060baca13931c0aa14532df548ef159aa SHA512 1f0914ebda79247aa65ace63f6c8c4fcd850b21a82704f7b6482760259239cc5fee4cfd5aa2ed590b56822b4d69330ac472f46537e7f25d59e73ba63a48827c5
24 DIST php-7.1.13.tar.xz 12194780 BLAKE2B 0bac1cb3ec46cd4206d71b0d8ec3058fff455bc7e3febb33dcb8e14d5a8b16918d3e4679e0691b8ba29b95ab90be2a3dc3a73bade45c1ca4eaf692d6d3c2db3d SHA512 f5357ffcbcaab1ba03d70edc0f1329b530f9f9c7779ac57d6fd2bd0bb730162f8d107025e5ff66592077d1bf504ee6816ec0379f50ceb1fac36cea90b0fc4fa2
25 -DIST php-7.1.14.tar.xz 12198612 BLAKE2B 6ceb307423f07dafb75992b021d94259452fa4f08a9122c6d5e0da95dca1bcd88c7795effabefa7bddd06b398eca8093881a5ddb6d66fa91fc63a56c3a0fa4cc SHA512 7604e490aef95ae9c87bc4230491328c4cbcce42653234906885f9aa323f867ea941a7dbe80424aa4c4872392559ff5fa2acf1605c402055b6e428e6fe79ece6
26 DIST php-7.1.15.tar.xz 12201380 BLAKE2B 4387382daf3883962eb0e47d86c983a65c293e89aa71239977bb1c6fdaa99b3a76eacb71a30f134fcc47f4ca6fea95687f3e405c1ecc7a737c8cf40489e8e7a3 SHA512 2b23795ffcb9d741adafe8a1e01e6988bb86ce7c6380bdbe822f8f6485e217ed2e95a27daf5ba11f0bf10317f1e1f4e37068e40d0bf322de5625d38b430d37c2
27 DIST php-7.1.16.tar.xz 12211512 BLAKE2B bf242e2438b2dc363368a9ef4478349a291f483477ccedf988abd0fbb78a6f1b31e3b86dcb39ed9a9a8151674a8373ae77d8420e77efd6a2e05d5cfc778ed40f SHA512 98e96f06a4912cfa6926be2f292ce7120ca893c9b779b2efef4120c1df3580fa427cd58f5e4977edb01a0ae3b85660d6ca79b2bd79b6cd830cd77f6c6588b5ea
28 DIST php-7.1.17.tar.xz 12213536 BLAKE2B bf358bc4920d38f74e4bdbc53f4744274071b4cea057452bfafbbc5760eb1ae0878f8cc92cf5337b883e17769cc6a490d0e64d3969aa1769cec92bf14f9101ea SHA512 2ac81b5ec898d366dc60f2dae4b07094457c6b8b110615e0fcc3af1e680708ed0e9c89728b95e453110eec41198cb8a0416b4aeadc017d4a2b6bf25ce624cac1
29 -DIST php-7.2.4.tar.xz 12031892 BLAKE2B f76b3ccbfed4d309639ac5e35a12aa70a194f8cecde98634d7bff9123eb45ff3a4f0b3297149a44357bbc3287a9a3c1393d86b12bd53f38ff844db9498ee3452 SHA512 d1d0720f0d4bb28f7ce0ec7c859b14c1e74e9d0e7c73de6988d5ce737d7ccb7308c0a7a2651ee012c630be2cd53e6531505df0a03f0efbb6359176b446982244
30 DIST php-7.2.5.tar.xz 12034928 BLAKE2B 36c9ec413b5332a1ef138a5724fd1718f5a8ffa8873dbe27ae7b6ca9a55ecfa0de7f7504a20581edb48605c2afcc799784eb3d94e08236222f6de2094d1921d0 SHA512 1d49fc6e47d2e86d4fd62396e558965502f44cc8f72459bb0d406e157298cac67703b219837952da11122722d9fa8cb4cda8ef66ddf063cb063859db34110f58
31
32 diff --git a/dev-lang/php/php-7.1.14.ebuild b/dev-lang/php/php-7.1.14.ebuild
33 deleted file mode 100644
34 index ee42a9c8acb..00000000000
35 --- a/dev-lang/php/php-7.1.14.ebuild
36 +++ /dev/null
37 @@ -1,723 +0,0 @@
38 -# Copyright 1999-2018 Gentoo Foundation
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=6
42 -
43 -inherit flag-o-matic versionator systemd
44 -
45 -DESCRIPTION="The PHP language runtime engine"
46 -HOMEPAGE="https://secure.php.net/"
47 -SRC_URI="https://secure.php.net/distributions/${P}.tar.xz"
48 -
49 -LICENSE="PHP-3.01
50 - BSD
51 - Zend-2.0
52 - bcmath? ( LGPL-2.1+ )
53 - fpm? ( BSD-2 )
54 - gd? ( gd )
55 - unicode? ( BSD-2 LGPL-2.1 )"
56 -
57 -SLOT="$(get_version_component_range 1-2)"
58 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
59 -
60 -# We can build the following SAPIs in the given order
61 -SAPIS="embed cli cgi fpm apache2 phpdbg"
62 -
63 -# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
64 -IUSE="${IUSE}
65 - ${SAPIS/cli/+cli}
66 - threads"
67 -
68 -IUSE="${IUSE} acl bcmath berkdb bzip2 calendar cdb cjk
69 - coverage crypt +ctype curl debug
70 - enchant exif +fileinfo +filter firebird
71 - flatfile ftp gd gdbm gmp +hash +iconv imap inifile
72 - intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl
73 - mhash mssql mysql mysqli nls
74 - oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
75 - readline recode selinux +session session-mm sharedmem
76 - +simplexml snmp soap sockets spell sqlite ssl
77 - sysvipc systemd test tidy +tokenizer truetype unicode wddx webp
78 - +xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
79 -
80 -# The supported (that is, autodetected) versions of BDB are listed in
81 -# the ./configure script. Other versions *work*, but we need to stick to
82 -# the ones that can be detected to avoid a repeat of bug #564824.
83 -COMMON_DEPEND="
84 - >=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
85 - >=dev-libs/libpcre-8.32[unicode]
86 - acl? ( sys-apps/acl )
87 - apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
88 - <www-servers/apache-2.4[threads=] ) )
89 - berkdb? ( || ( sys-libs/db:5.3
90 - sys-libs/db:5.1
91 - sys-libs/db:4.8
92 - sys-libs/db:4.7
93 - sys-libs/db:4.6
94 - sys-libs/db:4.5 ) )
95 - bzip2? ( app-arch/bzip2:0= )
96 - cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
97 - coverage? ( dev-util/lcov )
98 - crypt? ( >=dev-libs/libmcrypt-2.4 )
99 - curl? ( >=net-misc/curl-7.10.5 )
100 - enchant? ( app-text/enchant )
101 - firebird? ( dev-db/firebird )
102 - gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
103 - gdbm? ( >=sys-libs/gdbm-1.8.0:0= )
104 - gmp? ( dev-libs/gmp:0= )
105 - iconv? ( virtual/libiconv )
106 - imap? ( virtual/imap-c-client[kerberos=,ssl=] )
107 - intl? ( dev-libs/icu:= )
108 - iodbc? ( dev-db/libiodbc )
109 - kerberos? ( virtual/krb5 )
110 - ldap? ( >=net-nds/openldap-1.2.11 )
111 - ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
112 - libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
113 - mssql? ( dev-db/freetds[mssql] )
114 - nls? ( sys-devel/gettext )
115 - oci8-instant-client? ( dev-db/oracle-instantclient-basic )
116 - odbc? ( >=dev-db/unixODBC-1.8.13 )
117 - postgres? ( dev-db/postgresql:* )
118 - qdbm? ( dev-db/qdbm )
119 - readline? ( sys-libs/readline:0= )
120 - recode? ( app-text/recode )
121 - session-mm? ( dev-libs/mm )
122 - simplexml? ( >=dev-libs/libxml2-2.6.8 )
123 - snmp? ( >=net-analyzer/net-snmp-5.2 )
124 - soap? ( >=dev-libs/libxml2-2.6.8 )
125 - spell? ( >=app-text/aspell-0.50 )
126 - sqlite? ( >=dev-db/sqlite-3.7.6.3 )
127 - ssl? (
128 - !libressl? ( dev-libs/openssl:0= )
129 - libressl? ( dev-libs/libressl:0= )
130 - )
131 - tidy? ( || ( app-text/tidy-html5 app-text/htmltidy ) )
132 - truetype? ( =media-libs/freetype-2* )
133 - unicode? ( dev-libs/oniguruma:= )
134 - wddx? ( >=dev-libs/libxml2-2.6.8 )
135 - webp? ( media-libs/libwebp:0= )
136 - xml? ( >=dev-libs/libxml2-2.6.8 )
137 - xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
138 - xmlreader? ( >=dev-libs/libxml2-2.6.8 )
139 - xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
140 - xpm? ( x11-libs/libXpm )
141 - xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
142 - zip? ( sys-libs/zlib:0= )
143 - zlib? ( sys-libs/zlib:0= )
144 -"
145 -
146 -RDEPEND="${COMMON_DEPEND}
147 - virtual/mta
148 - fpm? (
149 - selinux? ( sec-policy/selinux-phpfpm )
150 - systemd? ( sys-apps/systemd ) )"
151 -
152 -# Bison isn't actually needed when building from a release tarball
153 -# However, the configure script will warn if it's absent or if you
154 -# have an incompatible version installed. See bug 593278.
155 -DEPEND="${COMMON_DEPEND}
156 - app-arch/xz-utils
157 - >=sys-devel/bison-3.0.1"
158 -
159 -# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
160 -REQUIRED_USE="
161 - || ( cli cgi fpm apache2 embed phpdbg )
162 - cli? ( ^^ ( readline libedit ) )
163 - truetype? ( gd )
164 - webp? ( gd )
165 - cjk? ( gd )
166 - exif? ( gd )
167 - xpm? ( gd )
168 - gd? ( zlib )
169 - simplexml? ( xml )
170 - soap? ( xml )
171 - wddx? ( xml )
172 - xmlrpc? ( || ( xml iconv ) )
173 - xmlreader? ( xml )
174 - xslt? ( xml )
175 - ldap-sasl? ( ldap )
176 - mhash? ( hash )
177 - phar? ( hash )
178 - qdbm? ( !gdbm )
179 - readline? ( !libedit )
180 - recode? ( !imap !mysqli !mysql )
181 - session-mm? ( session !threads )
182 - mysql? ( || ( mysqli pdo ) )
183 -"
184 -
185 -PATCHES=( "${FILESDIR}/mbstring-oniguruma-6.8.patch" )
186 -
187 -PHP_MV="$(get_major_version)"
188 -
189 -php_install_ini() {
190 - local phpsapi="${1}"
191 -
192 - # work out where we are installing the ini file
193 - php_set_ini_dir "${phpsapi}"
194 -
195 - # Always install the production INI file, bug 611214.
196 - local phpinisrc="php.ini-production-${phpsapi}"
197 - cp php.ini-production "${phpinisrc}" || die
198 -
199 - # default to /tmp for save_path, bug #282768
200 - sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}" || die
201 -
202 - # Set the extension dir
203 - sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" \
204 - -i "${phpinisrc}" || die
205 -
206 - # Set the include path to point to where we want to find PEAR packages
207 - sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" || die
208 -
209 - dodir "${PHP_INI_DIR#${EPREFIX}}"
210 - insinto "${PHP_INI_DIR#${EPREFIX}}"
211 - newins "${phpinisrc}" php.ini
212 -
213 - elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
214 - elog
215 -
216 - dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
217 - dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
218 -
219 - if use opcache; then
220 - elog "Adding opcache to $PHP_EXT_INI_DIR"
221 - echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
222 - "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
223 - dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" \
224 - "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
225 - fi
226 -
227 - # SAPI-specific handling
228 - if [[ "${sapi}" == "fpm" ]] ; then
229 - einfo "Installing FPM config files php-fpm.conf and www.conf"
230 - insinto "${PHP_INI_DIR#${EPREFIX}}"
231 - doins sapi/fpm/php-fpm.conf
232 - insinto "${PHP_INI_DIR#${EPREFIX}}/fpm.d"
233 - doins sapi/fpm/www.conf
234 - fi
235 -
236 - dodoc php.ini-{development,production}
237 -}
238 -
239 -php_set_ini_dir() {
240 - PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
241 - PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
242 - PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
243 -}
244 -
245 -src_prepare() {
246 - default
247 -
248 - # In php-7.x, the FPM pool configuration files have been split off
249 - # of the main config. By default the pool config files go in
250 - # e.g. /etc/php-fpm.d, which isn't slotted. So here we move the
251 - # include directory to a subdirectory "fpm.d" of $PHP_INI_DIR. Later
252 - # we'll install the pool configuration file "www.conf" there.
253 - php_set_ini_dir fpm
254 - sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
255 - sapi/fpm/php-fpm.conf.in \
256 - || die 'failed to move the include directory in php-fpm.conf'
257 -}
258 -
259 -src_configure() {
260 - addpredict /usr/share/snmp/mibs/.index
261 - addpredict /var/lib/net-snmp/mib_indexes
262 -
263 - PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
264 -
265 - # The php-fpm config file wants localstatedir to be ${EPREFIX}/var
266 - # and not the Gentoo default ${EPREFIX}/var/lib. See bug 572002.
267 - local our_conf=(
268 - --prefix="${PHP_DESTDIR}"
269 - --mandir="${PHP_DESTDIR}/man"
270 - --infodir="${PHP_DESTDIR}/info"
271 - --libdir="${PHP_DESTDIR}/lib"
272 - --with-libdir="$(get_libdir)"
273 - --localstatedir="${EPREFIX}/var"
274 - --without-pear
275 - $(use_enable threads maintainer-zts)
276 - )
277 -
278 - our_conf+=(
279 - $(use_with acl fpm-acl)
280 - $(use_enable bcmath bcmath)
281 - $(use_with bzip2 bz2 "${EPREFIX}/usr")
282 - $(use_enable calendar calendar)
283 - $(use_enable coverage gcov)
284 - $(use_enable ctype ctype)
285 - $(use_with curl curl "${EPREFIX}/usr")
286 - $(use_enable xml dom)
287 - $(use_with enchant enchant "${EPREFIX}/usr")
288 - $(use_enable exif exif)
289 - $(use_enable fileinfo fileinfo)
290 - $(use_enable filter filter)
291 - $(use_enable ftp ftp)
292 - $(use_with nls gettext "${EPREFIX}/usr")
293 - $(use_with gmp gmp "${EPREFIX}/usr")
294 - $(use_enable hash hash)
295 - $(use_with mhash mhash "${EPREFIX}/usr")
296 - $(use_with iconv iconv \
297 - $(use elibc_glibc || use elibc_musl || use elibc_FreeBSD || echo "${EPREFIX}/usr"))
298 - $(use_enable intl intl)
299 - $(use_enable ipv6 ipv6)
300 - $(use_enable json json)
301 - $(use_with kerberos kerberos "${EPREFIX}/usr")
302 - $(use_enable xml libxml)
303 - $(use_with xml libxml-dir "${EPREFIX}/usr")
304 - $(use_enable unicode mbstring)
305 - $(use_with crypt mcrypt "${EPREFIX}/usr")
306 - $(use_with unicode onig "${EPREFIX}/usr")
307 - $(use_with ssl openssl "${EPREFIX}/usr")
308 - $(use_with ssl openssl-dir "${EPREFIX}/usr")
309 - $(use_enable pcntl pcntl)
310 - $(use_enable phar phar)
311 - $(use_enable pdo pdo)
312 - $(use_enable opcache opcache)
313 - $(use_with postgres pgsql "${EPREFIX}/usr")
314 - $(use_enable posix posix)
315 - $(use_with spell pspell "${EPREFIX}/usr")
316 - $(use_with recode recode "${EPREFIX}/usr")
317 - $(use_enable simplexml simplexml)
318 - $(use_enable sharedmem shmop)
319 - $(use_with snmp snmp "${EPREFIX}/usr")
320 - $(use_enable soap soap)
321 - $(use_enable sockets sockets)
322 - $(use_with sqlite sqlite3 "${EPREFIX}/usr")
323 - $(use_enable sysvipc sysvmsg)
324 - $(use_enable sysvipc sysvsem)
325 - $(use_enable sysvipc sysvshm)
326 - $(use_with systemd fpm-systemd)
327 - $(use_with tidy tidy "${EPREFIX}/usr")
328 - $(use_enable tokenizer tokenizer)
329 - $(use_enable wddx wddx)
330 - $(use_enable xml xml)
331 - $(use_enable xmlreader xmlreader)
332 - $(use_enable xmlwriter xmlwriter)
333 - $(use_with xmlrpc xmlrpc)
334 - $(use_with xslt xsl "${EPREFIX}/usr")
335 - $(use_enable zip zip)
336 - $(use_with zlib zlib "${EPREFIX}/usr")
337 - $(use_enable debug debug)
338 - )
339 -
340 - # DBA support
341 - if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
342 - || use qdbm ; then
343 - our_conf+=( "--enable-dba${shared}" )
344 - fi
345 -
346 - # DBA drivers support
347 - our_conf+=(
348 - $(use_with cdb cdb)
349 - $(use_with berkdb db4 "${EPREFIX}/usr")
350 - $(use_enable flatfile flatfile)
351 - $(use_with gdbm gdbm "${EPREFIX}/usr")
352 - $(use_enable inifile inifile)
353 - $(use_with qdbm qdbm "${EPREFIX}/usr")
354 - )
355 -
356 - # Support for the GD graphics library
357 - our_conf+=(
358 - $(use_with truetype freetype-dir "${EPREFIX}/usr")
359 - $(use_enable cjk gd-jis-conv)
360 - $(use_with gd jpeg-dir "${EPREFIX}/usr")
361 - $(use_with gd png-dir "${EPREFIX}/usr")
362 - $(use_with xpm xpm-dir "${EPREFIX}/usr")
363 - )
364 - if use webp; then
365 - our_conf+=( --with-webp-dir="${EPREFIX}/usr" )
366 - fi
367 - # enable gd last, so configure can pick up the previous settings
368 - our_conf+=( $(use_with gd gd) )
369 -
370 - # IMAP support
371 - if use imap ; then
372 - our_conf+=(
373 - $(use_with imap imap "${EPREFIX}/usr")
374 - $(use_with ssl imap-ssl "${EPREFIX}/usr")
375 - )
376 - fi
377 -
378 - # Interbase/firebird support
379 - our_conf+=( $(use_with firebird interbase "${EPREFIX}/usr") )
380 -
381 - # LDAP support
382 - if use ldap ; then
383 - our_conf+=(
384 - $(use_with ldap ldap "${EPREFIX}/usr")
385 - $(use_with ldap-sasl ldap-sasl "${EPREFIX}/usr")
386 - )
387 - fi
388 -
389 - # MySQL support
390 - local mysqllib="mysqlnd"
391 - local mysqlilib="mysqlnd"
392 -
393 - our_conf+=( $(use_with mysqli mysqli "${mysqlilib}") )
394 -
395 - local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
396 - if use mysql || use mysqli ; then
397 - our_conf+=( $(use_with mysql mysql-sock "${mysqlsock}") )
398 - fi
399 -
400 - # ODBC support
401 - our_conf+=(
402 - $(use_with odbc unixODBC "${EPREFIX}/usr")
403 - $(use_with iodbc iodbc "${EPREFIX}/usr")
404 - )
405 -
406 - # Oracle support
407 - our_conf+=( $(use_with oci8-instant-client oci8) )
408 -
409 - # PDO support
410 - if use pdo ; then
411 - our_conf+=(
412 - $(use_with mssql pdo-dblib "${EPREFIX}/usr")
413 - $(use_with mysql pdo-mysql "${mysqllib}")
414 - $(use_with postgres pdo-pgsql)
415 - $(use_with sqlite pdo-sqlite "${EPREFIX}/usr")
416 - $(use_with firebird pdo-firebird "${EPREFIX}/usr")
417 - $(use_with odbc pdo-odbc "unixODBC,${EPREFIX}/usr")
418 - $(use_with oci8-instant-client pdo-oci)
419 - )
420 - fi
421 -
422 - # readline/libedit support
423 - our_conf+=(
424 - $(use_with readline readline "${EPREFIX}/usr")
425 - $(use_with libedit libedit "${EPREFIX}/usr")
426 - )
427 -
428 - # Session support
429 - if use session ; then
430 - our_conf+=( $(use_with session-mm mm "${EPREFIX}/usr") )
431 - else
432 - our_conf+=( $(use_enable session session) )
433 - fi
434 -
435 - # Use pic for shared modules such as apache2's mod_php
436 - our_conf+=( --with-pic )
437 -
438 - # we use the system copy of pcre
439 - # --with-pcre-regex affects ext/pcre
440 - # --with-pcre-dir affects ext/filter and ext/zip
441 - our_conf+=(
442 - --with-pcre-regex="${EPREFIX}/usr"
443 - --with-pcre-dir="${EPREFIX}/usr"
444 - )
445 -
446 - # Catch CFLAGS problems
447 - # Fixes bug #14067.
448 - # Changed order to run it in reverse for bug #32022 and #12021.
449 - replace-cpu-flags "k6*" "i586"
450 -
451 - # Cache the ./configure test results between SAPIs.
452 - our_conf+=( --cache-file="${T}/config.cache" )
453 -
454 - # Support user-passed configuration parameters
455 - our_conf+=( ${EXTRA_ECONF:-} )
456 -
457 - # Support the Apache2 extras, they must be set globally for all
458 - # SAPIs to work correctly, especially for external PHP extensions
459 -
460 - mkdir -p "${WORKDIR}/sapis-build" || die
461 - for one_sapi in $SAPIS ; do
462 - use "${one_sapi}" || continue
463 - php_set_ini_dir "${one_sapi}"
464 -
465 - # The BUILD_DIR variable is used to determine where to output
466 - # the files that autotools creates. This was all originally
467 - # based on the autotools-utils eclass.
468 - BUILD_DIR="${WORKDIR}/sapis-build/${one_sapi}"
469 - cp -a "${S}" "${BUILD_DIR}" || die
470 - cd "${BUILD_DIR}" || die
471 -
472 - local sapi_conf=(
473 - --with-config-file-path="${PHP_INI_DIR}"
474 - --with-config-file-scan-dir="${PHP_EXT_INI_DIR_ACTIVE}"
475 - )
476 -
477 - for sapi in $SAPIS ; do
478 - case "$sapi" in
479 - cli|cgi|embed|fpm|phpdbg)
480 - if [[ "${one_sapi}" == "${sapi}" ]] ; then
481 - sapi_conf+=( "--enable-${sapi}" )
482 - else
483 - sapi_conf+=( "--disable-${sapi}" )
484 - fi
485 - ;;
486 -
487 - apache2)
488 - if [[ "${one_sapi}" == "${sapi}" ]] ; then
489 - sapi_conf+=( --with-apxs2="${EPREFIX}/usr/bin/apxs" )
490 - else
491 - sapi_conf+=( --without-apxs2 )
492 - fi
493 - ;;
494 - esac
495 - done
496 -
497 - # Construct the $myeconfargs array by concatenating $our_conf
498 - # (the common args) and $sapi_conf (the SAPI-specific args).
499 - local myeconfargs=( "${our_conf[@]}" )
500 - myeconfargs+=( "${sapi_conf[@]}" )
501 -
502 - pushd "${BUILD_DIR}" > /dev/null || die
503 - econf "${myeconfargs[@]}"
504 - popd > /dev/null || die
505 - done
506 -}
507 -
508 -src_compile() {
509 - # snmp seems to run during src_compile, too (bug #324739)
510 - addpredict /usr/share/snmp/mibs/.index
511 - addpredict /var/lib/net-snmp/mib_indexes
512 -
513 - for sapi in ${SAPIS} ; do
514 - if use "${sapi}"; then
515 - cd "${WORKDIR}/sapis-build/$sapi" || \
516 - die "Failed to change dir to ${WORKDIR}/sapis-build/$1"
517 - emake
518 - fi
519 - done
520 -}
521 -
522 -src_install() {
523 - # see bug #324739 for what happens when we don't have that
524 - addpredict /usr/share/snmp/mibs/.index
525 -
526 - # grab the first SAPI that got built and install common files from there
527 - local first_sapi=""
528 - for sapi in $SAPIS ; do
529 - if use $sapi ; then
530 - first_sapi=$sapi
531 - break
532 - fi
533 - done
534 -
535 - # Makefile forgets to create this before trying to write to it...
536 - dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
537 -
538 - # Install php environment (without any sapis)
539 - cd "${WORKDIR}/sapis-build/$first_sapi" || die
540 - emake INSTALL_ROOT="${D}" \
541 - install-build install-headers install-programs
542 -
543 - local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
544 -
545 - # Create the directory where we'll put version-specific php scripts
546 - keepdir "/usr/share/php${PHP_MV}"
547 -
548 - local sapi="", file=""
549 - local sapi_list=""
550 -
551 - for sapi in ${SAPIS}; do
552 - if use "${sapi}" ; then
553 - einfo "Installing SAPI: ${sapi}"
554 - cd "${WORKDIR}/sapis-build/${sapi}" || die
555 -
556 - if [[ "${sapi}" == "apache2" ]] ; then
557 - # We're specifically not using emake install-sapi as libtool
558 - # may cause unnecessary relink failures (see bug #351266)
559 - insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
560 - newins ".libs/libphp${PHP_MV}$(get_libname)" \
561 - "libphp${PHP_MV}$(get_libname)"
562 - keepdir "/usr/$(get_libdir)/apache2/modules"
563 - else
564 - # needed each time, php_install_ini would reset it
565 - local dest="${PHP_DESTDIR#${EPREFIX}}"
566 - into "${dest}"
567 - case "$sapi" in
568 - cli)
569 - source="sapi/cli/php"
570 - ;;
571 - cgi)
572 - source="sapi/cgi/php-cgi"
573 - ;;
574 - fpm)
575 - source="sapi/fpm/php-fpm"
576 - ;;
577 - embed)
578 - source="libs/libphp${PHP_MV}$(get_libname)"
579 - ;;
580 - phpdbg)
581 - source="sapi/phpdbg/phpdbg"
582 - ;;
583 - *)
584 - die "unhandled sapi in src_install"
585 - ;;
586 - esac
587 -
588 - if [[ "${source}" == *"$(get_libname)" ]]; then
589 - dolib.so "${source}"
590 - else
591 - dobin "${source}"
592 - local name="$(basename ${source})"
593 - dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
594 - fi
595 - fi
596 -
597 - php_install_ini "${sapi}"
598 -
599 - # construct correct SAPI string for php-config
600 - # thanks to ferringb for the bash voodoo
601 - if [[ "${sapi}" == "apache2" ]]; then
602 - sapi_list="${sapi_list:+${sapi_list} }apache2handler"
603 - else
604 - sapi_list="${sapi_list:+${sapi_list} }${sapi}"
605 - fi
606 - fi
607 - done
608 -
609 - # Installing opcache module
610 - if use opcache ; then
611 - into "${PHP_DESTDIR#${EPREFIX}}"
612 - dolib.so "modules/opcache$(get_libname)"
613 - fi
614 -
615 - # Install env.d files
616 - newenvd "${FILESDIR}/20php5-envd" "20php${SLOT}"
617 - sed -e "s|/lib/|/$(get_libdir)/|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
618 - sed -e "s|php5|php${SLOT}|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
619 -
620 - # set php-config variable correctly (bug #278439)
621 - sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
622 - "${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config" || die
623 -
624 - if use fpm ; then
625 - if use systemd; then
626 - systemd_newunit "${FILESDIR}/php-fpm_at.service" \
627 - "php-fpm@${SLOT}.service"
628 - else
629 - systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" \
630 - "php-fpm@${SLOT}.service"
631 - fi
632 - fi
633 -}
634 -
635 -src_test() {
636 - echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
637 - PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
638 - if [[ ! -x "${PHP_BIN}" ]] ; then
639 - ewarn "Test phase requires USE=cli, skipping"
640 - return
641 - else
642 - export TEST_PHP_EXECUTABLE="${PHP_BIN}"
643 - fi
644 -
645 - if [[ -x "${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi" ]] ; then
646 - export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi"
647 - fi
648 -
649 - if [[ -x "${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" ]] ; then
650 - export TEST_PHPDBG_EXECUTABLE="${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg"
651 - fi
652 -
653 - REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d \
654 - "session.save_path=${T}" \
655 - "${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d \
656 - "session.save_path=${T}"
657 -
658 - for name in ${EXPECTED_TEST_FAILURES}; do
659 - mv "${name}.out" "${name}.out.orig" 2>/dev/null || die
660 - done
661 -
662 - local failed="$(find -name '*.out')"
663 - if [[ ${failed} != "" ]] ; then
664 - ewarn "The following test cases failed unexpectedly:"
665 - for name in ${failed}; do
666 - ewarn " ${name/.out/}"
667 - done
668 - else
669 - einfo "No unexpected test failures, all fine"
670 - fi
671 -
672 - if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
673 - local passed=""
674 - for name in ${EXPECTED_TEST_FAILURES}; do
675 - [[ -f "${name}.diff" ]] && continue
676 - passed="${passed} ${name}"
677 - done
678 - if [[ ${passed} != "" ]] ; then
679 - einfo "The following test cases passed unexpectedly:"
680 - for name in ${passed}; do
681 - ewarn " ${passed}"
682 - done
683 - else
684 - einfo "None of the known-to-fail tests passed, all fine"
685 - fi
686 - fi
687 -}
688 -
689 -pkg_postinst() {
690 - # Output some general info to the user
691 - if use apache2 ; then
692 - elog
693 - elog "To enable PHP in apache, you will need to add \"-D PHP\" to"
694 - elog "your apache2 command. OpenRC users can append that string to"
695 - elog "APACHE2_OPTS in /etc/conf.d/apache2."
696 - elog
697 - elog "The apache module configuration file 70_mod_php.conf is"
698 - elog "provided (and maintained) by eselect-php."
699 - elog
700 - fi
701 -
702 - # Create the symlinks for php
703 - for m in ${SAPIS}; do
704 - [[ ${m} == 'embed' ]] && continue;
705 - if use $m ; then
706 - local ci=$(eselect php show $m)
707 - if [[ -z $ci ]]; then
708 - eselect php set $m php${SLOT} || die
709 - einfo "Switched ${m} to use php:${SLOT}"
710 - einfo
711 - elif [[ $ci != "php${SLOT}" ]] ; then
712 - elog "To switch $m to use php:${SLOT}, run"
713 - elog " eselect php set $m php${SLOT}"
714 - elog
715 - fi
716 - fi
717 - done
718 -
719 - # Remove dead symlinks for SAPIs that were just disabled. For
720 - # example, if the user has the cgi SAPI enabled, then he has an
721 - # eselect-php symlink for it. If he later reinstalls PHP with
722 - # USE="-cgi", that symlink will break. This call to eselect is
723 - # supposed to remove that dead link per bug 572436.
724 - eselect php cleanup || die
725 -
726 - if ! has "php${SLOT/./-}" ${PHP_TARGETS}; then
727 - elog "To build extensions for this version of PHP, you will need to"
728 - elog "add php${SLOT/./-} to your PHP_TARGETS USE_EXPAND variable."
729 - elog
730 - fi
731 -
732 - # Warn about the removal of PHP_INI_VERSION if the user has it set.
733 - if [[ -n "${PHP_INI_VERSION}" ]]; then
734 - ewarn 'The PHP_INI_VERSION variable has been phased out. You may'
735 - ewarn 'remove it from your configuration at your convenience. See'
736 - ewarn
737 - ewarn ' https://bugs.gentoo.org/611214'
738 - ewarn
739 - ewarn 'for more information.'
740 - fi
741 -
742 - elog "For details on how version slotting works, please see"
743 - elog "the wiki:"
744 - elog
745 - elog " https://wiki.gentoo.org/wiki/PHP"
746 - elog
747 -}
748 -
749 -pkg_postrm() {
750 - # This serves two purposes. First, if we have just removed the last
751 - # installed version of PHP, then this will remove any dead symlinks
752 - # belonging to eselect-php. Second, if a user upgrades slots from
753 - # (say) 5.6 to 7.0 and depcleans the old slot, then this will update
754 - # his existing symlinks to point to the new 7.0 installation. The
755 - # latter is bug 432962.
756 - #
757 - # Note: the eselect-php package may not be installed at this point,
758 - # so we can't die() if this command fails.
759 - eselect php cleanup
760 -}
761
762 diff --git a/dev-lang/php/php-7.2.4.ebuild b/dev-lang/php/php-7.2.4.ebuild
763 deleted file mode 100644
764 index 9db1463e3a1..00000000000
765 --- a/dev-lang/php/php-7.2.4.ebuild
766 +++ /dev/null
767 @@ -1,739 +0,0 @@
768 -# Copyright 1999-2018 Gentoo Foundation
769 -# Distributed under the terms of the GNU General Public License v2
770 -
771 -EAPI=6
772 -
773 -inherit flag-o-matic versionator systemd
774 -
775 -DESCRIPTION="The PHP language runtime engine"
776 -HOMEPAGE="https://secure.php.net/"
777 -SRC_URI="https://secure.php.net/distributions/${P}.tar.xz"
778 -
779 -LICENSE="PHP-3.01
780 - BSD
781 - Zend-2.0
782 - bcmath? ( LGPL-2.1+ )
783 - fpm? ( BSD-2 )
784 - gd? ( gd )
785 - unicode? ( BSD-2 LGPL-2.1 )"
786 -
787 -SLOT="$(get_version_component_range 1-2)"
788 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
789 -
790 -# We can build the following SAPIs in the given order
791 -SAPIS="embed cli cgi fpm apache2 phpdbg"
792 -
793 -# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
794 -IUSE="${IUSE}
795 - ${SAPIS/cli/+cli}
796 - threads"
797 -
798 -IUSE="${IUSE} acl argon2 bcmath berkdb bzip2 calendar cdb cjk
799 - coverage +ctype curl debug
800 - enchant exif +fileinfo +filter firebird
801 - flatfile ftp gd gdbm gmp +hash +iconv imap inifile
802 - intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl lmdb
803 - mhash mssql mysql mysqli nls
804 - oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
805 - readline recode selinux +session session-mm sharedmem
806 - +simplexml snmp soap sockets sodium spell sqlite ssl
807 - sysvipc systemd test tidy +tokenizer tokyocabinet truetype unicode wddx webp
808 - +xml xmlreader xmlwriter xmlrpc xpm xslt zip zip-encryption zlib"
809 -
810 -# The supported (that is, autodetected) versions of BDB are listed in
811 -# the ./configure script. Other versions *work*, but we need to stick to
812 -# the ones that can be detected to avoid a repeat of bug #564824.
813 -COMMON_DEPEND="
814 - >=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
815 - >=dev-libs/libpcre-8.32[unicode]
816 - fpm? ( acl? ( sys-apps/acl ) )
817 - apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]
818 - <www-servers/apache-2.4[threads=] ) )
819 - argon2? ( app-crypt/argon2:= )
820 - berkdb? ( || ( sys-libs/db:5.3
821 - sys-libs/db:5.1
822 - sys-libs/db:4.8
823 - sys-libs/db:4.7
824 - sys-libs/db:4.6
825 - sys-libs/db:4.5 ) )
826 - bzip2? ( app-arch/bzip2:0= )
827 - cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
828 - coverage? ( dev-util/lcov )
829 - curl? ( >=net-misc/curl-7.10.5 )
830 - enchant? ( app-text/enchant )
831 - firebird? ( dev-db/firebird )
832 - gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
833 - gdbm? ( >=sys-libs/gdbm-1.8.0:0= )
834 - gmp? ( dev-libs/gmp:0= )
835 - iconv? ( virtual/libiconv )
836 - imap? ( virtual/imap-c-client[kerberos=,ssl=] )
837 - intl? ( dev-libs/icu:= )
838 - iodbc? ( dev-db/libiodbc )
839 - kerberos? ( virtual/krb5 )
840 - ldap? ( >=net-nds/openldap-1.2.11 )
841 - ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
842 - libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
843 - lmdb? ( dev-db/lmdb:= )
844 - mssql? ( dev-db/freetds[mssql] )
845 - nls? ( sys-devel/gettext )
846 - oci8-instant-client? ( dev-db/oracle-instantclient-basic )
847 - odbc? ( >=dev-db/unixODBC-1.8.13 )
848 - postgres? ( dev-db/postgresql:* )
849 - qdbm? ( dev-db/qdbm )
850 - readline? ( sys-libs/readline:0= )
851 - recode? ( app-text/recode )
852 - session-mm? ( dev-libs/mm )
853 - simplexml? ( >=dev-libs/libxml2-2.6.8 )
854 - snmp? ( >=net-analyzer/net-snmp-5.2 )
855 - soap? ( >=dev-libs/libxml2-2.6.8 )
856 - sodium? ( dev-libs/libsodium:= )
857 - spell? ( >=app-text/aspell-0.50 )
858 - sqlite? ( >=dev-db/sqlite-3.7.6.3 )
859 - ssl? (
860 - !libressl? ( dev-libs/openssl:0= )
861 - libressl? ( dev-libs/libressl:0= )
862 - )
863 - tidy? ( || ( app-text/tidy-html5 app-text/htmltidy ) )
864 - tokyocabinet? ( dev-db/tokyocabinet )
865 - truetype? ( =media-libs/freetype-2* )
866 - unicode? ( dev-libs/oniguruma:= )
867 - wddx? ( >=dev-libs/libxml2-2.6.8 )
868 - webp? ( media-libs/libwebp:0= )
869 - xml? ( >=dev-libs/libxml2-2.6.8 )
870 - xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
871 - xmlreader? ( >=dev-libs/libxml2-2.6.8 )
872 - xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
873 - xpm? ( x11-libs/libXpm )
874 - xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
875 - zip? ( sys-libs/zlib:0= )
876 - zip-encryption? ( >=dev-libs/libzip-1.2.0:= )
877 - zlib? ( sys-libs/zlib:0= )
878 -"
879 -
880 -RDEPEND="${COMMON_DEPEND}
881 - virtual/mta
882 - fpm? (
883 - selinux? ( sec-policy/selinux-phpfpm )
884 - systemd? ( sys-apps/systemd ) )"
885 -
886 -# Bison isn't actually needed when building from a release tarball
887 -# However, the configure script will warn if it's absent or if you
888 -# have an incompatible version installed. See bug 593278.
889 -DEPEND="${COMMON_DEPEND}
890 - app-arch/xz-utils
891 - >=sys-devel/bison-3.0.1"
892 -
893 -# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
894 -REQUIRED_USE="
895 - || ( cli cgi fpm apache2 embed phpdbg )
896 - cli? ( ^^ ( readline libedit ) )
897 - truetype? ( gd )
898 - webp? ( gd )
899 - cjk? ( gd )
900 - exif? ( gd )
901 - xpm? ( gd )
902 - gd? ( zlib )
903 - simplexml? ( xml )
904 - soap? ( xml )
905 - wddx? ( xml )
906 - xmlrpc? ( || ( xml iconv ) )
907 - xmlreader? ( xml )
908 - xslt? ( xml )
909 - ldap-sasl? ( ldap )
910 - mhash? ( hash )
911 - phar? ( hash )
912 - qdbm? ( !gdbm )
913 - readline? ( !libedit )
914 - recode? ( !imap !mysqli !mysql )
915 - session-mm? ( session !threads )
916 - mysql? ( || ( mysqli pdo ) )
917 - zip-encryption? ( zip )
918 -"
919 -
920 -PATCHES=( "${FILESDIR}/mbstring-oniguruma-6.8.patch" )
921 -
922 -PHP_MV="$(get_major_version)"
923 -
924 -php_install_ini() {
925 - local phpsapi="${1}"
926 -
927 - # work out where we are installing the ini file
928 - php_set_ini_dir "${phpsapi}"
929 -
930 - # Always install the production INI file, bug 611214.
931 - local phpinisrc="php.ini-production-${phpsapi}"
932 - cp php.ini-production "${phpinisrc}" || die
933 -
934 - # default to /tmp for save_path, bug #282768
935 - sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}" || die
936 -
937 - # Set the extension dir
938 - sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" \
939 - -i "${phpinisrc}" || die
940 -
941 - # Set the include path to point to where we want to find PEAR packages
942 - sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}" || die
943 -
944 - dodir "${PHP_INI_DIR#${EPREFIX}}"
945 - insinto "${PHP_INI_DIR#${EPREFIX}}"
946 - newins "${phpinisrc}" php.ini
947 -
948 - elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
949 - elog
950 -
951 - dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
952 - dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
953 -
954 - if use opcache; then
955 - elog "Adding opcache to $PHP_EXT_INI_DIR"
956 - echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
957 - "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
958 - dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" \
959 - "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
960 - fi
961 -
962 - # SAPI-specific handling
963 - if [[ "${sapi}" == "fpm" ]] ; then
964 - einfo "Installing FPM config files php-fpm.conf and www.conf"
965 - insinto "${PHP_INI_DIR#${EPREFIX}}"
966 - doins sapi/fpm/php-fpm.conf
967 - insinto "${PHP_INI_DIR#${EPREFIX}}/fpm.d"
968 - doins sapi/fpm/www.conf
969 - fi
970 -
971 - dodoc php.ini-{development,production}
972 -}
973 -
974 -php_set_ini_dir() {
975 - PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
976 - PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
977 - PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
978 -}
979 -
980 -src_prepare() {
981 - default
982 -
983 - # In php-7.x, the FPM pool configuration files have been split off
984 - # of the main config. By default the pool config files go in
985 - # e.g. /etc/php-fpm.d, which isn't slotted. So here we move the
986 - # include directory to a subdirectory "fpm.d" of $PHP_INI_DIR. Later
987 - # we'll install the pool configuration file "www.conf" there.
988 - php_set_ini_dir fpm
989 - sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
990 - sapi/fpm/php-fpm.conf.in \
991 - || die 'failed to move the include directory in php-fpm.conf'
992 -}
993 -
994 -src_configure() {
995 - addpredict /usr/share/snmp/mibs/.index
996 - addpredict /var/lib/net-snmp/mib_indexes
997 -
998 - PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
999 -
1000 - # The php-fpm config file wants localstatedir to be ${EPREFIX}/var
1001 - # and not the Gentoo default ${EPREFIX}/var/lib. See bug 572002.
1002 - local our_conf=(
1003 - --prefix="${PHP_DESTDIR}"
1004 - --mandir="${PHP_DESTDIR}/man"
1005 - --infodir="${PHP_DESTDIR}/info"
1006 - --libdir="${PHP_DESTDIR}/lib"
1007 - --with-libdir="$(get_libdir)"
1008 - --localstatedir="${EPREFIX}/var"
1009 - --without-pear
1010 - $(use_enable threads maintainer-zts)
1011 - )
1012 -
1013 - our_conf+=(
1014 - $(use_with argon2 password-argon2 "${EPREFIX}/usr")
1015 - $(use_enable bcmath bcmath)
1016 - $(use_with bzip2 bz2 "${EPREFIX}/usr")
1017 - $(use_enable calendar calendar)
1018 - $(use_enable coverage gcov)
1019 - $(use_enable ctype ctype)
1020 - $(use_with curl curl "${EPREFIX}/usr")
1021 - $(use_enable xml dom)
1022 - $(use_with enchant enchant "${EPREFIX}/usr")
1023 - $(use_enable exif exif)
1024 - $(use_enable fileinfo fileinfo)
1025 - $(use_enable filter filter)
1026 - $(use_enable ftp ftp)
1027 - $(use_with nls gettext "${EPREFIX}/usr")
1028 - $(use_with gmp gmp "${EPREFIX}/usr")
1029 - $(use_enable hash hash)
1030 - $(use_with mhash mhash "${EPREFIX}/usr")
1031 - $(use_with iconv iconv \
1032 - $(use elibc_glibc || use elibc_musl || use elibc_FreeBSD || echo "${EPREFIX}/usr"))
1033 - $(use_enable intl intl)
1034 - $(use_enable ipv6 ipv6)
1035 - $(use_enable json json)
1036 - $(use_with kerberos kerberos "${EPREFIX}/usr")
1037 - $(use_enable xml libxml)
1038 - $(use_with xml libxml-dir "${EPREFIX}/usr")
1039 - $(use_enable unicode mbstring)
1040 - $(use_with unicode onig "${EPREFIX}/usr")
1041 - $(use_with ssl openssl "${EPREFIX}/usr")
1042 - $(use_with ssl openssl-dir "${EPREFIX}/usr")
1043 - $(use_enable pcntl pcntl)
1044 - $(use_enable phar phar)
1045 - $(use_enable pdo pdo)
1046 - $(use_enable opcache opcache)
1047 - $(use_with postgres pgsql "${EPREFIX}/usr")
1048 - $(use_enable posix posix)
1049 - $(use_with spell pspell "${EPREFIX}/usr")
1050 - $(use_with recode recode "${EPREFIX}/usr")
1051 - $(use_enable simplexml simplexml)
1052 - $(use_enable sharedmem shmop)
1053 - $(use_with snmp snmp "${EPREFIX}/usr")
1054 - $(use_enable soap soap)
1055 - $(use_enable sockets sockets)
1056 - $(use_with sodium sodium "${EPREFIX}/usr")
1057 - $(use_with sqlite sqlite3 "${EPREFIX}/usr")
1058 - $(use_enable sysvipc sysvmsg)
1059 - $(use_enable sysvipc sysvsem)
1060 - $(use_enable sysvipc sysvshm)
1061 - $(use_with tidy tidy "${EPREFIX}/usr")
1062 - $(use_enable tokenizer tokenizer)
1063 - $(use_enable wddx wddx)
1064 - $(use_enable xml xml)
1065 - $(use_enable xmlreader xmlreader)
1066 - $(use_enable xmlwriter xmlwriter)
1067 - $(use_with xmlrpc xmlrpc)
1068 - $(use_with xslt xsl "${EPREFIX}/usr")
1069 - $(use_enable zip zip)
1070 - $(use_with zip-encryption libzip "${EPREFIX}/usr")
1071 - $(use_with zlib zlib "${EPREFIX}/usr")
1072 - $(use_enable debug debug)
1073 - )
1074 -
1075 - # DBA support
1076 - if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
1077 - || use qdbm || use lmdb || use tokyocabinet ; then
1078 - our_conf+=( "--enable-dba${shared}" )
1079 - fi
1080 -
1081 - # DBA drivers support
1082 - our_conf+=(
1083 - $(use_with cdb cdb)
1084 - $(use_with berkdb db4 "${EPREFIX}/usr")
1085 - $(use_enable flatfile flatfile)
1086 - $(use_with gdbm gdbm "${EPREFIX}/usr")
1087 - $(use_enable inifile inifile)
1088 - $(use_with qdbm qdbm "${EPREFIX}/usr")
1089 - $(use_with lmdb lmdb "${EPREFIX}/usr")
1090 - )
1091 -
1092 - # Support for the GD graphics library
1093 - our_conf+=(
1094 - $(use_with truetype freetype-dir "${EPREFIX}/usr")
1095 - $(use_enable cjk gd-jis-conv)
1096 - $(use_with gd jpeg-dir "${EPREFIX}/usr")
1097 - $(use_with gd png-dir "${EPREFIX}/usr")
1098 - $(use_with xpm xpm-dir "${EPREFIX}/usr")
1099 - )
1100 - if use webp; then
1101 - our_conf+=( --with-webp-dir="${EPREFIX}/usr" )
1102 - fi
1103 - # enable gd last, so configure can pick up the previous settings
1104 - our_conf+=( $(use_with gd gd) )
1105 -
1106 - # IMAP support
1107 - if use imap ; then
1108 - our_conf+=(
1109 - $(use_with imap imap "${EPREFIX}/usr")
1110 - $(use_with ssl imap-ssl "${EPREFIX}/usr")
1111 - )
1112 - fi
1113 -
1114 - # Interbase/firebird support
1115 - our_conf+=( $(use_with firebird interbase "${EPREFIX}/usr") )
1116 -
1117 - # LDAP support
1118 - if use ldap ; then
1119 - our_conf+=(
1120 - $(use_with ldap ldap "${EPREFIX}/usr")
1121 - $(use_with ldap-sasl ldap-sasl "${EPREFIX}/usr")
1122 - )
1123 - fi
1124 -
1125 - # MySQL support
1126 - local mysqllib="mysqlnd"
1127 - local mysqlilib="mysqlnd"
1128 -
1129 - our_conf+=( $(use_with mysqli mysqli "${mysqlilib}") )
1130 -
1131 - local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
1132 - if use mysql || use mysqli ; then
1133 - our_conf+=( $(use_with mysql mysql-sock "${mysqlsock}") )
1134 - fi
1135 -
1136 - # ODBC support
1137 - our_conf+=(
1138 - $(use_with odbc unixODBC "${EPREFIX}/usr")
1139 - $(use_with iodbc iodbc "${EPREFIX}/usr")
1140 - )
1141 -
1142 - # Oracle support
1143 - our_conf+=( $(use_with oci8-instant-client oci8) )
1144 -
1145 - # PDO support
1146 - if use pdo ; then
1147 - our_conf+=(
1148 - $(use_with mssql pdo-dblib "${EPREFIX}/usr")
1149 - $(use_with mysql pdo-mysql "${mysqllib}")
1150 - $(use_with postgres pdo-pgsql)
1151 - $(use_with sqlite pdo-sqlite "${EPREFIX}/usr")
1152 - $(use_with firebird pdo-firebird "${EPREFIX}/usr")
1153 - $(use_with odbc pdo-odbc "unixODBC,${EPREFIX}/usr")
1154 - $(use_with oci8-instant-client pdo-oci)
1155 - )
1156 - fi
1157 -
1158 - # readline/libedit support
1159 - our_conf+=(
1160 - $(use_with readline readline "${EPREFIX}/usr")
1161 - $(use_with libedit libedit "${EPREFIX}/usr")
1162 - )
1163 -
1164 - # Session support
1165 - if use session ; then
1166 - our_conf+=( $(use_with session-mm mm "${EPREFIX}/usr") )
1167 - else
1168 - our_conf+=( $(use_enable session session) )
1169 - fi
1170 -
1171 - # Use pic for shared modules such as apache2's mod_php
1172 - our_conf+=( --with-pic )
1173 -
1174 - # we use the system copy of pcre
1175 - # --with-pcre-regex affects ext/pcre
1176 - # --with-pcre-dir affects ext/filter and ext/zip
1177 - # --with-pcre-valgrind cannot be enabled with system pcre
1178 - # Many arches don't support pcre-jit
1179 - our_conf+=(
1180 - --with-pcre-regex="${EPREFIX}/usr"
1181 - --with-pcre-dir="${EPREFIX}/usr"
1182 - --without-pcre-valgrind
1183 - --without-pcre-jit
1184 - )
1185 -
1186 - # Catch CFLAGS problems
1187 - # Fixes bug #14067.
1188 - # Changed order to run it in reverse for bug #32022 and #12021.
1189 - replace-cpu-flags "k6*" "i586"
1190 -
1191 - # Cache the ./configure test results between SAPIs.
1192 - our_conf+=( --cache-file="${T}/config.cache" )
1193 -
1194 - # Support user-passed configuration parameters
1195 - our_conf+=( ${EXTRA_ECONF:-} )
1196 -
1197 - # Support the Apache2 extras, they must be set globally for all
1198 - # SAPIs to work correctly, especially for external PHP extensions
1199 -
1200 - mkdir -p "${WORKDIR}/sapis-build" || die
1201 - for one_sapi in $SAPIS ; do
1202 - use "${one_sapi}" || continue
1203 - php_set_ini_dir "${one_sapi}"
1204 -
1205 - # The BUILD_DIR variable is used to determine where to output
1206 - # the files that autotools creates. This was all originally
1207 - # based on the autotools-utils eclass.
1208 - BUILD_DIR="${WORKDIR}/sapis-build/${one_sapi}"
1209 - cp -a "${S}" "${BUILD_DIR}" || die
1210 - cd "${BUILD_DIR}" || die
1211 -
1212 - local sapi_conf=(
1213 - --with-config-file-path="${PHP_INI_DIR}"
1214 - --with-config-file-scan-dir="${PHP_EXT_INI_DIR_ACTIVE}"
1215 - )
1216 -
1217 - for sapi in $SAPIS ; do
1218 - case "$sapi" in
1219 - cli|cgi|embed|fpm|phpdbg)
1220 - if [[ "${one_sapi}" == "${sapi}" ]] ; then
1221 - sapi_conf+=( "--enable-${sapi}" )
1222 - if [[ "fpm" == "${sapi}" ]] ; then
1223 - sapi_conf+=(
1224 - $(use_with acl fpm-acl)
1225 - $(use_with systemd fpm-systemd)
1226 - )
1227 - fi
1228 - else
1229 - sapi_conf+=( "--disable-${sapi}" )
1230 - fi
1231 - ;;
1232 -
1233 - apache2)
1234 - if [[ "${one_sapi}" == "${sapi}" ]] ; then
1235 - sapi_conf+=( --with-apxs2="${EPREFIX}/usr/bin/apxs" )
1236 - else
1237 - sapi_conf+=( --without-apxs2 )
1238 - fi
1239 - ;;
1240 - esac
1241 - done
1242 -
1243 - # Construct the $myeconfargs array by concatenating $our_conf
1244 - # (the common args) and $sapi_conf (the SAPI-specific args).
1245 - local myeconfargs=( "${our_conf[@]}" )
1246 - myeconfargs+=( "${sapi_conf[@]}" )
1247 -
1248 - pushd "${BUILD_DIR}" > /dev/null || die
1249 - econf "${myeconfargs[@]}"
1250 - popd > /dev/null || die
1251 - done
1252 -}
1253 -
1254 -src_compile() {
1255 - # snmp seems to run during src_compile, too (bug #324739)
1256 - addpredict /usr/share/snmp/mibs/.index
1257 - addpredict /var/lib/net-snmp/mib_indexes
1258 -
1259 - for sapi in ${SAPIS} ; do
1260 - if use "${sapi}"; then
1261 - cd "${WORKDIR}/sapis-build/$sapi" || \
1262 - die "Failed to change dir to ${WORKDIR}/sapis-build/$1"
1263 - emake
1264 - fi
1265 - done
1266 -}
1267 -
1268 -src_install() {
1269 - # see bug #324739 for what happens when we don't have that
1270 - addpredict /usr/share/snmp/mibs/.index
1271 -
1272 - # grab the first SAPI that got built and install common files from there
1273 - local first_sapi=""
1274 - for sapi in $SAPIS ; do
1275 - if use $sapi ; then
1276 - first_sapi=$sapi
1277 - break
1278 - fi
1279 - done
1280 -
1281 - # Makefile forgets to create this before trying to write to it...
1282 - dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
1283 -
1284 - # Install php environment (without any sapis)
1285 - cd "${WORKDIR}/sapis-build/$first_sapi" || die
1286 - emake INSTALL_ROOT="${D}" \
1287 - install-build install-headers install-programs
1288 -
1289 - local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
1290 -
1291 - # Create the directory where we'll put version-specific php scripts
1292 - keepdir "/usr/share/php${PHP_MV}"
1293 -
1294 - local sapi="", file=""
1295 - local sapi_list=""
1296 -
1297 - for sapi in ${SAPIS}; do
1298 - if use "${sapi}" ; then
1299 - einfo "Installing SAPI: ${sapi}"
1300 - cd "${WORKDIR}/sapis-build/${sapi}" || die
1301 -
1302 - if [[ "${sapi}" == "apache2" ]] ; then
1303 - # We're specifically not using emake install-sapi as libtool
1304 - # may cause unnecessary relink failures (see bug #351266)
1305 - insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
1306 - newins ".libs/libphp${PHP_MV}$(get_libname)" \
1307 - "libphp${PHP_MV}$(get_libname)"
1308 - keepdir "/usr/$(get_libdir)/apache2/modules"
1309 - else
1310 - # needed each time, php_install_ini would reset it
1311 - local dest="${PHP_DESTDIR#${EPREFIX}}"
1312 - into "${dest}"
1313 - case "$sapi" in
1314 - cli)
1315 - source="sapi/cli/php"
1316 - ;;
1317 - cgi)
1318 - source="sapi/cgi/php-cgi"
1319 - ;;
1320 - fpm)
1321 - source="sapi/fpm/php-fpm"
1322 - ;;
1323 - embed)
1324 - source="libs/libphp${PHP_MV}$(get_libname)"
1325 - ;;
1326 - phpdbg)
1327 - source="sapi/phpdbg/phpdbg"
1328 - ;;
1329 - *)
1330 - die "unhandled sapi in src_install"
1331 - ;;
1332 - esac
1333 -
1334 - if [[ "${source}" == *"$(get_libname)" ]]; then
1335 - dolib.so "${source}"
1336 - else
1337 - dobin "${source}"
1338 - local name="$(basename ${source})"
1339 - dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
1340 - fi
1341 - fi
1342 -
1343 - php_install_ini "${sapi}"
1344 -
1345 - # construct correct SAPI string for php-config
1346 - # thanks to ferringb for the bash voodoo
1347 - if [[ "${sapi}" == "apache2" ]]; then
1348 - sapi_list="${sapi_list:+${sapi_list} }apache2handler"
1349 - else
1350 - sapi_list="${sapi_list:+${sapi_list} }${sapi}"
1351 - fi
1352 - fi
1353 - done
1354 -
1355 - # Installing opcache module
1356 - if use opcache ; then
1357 - into "${PHP_DESTDIR#${EPREFIX}}"
1358 - dolib.so "modules/opcache$(get_libname)"
1359 - fi
1360 -
1361 - # Install env.d files
1362 - newenvd "${FILESDIR}/20php5-envd" "20php${SLOT}"
1363 - sed -e "s|/lib/|/$(get_libdir)/|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
1364 - sed -e "s|php5|php${SLOT}|g" -i "${ED}/etc/env.d/20php${SLOT}" || die
1365 -
1366 - # set php-config variable correctly (bug #278439)
1367 - sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
1368 - "${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config" || die
1369 -
1370 - if use fpm ; then
1371 - if use systemd; then
1372 - systemd_newunit "${FILESDIR}/php-fpm_at.service" \
1373 - "php-fpm@${SLOT}.service"
1374 - else
1375 - systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" \
1376 - "php-fpm@${SLOT}.service"
1377 - fi
1378 - fi
1379 -}
1380 -
1381 -src_test() {
1382 - echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
1383 - PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
1384 - if [[ ! -x "${PHP_BIN}" ]] ; then
1385 - ewarn "Test phase requires USE=cli, skipping"
1386 - return
1387 - else
1388 - export TEST_PHP_EXECUTABLE="${PHP_BIN}"
1389 - fi
1390 -
1391 - if [[ -x "${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi" ]] ; then
1392 - export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis-build/cgi/sapi/cgi/php-cgi"
1393 - fi
1394 -
1395 - if [[ -x "${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg" ]] ; then
1396 - export TEST_PHPDBG_EXECUTABLE="${WORKDIR}/sapis-build/phpdbg/sapi/phpdbg/phpdbg"
1397 - fi
1398 -
1399 - REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d \
1400 - "session.save_path=${T}" \
1401 - "${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d \
1402 - "session.save_path=${T}"
1403 -
1404 - for name in ${EXPECTED_TEST_FAILURES}; do
1405 - mv "${name}.out" "${name}.out.orig" 2>/dev/null || die
1406 - done
1407 -
1408 - local failed="$(find -name '*.out')"
1409 - if [[ ${failed} != "" ]] ; then
1410 - ewarn "The following test cases failed unexpectedly:"
1411 - for name in ${failed}; do
1412 - ewarn " ${name/.out/}"
1413 - done
1414 - else
1415 - einfo "No unexpected test failures, all fine"
1416 - fi
1417 -
1418 - if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
1419 - local passed=""
1420 - for name in ${EXPECTED_TEST_FAILURES}; do
1421 - [[ -f "${name}.diff" ]] && continue
1422 - passed="${passed} ${name}"
1423 - done
1424 - if [[ ${passed} != "" ]] ; then
1425 - einfo "The following test cases passed unexpectedly:"
1426 - for name in ${passed}; do
1427 - ewarn " ${passed}"
1428 - done
1429 - else
1430 - einfo "None of the known-to-fail tests passed, all fine"
1431 - fi
1432 - fi
1433 -}
1434 -
1435 -pkg_postinst() {
1436 - # Output some general info to the user
1437 - if use apache2 ; then
1438 - elog
1439 - elog "To enable PHP in apache, you will need to add \"-D PHP\" to"
1440 - elog "your apache2 command. OpenRC users can append that string to"
1441 - elog "APACHE2_OPTS in /etc/conf.d/apache2."
1442 - elog
1443 - elog "The apache module configuration file 70_mod_php.conf is"
1444 - elog "provided (and maintained) by eselect-php."
1445 - elog
1446 - fi
1447 -
1448 - # Create the symlinks for php
1449 - for m in ${SAPIS}; do
1450 - [[ ${m} == 'embed' ]] && continue;
1451 - if use $m ; then
1452 - local ci=$(eselect php show $m)
1453 - if [[ -z $ci ]]; then
1454 - eselect php set $m php${SLOT} || die
1455 - einfo "Switched ${m} to use php:${SLOT}"
1456 - einfo
1457 - elif [[ $ci != "php${SLOT}" ]] ; then
1458 - elog "To switch $m to use php:${SLOT}, run"
1459 - elog " eselect php set $m php${SLOT}"
1460 - elog
1461 - fi
1462 - fi
1463 - done
1464 -
1465 - # Remove dead symlinks for SAPIs that were just disabled. For
1466 - # example, if the user has the cgi SAPI enabled, then he has an
1467 - # eselect-php symlink for it. If he later reinstalls PHP with
1468 - # USE="-cgi", that symlink will break. This call to eselect is
1469 - # supposed to remove that dead link per bug 572436.
1470 - eselect php cleanup || die
1471 -
1472 - if ! has "php${SLOT/./-}" ${PHP_TARGETS}; then
1473 - elog "To build extensions for this version of PHP, you will need to"
1474 - elog "add php${SLOT/./-} to your PHP_TARGETS USE_EXPAND variable."
1475 - elog
1476 - fi
1477 -
1478 - # Warn about the removal of PHP_INI_VERSION if the user has it set.
1479 - if [[ -n "${PHP_INI_VERSION}" ]]; then
1480 - ewarn 'The PHP_INI_VERSION variable has been phased out. You may'
1481 - ewarn 'remove it from your configuration at your convenience. See'
1482 - ewarn
1483 - ewarn ' https://bugs.gentoo.org/611214'
1484 - ewarn
1485 - ewarn 'for more information.'
1486 - fi
1487 -
1488 - elog "For details on how version slotting works, please see"
1489 - elog "the wiki:"
1490 - elog
1491 - elog " https://wiki.gentoo.org/wiki/PHP"
1492 - elog
1493 -}
1494 -
1495 -pkg_postrm() {
1496 - # This serves two purposes. First, if we have just removed the last
1497 - # installed version of PHP, then this will remove any dead symlinks
1498 - # belonging to eselect-php. Second, if a user upgrades slots from
1499 - # (say) 5.6 to 7.0 and depcleans the old slot, then this will update
1500 - # his existing symlinks to point to the new 7.0 installation. The
1501 - # latter is bug 432962.
1502 - #
1503 - # Note: the eselect-php package may not be installed at this point,
1504 - # so we can't die() if this command fails.
1505 - eselect php cleanup
1506 -}