The attached patches enable php-5.2.4 to be build with the prefixed portage. The patch should be applyable to 5.2 in general, but the other branches need to be patched separately. USE flags for testing: apache2 berkdb bzip2 cli crypt curl exif ftp gd gdbm gmp iconv ipv6 ncurses pcntl pcre pdo posix postgres readline reflection session soap sockets spell spl ssl sysvipc tokenizer truetype unicode xml xmlrpc zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -gd-external -hash -imap -inifile -interbase -iodbc -java-external -json -kerberos -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysql -mysqli -nls -oci8 -oci8-instant-client -odbc -pic -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -solid -sqlite -suhosin -sybase -sybase-ct -threads -tidy -wddx -xmlreader -xmlwriter -xpm -xsl -yaz -zip -zip-external objective: `emerge mapserver` test system: x86-macos
Created attachment 133375 [details, diff] The patch to the php 5.2.4 ebuild from the 14th September
Created attachment 133377 [details, diff] Patch to the PHP 5.2 eclass that manages most of the operations.
Created attachment 133428 [details, diff] depend.php.eclass patch to make it work with the prefixed portage
Created attachment 134066 [details, diff] Updated patch for both depend.php eclass as well as php5_2-sapi.eclass After some further testing and learning I think this patch does better.
Created attachment 135123 [details, diff] Updated patch to the dev-lang/php 5.2.4 ebuild from the 14th September Generated against a eapified ebuild.
the files in /usr/share/php-select look like this: G_APACHE_CONF=${EPREFIX}/etc/conf.d/apache that value will need to be expanded (@GENTOO_PORTAGE_EPREFIX@ & eprefixify)
The modi(In reply to comment #6) > the files in /usr/share/php-select look like this: > > G_APACHE_CONF=${EPREFIX}/etc/conf.d/apache > > that value will need to be expanded (@GENTOO_PORTAGE_EPREFIX@ & eprefixify) Your command applied to php-toolkit and it had been applied there a few days this comment. I'm going to have a look at php4 now. Is there anything else that prevents this modification from going into the main tree?
time.
(In reply to comment #7) > Your command applied to php-toolkit and it had been applied there a few days > this comment. I'm going to have a look at php4 now. Is there anything else that > prevents this modification from going into the main tree? Dirk: If you are still willing to work on this, then I will import it for you. php-5.2.6-r2 is the latest now. You have done some pretty valuable work and I would like to see it in the tree.
(In reply to comment #9) > If you are still willing to work on this, then I will import it for you. > php-5.2.6-r2 is the latest now. You have done some pretty valuable work and I > would like to see it in the tree. I'm using the PHP5 since then without problems. I also attempted to port PHP4, but I don't remember the outcome. Currently I don't have much time and since time I spend in the past for the project was largely ignored, my interest in contributions is limited currently for as long as the majority of contributions stays neither accepted nor rejected in the bugzilla. I will check this week whether I did any additional changes to my ebuild and update this ticket if there are any. Best regards, Dirk.
Created attachment 160950 [details, diff] Updated PHP 5.2 patch for PHP 5.2.5-r1
Created attachment 160951 [details, diff] Updated PHP 5.2 eclasses patch
Created attachment 160954 [details, diff] PHP 4.4.8 Not directly related to PHP 5.2, but since we're at it...
Created attachment 160956 [details, diff] PHP 4.4 eclass patch
Alrighty, it is on my TODO for this week. (Not by a working prefix env atm) Thanks for your work.
(In reply to comment #12) > Created an attachment (id=160951) [edit] > Updated PHP 5.2 eclasses patch > --- eclass/php5_2-sapi.eclass (revision 20203) +++ eclass/php5_2-sapi.eclass (working copy) This patch doesn't apply anymore. The changes are so drastic that I cannot guess what the correct course of action is. (In reply to comment #13) > Created an attachment (id=160954) [edit] > PHP 4.4.8 > > Not directly related to PHP 5.2, but since we're at it... Don't spend your time on this, it is being removed from Gentoo in Aug '08: # Christian Hoffmann <hoffie@gentoo.org> (19 Oct 2007) # masked for security reasons, bug 189172, removal scheduled for August # 2008 where upstream officially drops support completely =dev-lang/php-4*
Created attachment 182559 [details, diff] Fixes the gettext config-path of the php-extension. Emerge finds GNU gettext but stops with "Cannot find libintl.h". This patch checks if $EPREFIX is set and adds two more paths to the search path of the config file.
Comment on attachment 182559 [details, diff] Fixes the gettext config-path of the php-extension. To patch against rev.38149 of php5_sapi.eclass
Created attachment 182567 [details, diff] prepends "${EPREFIX}" to all extension-paths Prepends "${EPREFIX}" to all extension-paths. Is needed for MySQL-Support at least. I assumed this to apply to all extension-paths. To patch against rev.38149 php5_2-sapi.eclass.
Created attachment 182780 [details, diff] Adapts some more paths in the eclass.
Created attachment 182783 [details, diff] Prepends "${EPREFIX}" to all php-config-paths. Based on the changes of one of the older patches here. I ommitted to change the php4-paths, as it's not in the main tree any more.
Created attachment 182786 [details, diff] Extends the paths according to the techdocs. Simply extends ROOT to EROOT and D to ED but I think it needs some more tweaking.
Created attachment 182787 [details] Ebuild for php-5.2.8-r2. Default php-ebuild with some modifications made with the help of the nice people in #prefix and #bash. ;) With the previous patches applied to their corresponding eclasses, I successfully emerged php with the following USE-Flags on ~x86-macos: latin1 mysql mysqli apache2 xml xmlreader xmlwriter All may need some more tweaking, as these are my first prefix-changes to ebuilds.
Created attachment 182788 [details] php-toolkit needed for php. php-dependency. Only ecopied, no manual changes applied.
(In reply to comment #19) > Created an attachment (id=182567) [edit] > prepends "${EPREFIX}" to all extension-paths > > Prepends "${EPREFIX}" to all extension-paths. Is needed for MySQL-Support at > least. I assumed this to apply to all extension-paths. To patch against > rev.38149 php5_2-sapi.eclass. applied, thanks
(In reply to comment #20) > Created an attachment (id=182780) [edit] > Adapts some more paths in the eclass. applied, thanks
(In reply to comment #21) > Created an attachment (id=182783) [edit] > Prepends "${EPREFIX}" to all php-config-paths. > > Based on the changes of one of the older patches here. I ommitted to change the > php4-paths, as it's not in the main tree any more. applied, thanks
Created attachment 182790 [details, diff] Fixes the gettext config-path of the php-extension. Cleanup.
(In reply to comment #22) > Created an attachment (id=182786) [edit] > Extends the paths according to the techdocs. > > Simply extends ROOT to EROOT and D to ED but I think it needs some more > tweaking. I had a quick look and couldn't find anything obvious. Applied, thanks.
(In reply to comment #28) > Created an attachment (id=182790) [edit] > Fixes the gettext config-path of the php-extension. > > Cleanup. Your EPREFIX would never get expanded (only at runtime) due to single quotes. I made the fix unconditional and applied it. Thanks!
Created attachment 182793 [details, diff] Ebuild-diff for php-5.2.8-r2.
Created attachment 182799 [details, diff] Ebuild-diff for php-5.2.8-r2. Forgot to add ${EPREFIX} to the paths in the sed statements.
Created attachment 182801 [details, diff] Ebuild-diff for php-5.2.8-r2. Fixed typo, sry.
Created attachment 182803 [details, diff] Ebuild-diff for php-5.2.8-r2. Wrong diff before, sry!
Created attachment 182810 [details, diff] Ebuild-diff for php-5.2.8-r2. My apologies. This is the one and only working diff. No sugar added. Contains a lot of EPREFIXES. Use with caution. :D
(In reply to comment #35) > Created an attachment (id=182810) [edit] > Ebuild-diff for php-5.2.8-r2. > > My apologies. This is the one and only working diff. No sugar added. Contains a > lot of EPREFIXES. Use with caution. :D applied, thanks
Daniel-Antonios Zafirakis reports this bug can finally be closed. Thanks all very much!