Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2106 - Incorrect use 'use' in PHP ?
Summary: Incorrect use 'use' in PHP ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-25 17:04 UTC by Xavier
Modified: 2003-02-04 19:42 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 Xavier 2002-04-25 17:04:19 UTC
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.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-25 17:45:11 UTC
yes, it is correct.  gettext is enabled by default
Comment 2 Xavier 2002-04-25 18:00:44 UTC
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.
Comment 3 Xavier 2002-04-25 18:09:46 UTC
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
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-25 19:17:59 UTC
good point
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-25 20:51:15 UTC
where is gettext.h for you?
Comment 6 Ryan Phillips (RETIRED) gentoo-dev 2002-04-26 00:04:54 UTC
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?
Comment 7 Xavier 2002-04-26 05:15:46 UTC
mine it's at /usr/share/gettext/gettext.h
Comment 8 Xavier 2002-04-26 05:26:57 UTC
With the Ryan Phillips -r8 patch I can emerge php perfectly without any errors 
and php info shows the --with-gettext option.
Comment 9 Ryan Phillips (RETIRED) gentoo-dev 2002-04-26 16:07:17 UTC
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.
Comment 10 Xavier 2002-04-26 17:51:08 UTC
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
Comment 11 Ryan Phillips (RETIRED) gentoo-dev 2002-04-27 04:31:29 UTC
Committed the update.  Hopefully it doesn't break.