Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135999 - [MFO] Expand php-toolkit capabilities and fix it up
Summary: [MFO] Expand php-toolkit capabilities and fix it up
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: PHP Bugs
URL: http://longitekk.homelinux.net/GPEP_0...
Whiteboard:
Keywords:
: 145660 191952 (view as bug list)
Depends on: 123383
Blocks:
  Show dependency tree
 
Reported: 2006-06-07 14:37 UTC by Luca Longinotti (RETIRED)
Modified: 2010-09-18 11:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
php-updater bash script (php-updater,543 bytes, text/plain)
2006-08-31 06:19 UTC, Patrick Avery
Details
php-rebuild bash script (php-updater,816 bytes, text/plain)
2006-08-31 10:47 UTC, Patrick Avery
Details
Check for correct G_PHPVERSION (libsymlink.diff,368 bytes, patch)
2010-06-19 14:04 UTC, Matti Bickel (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Longinotti (RETIRED) gentoo-dev 2006-06-07 14:37:56 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-31 00:36:23 UTC
*** Bug 145660 has been marked as a duplicate of this bug. ***
Comment 2 Patrick Avery 2006-08-31 06:19:02 UTC
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
Comment 3 Patrick Avery 2006-08-31 10:47:52 UTC
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 :-)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-09-10 10:04:21 UTC
*** Bug 191952 has been marked as a duplicate of this bug. ***
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2009-08-23 10:22:29 UTC
The URL is no longer accessible (2009-08-23). What's the status of this bug? Any plans to move this forward?
Comment 6 Matti Bickel (RETIRED) gentoo-dev 2010-06-19 11:24:15 UTC
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.
Comment 7 Matti Bickel (RETIRED) gentoo-dev 2010-06-19 14:04:08 UTC
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.
Comment 8 Matti Bickel (RETIRED) gentoo-dev 2010-09-18 11:16:51 UTC
All future work will go into an eselect module for php, currently available from the php overlay (layman -a php)