Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105419 - ebuilds with broken dependencies on dev-php/{mod_}php
Summary: ebuilds with broken dependencies on dev-php/{mod_}php
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 105019 106181 113774 114214 (view as bug list)
Depends on:
Blocks: 60440 116827
  Show dependency tree
 
Reported: 2005-09-09 13:23 UTC by Jakub Moc (RETIRED)
Modified: 2006-01-04 14:00 UTC (History)
5 users (show)

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


Attachments
mythweb-0.18.1 ebuild patch (mythweb-0.18.1.ebuild.diff,1.14 KB, patch)
2005-09-09 14:11 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Moc (RETIRED) gentoo-dev 2005-09-09 13:23:33 UTC
www-apps/phpmp-0.11.0 - mod_php -> virtual/httpd-php (sound)

www-apps/wordpress-1.5.1.3 - mod_php -> virtual/httpd-php (superlag)

www-apps/mantisbt-0.18.3 -> package.mask wrt Bug 103308 (web-apps)

www-apps/mythweb-0.18.1 - mod_php -> virtual/httpd-php + other issues; will
attach a patch (cardoe)

www-apps/b2evolution-0.9.0.12{-r1} - mod_php -> virtual/httpd-php (dsd)

www-apps/ampache-3.3.1.4 - dev-php (is this really correct?) -> virtual/php
(marineam)

Please, fix the dependencies and remove yourself from CC when done. Thanks.


Reproducible: Always
Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-09 14:11:48 UTC
Created attachment 68063 [details, diff]
mythweb-0.18.1 ebuild patch

