Summary: | [MFO] Expand php-toolkit capabilities and fix it up | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Luca Longinotti (RETIRED) <chtekk> |
Component: | New packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | jens, mabi, pyromancer |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://longitekk.homelinux.net/GPEP_01.xhtml | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 123383 | ||
Bug Blocks: | |||
Attachments: |
php-updater bash script
php-rebuild bash script Check for correct G_PHPVERSION |
Description
Luca Longinotti (RETIRED)
![]() *** 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) |