Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 74435

Summary: php doesn't build in a uclibc env
Product: Gentoo Linux Reporter: Christian Zoffoli (RETIRED) <xmerlin>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: embedded, jens, mail
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 2272    
Bug Blocks: 99225    
Attachments: some php-sapi changes (more cond. on some use flags ...xml)
fixed ebuild to support compilation in a uclibc env
uclibc libresolv fixes

Description Christian Zoffoli (RETIRED) gentoo-dev 2004-12-14 17:55:13 UTC
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"
Comment 1 Christian Zoffoli (RETIRED) gentoo-dev 2004-12-14 17:56:37 UTC
Created attachment 46006 [details, diff]
some php-sapi changes (more cond. on some use flags ...xml)
Comment 2 Christian Zoffoli (RETIRED) gentoo-dev 2004-12-14 17:58:08 UTC
Created attachment 46007 [details, diff]
fixed ebuild to support compilation in a uclibc env
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2004-12-14 17:59:09 UTC
Created attachment 46008 [details, diff]
uclibc libresolv fixes
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-14 21:46:38 UTC
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.
Comment 5 Milan Holzäpfel 2005-07-16 09:13:07 UTC
*** Bug 99225 has been marked as a duplicate of this bug. ***
Comment 6 Milan Holzäpfel 2005-07-16 09:17:21 UTC
*** Bug 99220 has been marked as a duplicate of this bug. ***
Comment 7 Milan Holzäpfel 2005-07-16 09:20:38 UTC
"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?) 
Comment 8 SpanKY gentoo-dev 2005-07-16 18:05:18 UTC
the iconv should be made conditional on USE=nls ...

the nis / yp change should def be made, that isnt just a bug for uClibc
Comment 9 Stuart Herbert (RETIRED) gentoo-dev 2005-08-22 11:54:50 UTC
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
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-09-17 15:42:05 UTC
Please, test w/ the ebuilds from PHP overlay and report back.
Comment 11 SpanKY gentoo-dev 2005-10-25 13:38:17 UTC
dev-lang/php-5.0.x in portage works fine, thanks
Comment 12 Luca Longinotti (RETIRED) gentoo-dev 2005-10-29 15:47:41 UTC
Closing, since it works.
Best regards, CHTEKK.
Comment 13 SpanKY gentoo-dev 2005-10-29 17:58:19 UTC
the eclass is fixed for handling USE flags yes but the build of php-4 is still
broken, see Bug 99225