diff --git a/autoconf.spec b/autoconf.spec index d76d9f7653ad67a70a18be90ee22e269a5ed1091..b397d10bd1d2b97ed08dbb52708bc437f901de4f 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