I can't emerge php in a uclibc env.
So I've modified php-sapi.eclass and the ebuild ...now it works (without xml and NIS support). XML support doesn't work because iconv lack in uclibc (also enabling nls in the uclibc ebuild doesn't change anything), if you try to use libiconv, you'll find some problems with sablotron and expat.
Steps to Reproduce:
Portage 2.0.51-r3 (uclibc/x86/hardened, gcc-3.3.4, uclibc-0.9.26-r7, 188.8.131.52 i686)
System uname: 184.108.40.206 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
FEATURES="autoaddcvs autoconfig ccache distlocks nodoc noinfo noman sandbox
USE="x86 berkdb hardened libwww ncurses perl pic pie python readline ssl tcpd
Created attachment 46006 [details, diff]
some php-sapi changes (more cond. on some use flags ...xml)
Created attachment 46007 [details, diff]
fixed ebuild to support compilation in a uclibc env
Created attachment 46008 [details, diff]
uclibc libresolv fixes
XML is NOT optional for the time being.
It is needed for PEAR.
When we get a portage with use flag deps so all PEAR stuff can depend on PHP+XML, then we can revisit this.
*** Bug 99225 has been marked as a duplicate of this bug. ***
*** Bug 99220 has been marked as a duplicate of this bug. ***
"if you try to use libiconv, you'll find some problems with sablotron
I assume these are runtime problems? (I'm asking because compiling went just
fine here.. would you care to elaborate a bit on the issues, possibly in a
the iconv should be made conditional on USE=nls ...
the nis / yp change should def be made, that isnt just a bug for uClibc
Could you retest your changes against the new packages in the Gentoo PHP
Overlay, please, and re-submit patches as required?
Please, test w/ the ebuilds from PHP overlay and report back.
dev-lang/php-5.0.x in portage works fine, thanks
Closing, since it works.
Best regards, CHTEKK.
the eclass is fixed for handling USE flags yes but the build of php-4 is still
broken, see Bug 99225