As was proposed in GPEP 01 (see URL), we need a tool to work on the symlinks to easily enable/disable PHP extensions. This tool would then reside in the app-admin/php-toolkit package. php-toolkit also needs to be tarballized (files put in a tarball instead of ${FILESDIR}). The already present tool php-select also needs to be made stricter, as atm it accepts invalid commands like "php-select -t php-devel php 6.0" and outputs "Okay", according to bugreports. Best regards, CHTEKK.
*** Bug 145660 has been marked as a duplicate of this bug. ***
Created attachment 95554 [details] php-updater bash script his is a simple attempt at revealing installed extensions. After it finds a suitable list of packages, it attempts to rebuild the associated packages (emerge --oneshot --verbose --ask). Script depends on: app-portage/portage-utils
Created attachment 95568 [details] php-rebuild bash script This is an updated version of my script that checks to make sure there are packages to remerge before it starts emerge :-)
*** Bug 191952 has been marked as a duplicate of this bug. ***
The URL is no longer accessible (2009-08-23). What's the status of this bug? Any plans to move this forward?
Well, let's move that forward. Patrick, I appreciate your efforts. After double checking with an expert in portage internals, I'll try to get this script or something equivalent included in php-toolkit. As for Luca's original request: I don't think enabling/disabling extensions is hard to do now. Symlinking should be common enough to you, if you're running a web-server and is actually more convenient than learning yet another tool's syntax. php-toolkit is currently tarballized and available via hoffie's devspace. The only thing remaining is php-select accepting invalid parameters, for which i hope to have a patch today.
Created attachment 235941 [details, diff] Check for correct G_PHPVERSION This returns the correct exit code if the selected php version is not installed on the machine. So php-select -t php-devel php 6.0 will now return 3 (G_NOTCOMPATIBLE) and output a warning. Known limitations: assumes directories are space-less and does not work with two-digit php versions. Both are no issues in the foreseeable future and can be easily corrected once they become a problem.
All future work will go into an eselect module for php, currently available from the php overlay (layman -a php)