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. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51-r3 (uclibc/x86/hardened, gcc-3.3.4, uclibc-0.9.26-r7, 2.6.8.1 i686) ================================================================= System uname: 2.6.8.1 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-Os -pipe" CHOST="i386-pc-linux-uclibc" COMPILER="" 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/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://10.0.4.11/gentoo-portage" USE="x86 berkdb hardened libwww ncurses perl pic pie python readline ssl tcpd uclibc zlib"
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 and expat." 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 personal email?)
the iconv should be made conditional on USE=nls ... the nis / yp change should def be made, that isnt just a bug for uClibc
Hi, Could you retest your changes against the new packages in the Gentoo PHP Overlay, please, and re-submit patches as required? [1] http://svn.gnqs.org/projects/gentoo-php-overlay/ Many thanks, Stu
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