Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195765 - php 5.2 branch ported to prefixed portage
Summary: php 5.2 branch ported to prefixed portage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High enhancement (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on: 195767
Blocks: 195780
  Show dependency tree
 
Reported: 2007-10-13 20:57 UTC by Dirk Tilger
Modified: 2009-02-22 21:40 UTC (History)
1 user (show)

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


Attachments
The patch to the php 5.2.4 ebuild from the 14th September (php-5.2.4_p20070914.ebuild.patch,4.44 KB, patch)
2007-10-13 20:58 UTC, Dirk Tilger
Details | Diff
Patch to the PHP 5.2 eclass that manages most of the operations. (php5_2-sapi.eclass.patch,9.54 KB, patch)
2007-10-13 20:59 UTC, Dirk Tilger
Details | Diff
depend.php.eclass patch to make it work with the prefixed portage (depend.php.eclass.patch,1.68 KB, patch)
2007-10-14 11:44 UTC, Dirk Tilger
Details | Diff
Updated patch for both depend.php eclass as well as php5_2-sapi.eclass (eclasses.patch,13.68 KB, patch)
2007-10-21 19:18 UTC, Dirk Tilger
Details | Diff
Updated patch to the dev-lang/php 5.2.4 ebuild from the 14th September (php-5.2.4_p20070914-r2.ebuild.patch,2.10 KB, patch)
2007-11-03 21:01 UTC, Dirk Tilger
Details | Diff
Updated PHP 5.2 patch for PHP 5.2.5-r1 (php-5.2.5-r1.ebuild,2.54 KB, patch)
2008-07-20 16:58 UTC, Dirk Tilger
Details | Diff
Updated PHP 5.2 eclasses patch (eclasses.1.diff,13.42 KB, patch)
2008-07-20 17:04 UTC, Dirk Tilger
Details | Diff
PHP 4.4.8 (php-4.4.8.ebuild.patch,2.53 KB, patch)
2008-07-20 17:06 UTC, Dirk Tilger
Details | Diff
PHP 4.4 eclass patch (php4_4-sapi.eclass.patch,4.20 KB, patch)
2008-07-20 17:08 UTC, Dirk Tilger
Details | Diff
Fixes the gettext config-path of the php-extension. (01-prefix_php5_2-sapi.eclass.patch,517 bytes, patch)
2009-02-19 17:15 UTC, nietonfir
Details | Diff
prepends "${EPREFIX}" to all extension-paths (02-php-extensions_php5_2-sapi.eclass.patch,5.96 KB, patch)
2009-02-19 17:22 UTC, nietonfir
Details | Diff
Adapts some more paths in the eclass. (03-prefix-misc_php5_2-sapi.eclass.patch,3.39 KB, patch)
2009-02-22 15:45 UTC, nietonfir
Details | Diff
Prepends "${EPREFIX}" to all php-config-paths. (01-prefix-php5_depend.php.eclass.patch,741 bytes, patch)
2009-02-22 15:48 UTC, nietonfir
Details | Diff
Extends the paths according to the techdocs. (01-prefix-phpconfutils.eclass.patch,711 bytes, patch)
2009-02-22 15:57 UTC, nietonfir
Details | Diff
Ebuild for php-5.2.8-r2. (php-5.2.8-r2.ebuild,16.38 KB, text/plain)
2009-02-22 16:09 UTC, nietonfir
Details
php-toolkit needed for php. (php-toolkit-1.0.1.ebuild,674 bytes, text/plain)
2009-02-22 16:11 UTC, nietonfir
Details
Fixes the gettext config-path of the php-extension. (01-prefix_php5_2-sapi.eclass.patch,490 bytes, patch)
2009-02-22 16:53 UTC, nietonfir
Details | Diff
Ebuild-diff for php-5.2.8-r2. (php-5.2.8-r2.ebuild.diff,4.81 KB, patch)
2009-02-22 17:20 UTC, nietonfir
Details | Diff
Ebuild-diff for php-5.2.8-r2. (php-5.2.8-r2.ebuild.diff,4.81 KB, patch)
2009-02-22 17:30 UTC, nietonfir
Details | Diff
Ebuild-diff for php-5.2.8-r2. (php-5.2.8-r2.ebuild.diff,4.81 KB, patch)
2009-02-22 17:33 UTC, nietonfir
Details | Diff
Ebuild-diff for php-5.2.8-r2. (php-5.2.8-r2.ebuild.diff,6.99 KB, patch)
2009-02-22 17:37 UTC, nietonfir
Details | Diff
Ebuild-diff for php-5.2.8-r2. (php-5.2.8-r2.ebuild.diff,7.74 KB, patch)
2009-02-22 20:03 UTC, nietonfir
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2007-10-13 20:57:35 UTC
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
Comment 1 Dirk Tilger 2007-10-13 20:58:45 UTC
Created attachment 133375 [details, diff]
The patch to the php 5.2.4 ebuild from the 14th September
Comment 2 Dirk Tilger 2007-10-13 20:59:24 UTC
Created attachment 133377 [details, diff]
Patch to the PHP 5.2 eclass that manages most of the operations.
Comment 3 Dirk Tilger 2007-10-14 11:44:15 UTC
Created attachment 133428 [details, diff]
depend.php.eclass patch to make it work with the prefixed portage
Comment 4 Dirk Tilger 2007-10-21 19:18:11 UTC
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.
Comment 5 Dirk Tilger 2007-11-03 21:01:38 UTC
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.
Comment 6 Elias Pipping (RETIRED) gentoo-dev 2007-11-07 21:00:47 UTC
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)
Comment 7 Dirk Tilger 2008-01-29 16:44:51 UTC
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?
Comment 8 Fabian Groffen gentoo-dev 2008-01-29 17:25:56 UTC
time.
Comment 9 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-15 21:38:06 UTC
(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.
Comment 10 Dirk Tilger 2008-07-20 06:41:16 UTC
(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.
Comment 11 Dirk Tilger 2008-07-20 16:58:29 UTC
Created attachment 160950 [details, diff]
Updated PHP 5.2 patch for PHP 5.2.5-r1
Comment 12 Dirk Tilger 2008-07-20 17:04:34 UTC
Created attachment 160951 [details, diff]
Updated PHP 5.2 eclasses patch
Comment 13 Dirk Tilger 2008-07-20 17:06:57 UTC
Created attachment 160954 [details, diff]
PHP 4.4.8

Not directly related to PHP 5.2, but since we're at it...
Comment 14 Dirk Tilger 2008-07-20 17:08:41 UTC
Created attachment 160956 [details, diff]
PHP 4.4 eclass patch
Comment 15 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-20 17:21:37 UTC
Alrighty, it is on my TODO for this week. (Not by a working prefix env atm)

Thanks for your work.
Comment 16 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-21 14:30:47 UTC
(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*
Comment 17 nietonfir 2009-02-19 17:15:24 UTC
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 18 nietonfir 2009-02-19 17:19:11 UTC
Comment on attachment 182559 [details, diff]
Fixes the gettext config-path of the php-extension.

To patch against rev.38149 of php5_sapi.eclass
Comment 19 nietonfir 2009-02-19 17:22:16 UTC
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.
Comment 20 nietonfir 2009-02-22 15:45:24 UTC
Created attachment 182780 [details, diff]
Adapts some more paths in the eclass.
Comment 21 nietonfir 2009-02-22 15:48:23 UTC
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.
Comment 22 nietonfir 2009-02-22 15:57:06 UTC
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.
Comment 23 nietonfir 2009-02-22 16:09:10 UTC
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.
Comment 24 nietonfir 2009-02-22 16:11:46 UTC
Created attachment 182788 [details]
php-toolkit needed for php.

php-dependency. Only ecopied, no manual changes applied.
Comment 25 Fabian Groffen gentoo-dev 2009-02-22 16:48:04 UTC
(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
Comment 26 Fabian Groffen gentoo-dev 2009-02-22 16:49:55 UTC
(In reply to comment #20)
> Created an attachment (id=182780) [edit]
> Adapts some more paths in the eclass.

applied, thanks
Comment 27 Fabian Groffen gentoo-dev 2009-02-22 16:52:55 UTC
(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
Comment 28 nietonfir 2009-02-22 16:53:16 UTC
Created attachment 182790 [details, diff]
Fixes the gettext config-path of the php-extension.

Cleanup.
Comment 29 Fabian Groffen gentoo-dev 2009-02-22 16:57:02 UTC
(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.
Comment 30 Fabian Groffen gentoo-dev 2009-02-22 17:01:45 UTC
(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!
Comment 31 nietonfir 2009-02-22 17:20:19 UTC
Created attachment 182793 [details, diff]
Ebuild-diff for php-5.2.8-r2.
Comment 32 nietonfir 2009-02-22 17:30:43 UTC
Created attachment 182799 [details, diff]
Ebuild-diff for php-5.2.8-r2.

Forgot to add ${EPREFIX} to the paths in the sed statements.
Comment 33 nietonfir 2009-02-22 17:33:28 UTC
Created attachment 182801 [details, diff]
Ebuild-diff for php-5.2.8-r2.

Fixed typo, sry.
Comment 34 nietonfir 2009-02-22 17:37:49 UTC
Created attachment 182803 [details, diff]
Ebuild-diff for php-5.2.8-r2.

Wrong diff before, sry!
Comment 35 nietonfir 2009-02-22 20:03:13 UTC
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
Comment 36 Fabian Groffen gentoo-dev 2009-02-22 21:03:39 UTC
(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
Comment 37 Fabian Groffen gentoo-dev 2009-02-22 21:40:50 UTC
Daniel-Antonios Zafirakis reports this bug can finally be closed.  Thanks all very much!