-
Notifications
You must be signed in to change notification settings - Fork 7.8k
ext/gettext: resolve underqouting that breaks with autoconf 2.72 #11427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CI failure looks unrelated to my changes? |
Indeed. Sometimes tests in CI can fail due to the high I/O load, it's just CI flakiness. |
I've used the unreleased autoconf 2.72c version and it seems to be working fine also with non-patched code. Otherwise, I agree that this needs to be quoted. Change looks ok and we can definitely add this one. All other similar AC_CHECK_LIB calls are quoted in the php-src code, I think. And also those tabs around this code should be changed to spaces. I'll recheck this a bit in the following days. Maybe we should even target PHP-8.1 branch here. |
yeah for it to actually fail, it requires not having EDIT: after looking around a bit, it seems to be because we use gettext-tiny instead of GNU gettext, which provides the intl |
I guess we'll need to adjust also # Check if autoconf exists.
-ac_version=$($PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//')
+ac_version=$($PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed 's/.* \([0-9.]*[0-9]\).*/\1/') But this is for another PR and needs to be fined tuned more. Thanks @the-eater for the patch of gettext. |
Merged to master. Coming up in PHP 8.3. Thank you @the-eater |
With some changes in autoconf 2.72 there is the chance that the
AC_CHECK_LIB
will output a comment with a comma which will be interpreted as being part of the upperAC_CHECK_LIB
invocation, and thus only output half of the if statement, causing cryptic errors alikeconfigure: 101400: Syntax error: end of file unexpected (expecting "fi")
By qouting the AC_CHECK_LIB, this issue is resolved
(also I am very confused by the indenting in the m4 files, it seems to be mixed tabs and spaces?)