Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304577 - dev-lang/php picks up libxml2 from host system
Summary: dev-lang/php picks up libxml2 from host system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 15:51 UTC by Eric Meddaugh
Modified: 2010-02-13 11:34 UTC (History)
0 users

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 Eric Meddaugh 2010-02-11 15:51:58 UTC
Solaris 10 includes libxml2, but a lower version than the emerge tree has.  emerging php with xml includes the Solaris installed one: /usr/bin/xml2-config instead of the $PREFIX/usr/bin/xml2-config

Reproducible: Always

Steps to Reproduce:
1. emerge libxml2
2. USE=xml emerge php
3.

Actual Results:  
Configure indicates the xml2-config is: /usr/bin/xml2-config

Expected Results:  
Should indicate $EPREFIX/usr/bin/xml2-configI

I was able to fix by adding my own ebuild (in usr/local/portage) of php, for the file php-5.2.12.ebuild at line 356:

                if use xml ; then
                        myconf="${my_conf} --with-libxml-dir=${EPREFIX}/usr"
                        phpconfutils_extension_with "libxml-dir" "xml" 0 "${EPREFIX}/usr"
                fi


It'd be nice to have this included if possible, so it will add the libxml-dir path as other options have this added.
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2010-02-11 16:00:55 UTC
Please provide emerge --info, I assume you are on Prefix.  Don't add architectures yourself.
Comment 2 Eric Meddaugh 2010-02-11 16:08:04 UTC
# emerge --info
Portage 2.2.00.15320-prefix (prefix/sunos/solaris/5.10/x86, gcc-4.4.2, unavailable, 5.10 i86pc)
=================================================================
System uname: Solaris-2.10-i86pc-i386-32bit-ELF
Timestamp of tree: Mon, 08 Feb 2010 22:35:14 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4
dev-util/cmake:      2.8.0-r2
sys-devel/autoconf:  2.13, 2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11.1
sys-devel/binutils:  2.20.51.0.5
sys-devel/gcc:       4.4.2
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="~x86-solaris"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i386-pc-solaris2.10"
CFLAGS="-O2 -pipe"
CHOST="i386-pc-solaris2.10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CPPFLAGS="-I/sys_tools/usr/include"
CXXFLAGS="-O2 -pipe"
DISTDIR="/sys_tools/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-L/sys_tools/usr/lib -R/sys_tools/usr/lib -L/sys_tools/lib -R/sys_tools/lib"
PKGDIR="/sys_tools/usr/portage/packages"
PORTAGE_CONFIGROOT="/sys_tools/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/sys_tools/var/tmp"
PORTDIR="/sys_tools/usr/portage"
PORTDIR_OVERLAY="/sys_tools/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="cracklib cxx kerberos modules ncurses nls prefix readline ssl unicode x86-solaris zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http auth_digest" ELIBC="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" 
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Fabian Groffen gentoo-dev 2010-02-11 16:47:43 UTC
short remark: are you bootstrapping still?  if not, make sure you get rid of
LDFLAGS="-L/sys_tools/usr/lib -R/sys_tools/usr/lib -L/sys_tools/lib -R/sys_tools/lib"
Comment 4 Fabian Groffen gentoo-dev 2010-02-13 11:34:54 UTC
applied your suggested change, thanks