From ebdd83f91e8c13c738e344d6b2719ad69aaef57a Mon Sep 17 00:00:00 2001 From: fly_fzc <2385803914@qq.com> Date: Tue, 4 Jun 2024 21:41:35 +0800 Subject: [PATCH] Fix Adapt signed-char check macro which lead to python3 testcase failure. --- autoconf.spec | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/autoconf.spec b/autoconf.spec index d76d9f7..b397d10 100644 --- a/autoconf.spec +++ b/autoconf.spec @@ -3,7 +3,7 @@ Name: autoconf Version: 2.71 -Release: 4 +Release: 5 Summary: An extensible package to automatically configure software source code packages License: GPLv2+ and GPLv3+ and GFDL URL: https://www.gnu.org/software/%{name}/ @@ -33,13 +33,6 @@ can use, in the form of M4 macro calls. %prep %autosetup -n %{name}-%{version} -p1 -echo 'main() {}' | g++ -E -v - > g++.log 2>&1 -grep -rn -m 1 COLLECT_GCC_OPTIONS g++.log > option.log -GCC_OPTION=`cat option.log` -if [[ $GCC_OPTION != *"fsigned-char"* ]];then - sed -i "s|((char) -1) < 0|((unsigned char) -1) < 0|g" lib/autoconf/c.m4 -fi -rm -rf g++.log option.log %build export EMACS=%{_bindir}/emacs @@ -47,6 +40,13 @@ export EMACS=%{_bindir}/emacs %make_build %check +echo 'main() {}' | g++ -E -v - > g++.log 2>&1 +grep -rn -m 1 COLLECT_GCC_OPTIONS g++.log > option.log +GCC_OPTION=`cat option.log` +if [[ $GCC_OPTION != *"fsigned-char"* ]];then + sed -i "s|((char) -1) < 0|((unsigned char) -1) < 0|g" lib/autoconf/c.m4 +fi +rm -rf g++.log option.log make %{?_smp_mflags} check %install @@ -79,6 +79,12 @@ fi %changelog +* Tue Jun 04 2024 fuanan - 2.71-5 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Fix Adapt signed-char check macro which lead to python3 testcase failure. + * Fri May 24 2024 fuanan - 2.71-4 - Type:bugfix - ID:NA -- Gitee