From: Michael Orlitzky Date: Thu, 28 Jan 2016 01:30:26 +0000 (-0500) Subject: dev-lang/php: call `eselect php cleanup` in pkg_postinst and pkg_postrm. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ef0386227889557b516d86fd395417b20aa5c4a1;p=gentoo.git dev-lang/php: call `eselect php cleanup` in pkg_postinst and pkg_postrm. We have two bugs (432962 and 572436) regarding stale eselect symlinks. The first issue is that removal of an old slot does not update the eselect-php symlinks to point to a newer slot. Thus, if a user upgrades slots and depcleans the old one, his symlinks (and thus PHP) are left broken until eselect-php is run manually. This is fixed by running `eselect php cleanup` in pkg_postrm, since removal of the old slot will trigger a cleanup (which updates the symlink). The second issue is that disabling a SAPI would leave behind a broken symlink. For example, if the "cgi" SAPI was once used but the user has reinstalled PHP with USE="-cgi", then the old eselect-php symlink for php-cgi would be left behind. This is fixed by running `eselect php cleanup` in pkg_postinst, since that will be triggered after the reinstall finishes, at which point the php-cgi symlink will be dead and thus get removed. Gentoo-Bug: 432962 Gentoo-Bug: 572436 Package-Manager: portage-2.2.26 --- diff --git a/dev-lang/php/php-5.6.17-r3.ebuild b/dev-lang/php/php-5.6.17-r4.ebuild similarity index 96% rename from dev-lang/php/php-5.6.17-r3.ebuild rename to dev-lang/php/php-5.6.17-r4.ebuild index 7d9db68573e1..4180cd623ef3 100644 --- a/dev-lang/php/php-5.6.17-r3.ebuild +++ b/dev-lang/php/php-5.6.17-r4.ebuild @@ -76,7 +76,7 @@ IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk +xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib" DEPEND=" - >=app-eselect/eselect-php-0.7.1-r3[apache2?,fpm?] + >=app-eselect/eselect-php-0.9.1[apache2?,fpm?] >=dev-libs/libpcre-8.32[unicode] apache2? ( || ( >=www-servers/apache-2.4[apache2_modules_unixd,threads=]