Fix Adapt signed-char check macro which lead to python3 testcase failure.

This commit is contained in:
fly_fzc 2024-06-04 21:41:35 +08:00
parent fd39bd0a65
commit ebdd83f91e

View File

@ -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 <fuanan3@h-partners.com> - 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 <fuanan3@h-partners.com> - 2.71-4
- Type:bugfix
- ID:NA