Summary: | php-4.3.x and mod_php-4.3.x FAILS to build with qt and xml2 use flags enabled | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alessandro Pisani <alessandro.pisani> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | VERIFIED FIXED | ||
Severity: | critical | CC: | richliu, robbat2, sethbc |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alessandro Pisani
2003-02-24 18:46:09 UTC
I would like to add that this is common to _ALL_ the 4.3.x ebuild, not only 4.3.1-r1. It also affects mod_php 4.3.x ebuilds. the fix: replace the export line with: if [ -d /usr/qt/2 ]; then export QTDIR=/usr/qt/2 elif [ -d /usr/qt/3 ]; then export QTDIR=/usr/qt/3 fi can you please fix this asap? thank you :) bye, Alessandro since 3 is newer than 2, you should probably have: if [ -d /usr/qt/3 ]; then export QTDIR=/usr/qt/3 elif [ -d /usr/qt/2 ]; then export QTDIR=/usr/qt/2 fi diff: --- /usr/portage/dev-php/php/php-4.3.1-r1.ebuild 2003-02-24 13:55:22.000000000 -0800 +++ /usr/local/portage/dev-php/php/php-4.3.1-r2.ebuild 2003-02-25 06:23:00.000000000 -0800 @@ -124,7 +124,11 @@ fi use qt && { - export QTDIR=/usr/qt/2 #hope this helps - danarmak + if [ -d /usr/qt/3 ]; then + export QTDIR=/usr/qt/3 + elif [ -d /usr/qt/2 ]; then + export QTDIR=/usr/qt/2 + fi myconf="${myconf} --with-qtdom" } diff for mod_php: --- /usr/portage/dev-php/mod_php/mod_php-4.3.1-r1.ebuild 2003-02-24 13:53:03.000000000 -0800 +++ mod_php-4.3.1-r2.ebuild 2003-02-25 06:35:07.000000000 -0800 @@ -153,7 +153,11 @@ fi use qt && { - export QTDIR=/usr/qt/2 #hope this helps - danarmak + if [ -d /usr/qt/3 ]; then + export QTDIR=/usr/qt/3 + elif [ -d /usr/qt/2 ]; then + export QTDIR=/usr/qt/2 + fi myconf="${myconf} --with-qtdom" } *** Bug 16377 has been marked as a duplicate of this bug. *** *** Bug 16438 has been marked as a duplicate of this bug. *** The mod_php ebuilds all set QTDIR=/usr/qt/2, which breaks horribly when only qt-3.* is installed. I managed to get a correct build by removing the above line, since QTDIR is already set correctly by /etc/env.d/50qtdir3. Ok, so I need to read farther before replying. Sorry about the last comment. Can I recommed the following: QTDIR=/usr/qt/`ls /usr/qt|sort -rn|head -1` That way we don't need to go through this again when qt/4 (or qt/10) comes out. The proposed sollutions above do not work for my configuration. I'm using an almost completely default make.conf. Forrest: very weird... all the above solution works for me :| can you please give us some details about the steps you're doing and your settings? thank you bye, Alessandro should be all set, have fun Closing bug properly. |