The patch fixes RDEPEND, removes check for dev-php/mod_php-5 built with
USE=session (it's no longer in portage) and checks for session use flag in
those new dev-lang/php-{4,5} ebuilds.
Comment 2 Grant Goodyear (RETIRED) gentoo-dev 2005-09-09 18:28:11 UTC
Also www-servers/lighttpd (presumably dev-php/php --> virtual/php?)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-10 02:25:17 UTC
(In reply to comment #2)
> Also www-servers/lighttpd (presumably dev-php/php --> virtual/php?)

There's already Bug 102863 for that one (and other separate bugs for
www-servers/monkeyd, net-www/spawn-fcgi, net-p2p/phpgnucacheii, 
net-analyzer/midas-nms and dev-lang/swig).
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-10 03:39:26 UTC
Round two: php herd only

dev-php/creole-1.0.2 - >=dev-lang/php-5.0.0 -> =virtual/php-5*

dev-php/jargon-1.0.2 - >=dev-lang/php-5.0.0 -> =virtual/php-5*

dev-php/jpgraph-1.19 - =dev-php/php-4* -> =virtual/php-4* and fix RDEPEND to
match DEPEND

dev-php/propel-runtime-1.1.0 - >=dev-lang/php-5.0.0 -> =virtual/php-5*

dev-php/propel-generator-1.1.0 - >=dev-lang/php-5.0.0 -> =virtual/php-5*

dev-php/phing-2.1.0 - >=dev-php/php-5.0.0 -> =virtual/php-5* 

dev-php/php-gtk-1.0.2 - =dev-php/php-4* -> =virtual/php-4*
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-09-10 03:48:19 UTC
Round three web-apps herd only:

www-apps/ids-0.82 - mod_php -> virtual/httpd-php (and noticed that php vanished
from RDEPEND altogether in 0.83_beta2-r1, hmm?)

www-apps/gallery-1.4.4_p6 - mod_php -> virtual/httpd-php

www-apps/phpcollab-2.4 - mod_php -> virtual/httpd-php
Comment 6 Sebastian Bergmann (RETIRED) gentoo-dev 2005-09-10 04:11:54 UTC
dev-php/creole-1.0.2, dev-php/jargon-1.0.2, dev-php/propel-runtime-1.1.0,
dev-php/propel-generator-1.1.0, dev-php/phing-2.1.0 done.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-09-10 05:32:02 UTC
Sebastian, sorry, I only looked at the diffs against previous revision, so I
missed that all the above ebuilds inherit php-pear. Which already has
(R)DEPEND="virtual/php dev-php/php". Meaning the additional php dependencies
should be dropped intirely (as well as the newly added depend.php inherit), in
fact they never should have been there in the first place.

inherit php-pear = compatible w/ the old dev-php/{mod_}php ebuilds *only*
inherit php-pear-r1 = compatible w/ the new dev-lang/php ebuild *only* 

So, depend.php should be removed from inherit in the old ebuilds, they only need
to inherit php-pear; no additional php (R)DEPENDs needed, the eclass will care
for this. 

Plus new revbumped  ebuilds should inherit php-pear-r1 to be compatible with the
new dev-lang/php ebuild, again no other php checks needed.

Sorry for the confusion.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-09-10 06:16:37 UTC
(In reply to comment #6)
(In reply to comment #7)

Clarifying more: It you absolutely need to check for specific php version in
pear stuff, then 'inherit php-pear-r1 depend.php' + need_php{4,5} or similar
depend.php function is OK, but inherit php-pear depend.php' is *not*. php-pear
pulls in dev-php/php, depend.php + need_php{4,5} pulls in dev-lang/php, and they
block each other. 

A couple of examples:

1/ pear stuff versions that needs php-4 and should work with dev-php/{mod_}php
should have:

inherit php-pear
(R)DEPEND="=virtual/php-4*"

2/ The revbumped ones for dev-lang/php should have:

inherit php-pear-r1 depend.php
need_php4

Hope it's all clear now, if not, then jump to #gentoo-apache and poke CHTEKK
there, please. :)
Comment 9 Sebastian Bergmann (RETIRED) gentoo-dev 2005-09-10 09:40:33 UTC
dev-php4/php-gtk is in the tree now.
Comment 10 Renat Lumpau (RETIRED) gentoo-dev 2005-09-11 07:00:27 UTC
www-apps/mantisbt
www-apps/ids (php dep was incorrect, it's a perl app)
www-apps/gallery (1.4.4 had a security issue, removed)
www-apps/phpcollab

web-apps is all set
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-09-16 06:38:45 UTC
*** Bug 106181 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-10-07 03:22:21 UTC
What's left?

www-apps/phpmp-0.11.0
www-apps/wordpress
www-apps/mythweb - has_version check for non-existant ebuild in pgk_setup()
www-apps/b2evolution
www-apps/ampache-3.3.1.4

Ping... ;)
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2005-10-09 01:42:15 UTC
Fixed mythweb. Thx jakub

Also fixed ampache as per discussion with marineam.
Comment 14 Carlos Silva (RETIRED) gentoo-dev 2005-10-13 08:01:36 UTC
b2evolution is fixed.
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2005-10-23 07:26:31 UTC
What's left round two:

www-apps/phpmp
www-apps/wordpress

Ping... ;)
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2005-11-26 05:43:46 UTC
*** Bug 105019 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2005-11-26 05:47:05 UTC
More than one month later, still unfixed. :( Noting that dev-lang/php will go
stable in a couple of days. 

superlag & sound, ping! Please fix www-apps/phpmp and www-apps/wordpress. 
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2005-11-26 05:49:54 UTC
Stupid bugzilla, reopen.
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2005-11-28 08:11:19 UTC
*** Bug 113774 has been marked as a duplicate of this bug. ***
Comment 20 Jesse Adelman 2005-11-28 15:51:02 UTC
I don't know if this is actually a problem, but www-apps/gallery < 2.0.1 have

RDEPEND=">=net-www/apache-1.3.24-r1
        virtual/php
        >=media-gfx/jhead-2.2
[...]

Is "virtual/php" correct here? Or should it be "virtual/httpd-php" as in the
gallery 2.0.1 ebuild? Sorry for the noise if the current state is the correct form.
Comment 21 Luca Longinotti (RETIRED) gentoo-dev 2005-11-29 12:29:59 UTC
It's theoretically the same as dev-lang/php provides both, virtual/php should be
used when the CLI PHP is enough, virtual/httpd-php when a web-enabled PHP should
be used, like mod_php or php CGI. So, in the case of webapps, preferably use
virtual/httpd-php.
Best regards, CHTEKK.
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2005-12-01 23:00:11 UTC
*** Bug 114214 has been marked as a duplicate of this bug. ***
Comment 23 Jesse Adelman 2005-12-05 03:04:40 UTC
Any word on wordpress? Seems a trivial fix... Thanks. :)
Comment 24 Olivier Castan 2005-12-06 03:50:24 UTC
Looks like dev-php/jpgraph has disappeared between comments #4 and #12...
Can you fix it please, it breaks net-analyzer/acid upgrade
Thanks
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2005-12-06 08:18:03 UTC
(In reply to comment #24)
> Looks like dev-php/jpgraph has disappeared between comments #4 and #12...
> Can you fix it please, it breaks net-analyzer/acid upgrade
> Thanks

There's nothing disappeared, see dev-php{4,5}/jpgraph...
Comment 26 Olivier Castan 2005-12-07 04:42:42 UTC
OK. Maybe you can help me because I don't understand the new php dependency
scheme. I've installed net-analyzer/acid on a ppc arch (note that
dev-php/jpgraph-1.19-r1.ebuild is keyworded ~ppc but not
dev-php4/jpgraph-1.19.ebuild nor dev-php5/jpgraph-2.0_beta.ebuild). Here is what
I get when I try to upgrade acid :

# emerge -uvpDN net-analyzer/acid

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] dev-php/mod_php (is blocking dev-lang/php-5.0.5-r4)
[blocks B     ] dev-php/php (is blocking dev-lang/php-5.0.5-r4)
[ebuild     U ] dev-lang/perl-5.8.7-r3 [5.8.7-r2] +berkdb -build -debug -doc
+gdbm -ithreads -minimal -perlsuid 0 kB
[ebuild     U ] sys-apps/findutils-4.2.27 [4.2.25] -build +nls (-selinux)
-static 1,096 kB
[ebuild     UD] app-admin/webapp-config-1.11 [1.11-r1] 0 kB
[ebuild  N    ] app-admin/eselect-php-0.96  0 kB
[ebuild  N    ] dev-lang/php-5.0.5-r4  (-adabas) -apache +apache2 -bcmath
+berkdb (-birdstep) +bzip2 -calendar -cdb -cgi -cjk -cli +crypt -ctype +curl
-curlwrappers -db2 -dba -dbase -dbmaker -debug -discard-path -doc -empress
-empress-bcs -esoob +exif (-fdftk) -filepro (-firebird) -flatfile
-force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm +gmp +hardenedphp
-hyperwave-api +iconv -imap -informix -inifile (-interbase) -iodbc -ipv6
-java-external -kerberos -ldap -libedit -mcve -memlimit +mhash -ming
-mnogosearch -msql -mssql +mysql -mysqli +ncurses +nls -oci8
(-oci8-instant-client) +odbc -oracle7 -ovrimos -pcntl +pcre -pdo-external -pear
-pfpro +pic -posix -postgres -qdbm +readline -recode -sapdb -sasl +session
-sharedext -sharedmem -simplexml -snmp -soap -sockets -solid +spell -spl -sqlite
+ssl -sybase -sybase-ct -sysvipc +threads +tidy +tiff -tokenizer +truetype -wddx
+xml2 -xmlrpc +xpm -xsl -yaz -zip +zlib 4,830 kB
[ebuild     U ] dev-php/adodb-4.65-r1 [4.65] 0 kB

