Re: com php-src: ext/gettext: respect passed in library directory for all checks: ext/gettext/config.m4

From: Date: Tue, 20 Jun 2017 10:56:39 +0000
Subject: Re: com php-src: ext/gettext: respect passed in library directory for all checks: ext/gettext/config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98118@lists.php.net to get a copy of this message
Hi Frederic, any news on this? Ciao, Michael PS: I'm not subscribed to the ML, so I might have missed your response. --- Hi Frederic, I know that gettext requires iconv, but I do not see the relation between my patch and the iconv library not found - maybe I'm still missing a piece... But to be on the safe side: Frederic, could you test whether a simple revert of my patch resolved the issue for you? Please do not use a whole configure file from a previous version but use "buildconf ..." to regenerate after the revert... Let's see whether the failure remains... Thanks, Michael Zitat von Remi Collet <remi@fedoraproject.org>:
Can you please give a look to https://bugs.php.net/bug.php?id=74749 Remi Le 17/04/2017 à 09:11, Joe Watkins a écrit :
Commit:    32c5b8efd68dd21dd025285e7207dcab7c6319cd
Author:    Michael Heimpold <mhei@heimpold.de>         Thu, 13 Apr 2017 22:43:26 +0200
Committer: Joe Watkins <krakjoe@php.net>      Mon, 17 Apr 2017 08:11:40 +0100
Parents: 618d97962a8ac59d981c8307cc704790f46090c8 Branches: PHP-7.0 PHP-7.1 master
Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=32c5b8efd68dd21dd025285e7207dcab7c6319cd
Log: ext/gettext: respect passed in library directory for all checks A directory given to configure by --with-gettext=dir is only used within the very first AC_CHECK_LIB. This is because the temporary modified LDFLAGS variable is reset too early. This results in functions not detected properly. The original issue and patch was reported for OpenWrt/LEDE distribution by @Dimazhan at: https://github.com/openwrt/packages/issues/4250 Signed-off-by: Michael Heimpold <mhei@heimpold.de> Changed paths: M ext/gettext/config.m4 Diff: diff --git a/ext/gettext/config.m4 b/ext/gettext/config.m4 index 24dddd3..c82be9c 100644 --- a/ext/gettext/config.m4 +++ b/ext/gettext/config.m4 @@ -30,7 +30,6 @@ if test "$PHP_GETTEXT" != "no"; then AC_MSG_ERROR(Unable to find required gettext library) ]) ) - LDFLAGS=$O_LDFLAGS AC_DEFINE(HAVE_LIBINTL,1,[ ]) PHP_NEW_EXTENSION(gettext, gettext.c, $ext_shared) @@ -46,5 +45,6 @@ if test "$PHP_GETTEXT" != "no"; then AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB, dngettext, [AC_DEFINE(HAVE_DNGETTEXT, 1, [ ])]) AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB, dcngettext, [AC_DEFINE(HAVE_DCNGETTEXT, 1, [ ])]) AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB, bind_textdomain_codeset, [AC_DEFINE(HAVE_BIND_TEXTDOMAIN_CODESET, 1, [ ])]) + LDFLAGS=$O_LDFLAGS fi


« previous php.cvs (#98118) next »