How I can compile PHP --with-gettext with this only use nls line in ebuild ? use nls || myconf="${myconf} --without-gettext" It's this correct ? I don't see any reference to --with-gettext in the latest PHP ebuild.
yes, it is correct. gettext is enabled by default
Excuse me but I don't see a --with-gettext in a my php info page that shows the Configure Command used to compile PHP. This is and extract of the PHP web site : Following is a brief overview of how to use gettext with a PHP script: 1. Get and install a copy of gettext. (See http://www.gnu.org/ for more details.) 2. Make sure PHP is built with gettext support (i.e., with --with-gettext on the ./configure command line). I don't see any reference to --with-gettext in the ebuild.
More info (from configure file in PHP package): echo $ac_n "checking whether to include GNU gettext support""... $ac_c" 1>&6 echo "configure:22726: checking whether to include GNU gettext support" >&5 # Check whether --with-gettext or --without-gettext was given. if test "${with_gettext+set}" = set; then withval="$with_gettext" PHP_GETTEXT=$withval else PHP_GETTEXT=no fi
good point
where is gettext.h for you?
Using the following patch to upgrade php-4.1.2-r7.ebuild to -r8.ebuild. --- php-4.1.2-r7.ebuild 2002-04-16 08:40:56.000000000 -0700 +++ php-4.1.2-r8.ebuild 2002-04-25 21:57:05.000000000 -0700 @@ -80,7 +80,7 @@ myconf="--without-readline --without-t1lib" use pam && myconf="${myconf} --with-pam" - use nls || myconf="${myconf} --without-gettext" + use nls && myconf="${myconf} --with-gettext" || myconf="${myconf} --without-gettext" use gdbm && myconf="${myconf} --with-gdbm=/usr" use berkdb && myconf="${myconf} --with-db3=/usr" use mysql && myconf="${myconf} --with-mysql=/usr" ./configure --with-gettext from the commandline within /var/tmp/portage/php-blah/work everything works fine. However, with an emerge php the configure errors out stating it couldn't find the gettext libraries. ideas?
mine it's at /usr/share/gettext/gettext.h
With the Ryan Phillips -r8 patch I can emerge php perfectly without any errors and php info shows the --with-gettext option.
This is interesting... what version of portage are you using Xavier? I'll try upgrading portage and retry my fix, since the emerge php fails on my computer currently.
I'm using portage 1.9.3 Where your php emerge fail ? I'm using nls, ssl, imap and postgresql (among others) in my settings
Committed the update. Hopefully it doesn't break.