# equery d php
[ Searching for packages depending on php... ]
dev-lang/swig-1.3.25
dev-php/adodb-4.65
dev-php/jpgraph-1.19-r1

# egrep "(virtual|dev-php*)/php"
/usr/portage/dev-php/{adodb/adodb-4.65.ebuild,jpgraph/jpgraph-1.19-r1.ebuild}
/usr/portage/dev-php/adodb/adodb-4.65.ebuild:RDEPEND="virtual/php"
/usr/portage/dev-php/jpgraph/jpgraph-1.19-r1.ebuild:            =dev-php/php-4*"
[...]

Which ebuild should be corrected : dev-php/jpgraph-1.19-r1.ebuild to mimic
dev-php/adodb (and adding the the right keyword in dev-php4/jpgraph) or
net-analyzer/acid which depend on >=dev-php/jpgraph-1.12.2 ?
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2005-12-07 10:43:50 UTC
(In reply to comment #26)
> I've installed net-analyzer/acid on a ppc arch (note that
> dev-php/jpgraph-1.19-r1.ebuild is keyworded ~ppc but not
> dev-php4/jpgraph-1.19.ebuild nor dev-php5/jpgraph-2.0_beta.ebuild). Here is what
> I get when I try to upgrade acid :

net-analyzer/acid is Bug 102825 - see the patches there.
Comment 28 Jakub Moc (RETIRED) gentoo-dev 2006-01-04 14:00:14 UTC
wordpress is fixed now, phpmp is deprecated in favour of phpmp2 (Bug 74951), closing this bug. Thanks everyone.

Yay! ;)