Gentoo Archives: gentoo-dev

From: Stuart Herbert <stuart@g.o>
To: gentoo-dev@l.g.o
Cc: gentoo-server@l.g.o
Subject: [gentoo-dev] News on PHP5 support on Gentoo
Date: Fri, 29 Jul 2005 00:17:20
Message-Id: 1122596001.20672.46.camel@mogheiden.gnqs.org
1 Hi,
2
3 I regularly get requests for news about PHP5 support on Gentoo. I've
4 been posting news regularly in my blog [5], but it's clear that many
5 Gentoo users still aren't aware about what we're doing.
6
7 I hope this email answers some of the common questions.
8
9 We're working to provide support for both PHP4 and PHP5 running on the
10 same box. At the moment, this work is available in a tarball overlay
11 [1], along with a number of supporting eselect modules [2],[3],[4]. The
12 overlay contains new dev-lang/php packages, and PHP extensions under
13 dev-php4/ and dev-php5 categories.
14
15 The new dev-lang/php package in the overlay replaces dev-php/php,
16 dev-php/php-cgi, and dev-php/mod_php. The overlay uses a single package
17 to deliver all three SAPIs. The package is SLOTed, allowing PHP4 and
18 PHP5 to be installed on the same box at the same time.
19
20 The new dev-lang/php package provides two virtuals:
21
22 * virtual/php - means that the php CLI SAPI is installed
23 * virtual/httpd-php - means that php-cgi or mod_php is installed
24
25 There are packages in Portage which currently (R)DEPEND on dev-php/php
26 or dev-php/mod_php. When this overlay has been added to Portage, we'll
27 need to fix all of these packages to (R)DEPEND on the virtuals instead.
28
29 In the overlay, PHP extensions move from dev-php into dev-php4/ and
30 dev-php5 categories. Install packages from dev-php4/ if you want to use
31 them for PHP4, and from dev-php5/ if you want to use them for PHP5. The
32 category names are provisional; we may go with php4-ext and php5-ext
33 when we add all of this stuff into the Portage tree.
34
35 We're part-way through adding all the extensions to the overlay.
36
37 The dev-lang/php package installs into /usr/lib/php[45]/, and does not
38 install the php or php-cgi binaries into /usr/bin. We've written three
39 modules for eselect, which you can use to make /usr/bin/php et al
40 symlink either to PHP4 or PHP5 as you wish. The symlinks are not needed
41 by any of the packages in the overlay.
42
43 PEAR support is next on the list. We will make the overlay work with
44 the existing dev-php/PEAR-* packages in Portage. dev-php/PEAR-PEAR will
45 install the 'pear' command; it won't be installed by dev-lang/php (we'll
46 make dev-lang/php RDEPEND on dev-php/PEAR-PEAR so that pear continues to
47 be installed by default).
48
49 After that, we have a lot of testing to do, some documentation to write,
50 and we need to decide on the best way to add these packages into Portage
51 to replace the existing PHP packages. Nothing has been decided yet, but
52 it would make sense for the dev-php/php-4* packages and the new
53 dev-lang/php package to both exist as stable packages for a transitional
54 period, whilst the masked dev-php/php-5* packages would be dropped in
55 favour of the dev-lang/php package.
56
57 Once the packages are in the Portage tree, it will take a bit of time to
58 mark them stable. We hope to have x86 and ppc stable a month or so
59 after the release of php-5.1.0, but that is an aspiration, not a
60 commitment.
61
62 To keep up to date with the latest news on this work, follow my blog
63 postings [5]. The best way to provide feedback is to pop into
64 #gentoo-apache on irc.freenode.org.
65
66 PLEASE DO NOT FILE BUGS IN BUGZILLA ABOUT THE PACKAGES IN THE OVERLAY.
67
68 [1] http://dev.gentoo.org/~stuart/php/php-overlay.tar.gz
69 [2] http://dev.gentoo.org/~stuart/php/php.eselect
70 [3] http://dev.gentoo.org/~stuart/php/php-cgi.eselect
71 [4] http://dev.gentoo.org/~stuart/php/php-devel.eselect
72 [5] http://planet.gentoo.org/
73
74 Best regards,
75 Stu
76 --
77 Stuart Herbert stuart@g.o
78 Gentoo Developer http://www.gentoo.org/
79 http://stu.gnqs.org/diary/
80
81 GnuGP key id# F9AFC57C available from http://pgp.mit.edu
82 Key fingerprint = 31FB 50D4 1F88 E227 F319 C549 0C2F 80BA F9AF C57C
83 --

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] News on PHP5 support on Gentoo Alexander Simonov <devil@××××××××××.ua>