Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110977 - Wrong/missing dependencies for www-apps/mediawiki
Summary: Wrong/missing dependencies for www-apps/mediawiki
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Christian Parpart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 01:10 UTC by uran238
Modified: 2005-11-01 05:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description uran238 2005-10-31 01:10:55 UTC
I tried to install mediawiki (and about 20 dependencies apache mysql ...)
everithing went fine, but mediawiki stoped after the md5check with that error (I
know what this error message tells me about how to post that error ;-)

.
.
.
>>> md5 src_uri ;-) mediawiki-1.5.1.tar.gz

!!! ERROR: www-apps/mediawiki-1.5.1 failed.
!!! Function has_php, Line 228, Exitcode 1
!!! Unable to find an installed dev-lang/php package
!!! If you need support, post the topmost build error, NOT this status message.

So I uninstalled mod_php which got installed by emerge mediawiki and installed
dev-lang/php. After that emerge mediawiki worked

Reproducible: Couldn't Reproduce
Steps to Reproduce:
The problem is reproduceable until you install php manualy, after that even an
emerge -e mediawiki installs dev-lang/php and not mod_php (btw blocking each
other). Before that I made an emerge -e mediawiki. I thought it was my fault,
because I added the thread use flag the day before. emerge stoped with the error
above.


Expected Results:  
Install dev-lang/php and not dev-php/mod_php as dependency

ACCEPT_KEYWORDS="~x86"

USE="X nvidia gtk gnome live vcd cddb cda cdio matroska aac dts freetype stream
a52 acpi alsa apm arts audiofile avi bzlib cdr crypt cups dga dio directfb -doc
dri dvd dvdr encode ethereal exif extras fame fbcon ffmpeg flac ftp gif gpm gps
gtk2 icq imagemagick imlib ipv6 jpeg kde kerberos krb4 lcms libwww lzo gimpprint
gnutls rtc tga lzw-tiff mad mhash mjpeg mmx mmx2 mng motif mozilla mpeg network
ncurses nocd ogg oggvorbis openal opengl pdflib pic png pnp posix qt quicktime
readline samba scanner sdl session sockets socks5 speex spell sse sse2 ssl svg
svga sysvipc szip tcltk theora tidy tiff truetype trusted unicode usb v4l wmf
xface xine xml2 jabber xmms xpm xv xvid zlib i8x0 -java 3dnow 3dnowext dvb
cdparanoia dvdread vorbis real v4l2 win32codecs on-the-fly-crypt mmxext mozsvg
java bzip2 pcre apache2 threads dba gd"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-31 01:22:28 UTC
That's a feature. Either use stable mediawiki versions with mod_php or switch to
dev-lang/php. The old dev-php/{mod_}php ebuilds will be removed from portage in
a couple of months anyway.
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2005-10-31 10:28:53 UTC
Uh, so mediawiki requires dev-lang/php and doesn't have that as a dependency,
and that's a feature? That doesn't sound right...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-10-31 10:33:53 UTC
(In reply to comment #2)
> Uh, so mediawiki requires dev-lang/php and doesn't have that as a dependency,
> and that's a feature? That doesn't sound right...

No, mediawiki >=1.5.0 does *not* support the old dev-php/{mod_}php ebuilds, it
depends on dev-lang/php via inherit depend.php ;)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-10-31 10:53:33 UTC
Ugh, OK, sorry for the confusion. I've misread the somewhat messy description...

@trapni, please:

- either replace need_php_httpd with need_php (won't be compatible with
dev-php/{mod_}php ebuilds then, but will depend correctly on dev-lang/php) 
- or replace require_php_with_use and require_gd checks in pkg_setup() with
built_with_use; the above two checks call has_php function from depend.php
eclass, which checks for dev-lang/php, not dev-php/{mod_}php. 

Comment 5 Christian Parpart (RETIRED) gentoo-dev 2005-10-31 15:04:53 UTC
(In reply to comment #4) 
> - either replace need_php_httpd with need_php (won't be compatible with 
> dev-php/{mod_}php ebuilds then, but will depend correctly on dev-lang/php)  
 
(so I should use this then) 
 
> - or replace require_php_with_use and require_gd checks in pkg_setup() with 
> built_with_use; the above two checks call has_php function from depend.php 
> eclass, which checks for dev-lang/php, not dev-php/{mod_}php.  
 
Um, hmm... well, Hi, but anyway, I did certainly *not* want to support legacy 
dev-php/{mod_,}php in 1.5.x line. 
 
Is this bad? (why?) 
Comment 6 Christian Parpart (RETIRED) gentoo-dev 2005-10-31 15:26:27 UTC
well, ya. check it out and/or update from cvs/rsync and feel free to blame 
me ;) 
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-11-01 05:43:50 UTC
(In reply to comment #5)
> Um, hmm... well, Hi, but anyway, I did certainly *not* want to support legacy 
> dev-php/{mod_,}php in 1.5.x line. 
>  
> Is this bad? (why?) 

No, it's not bad, but it breaks dependency tree (you are missing dev-lang/php
dependency then). Seems fixed now, thanks. :)