!21 Adapt signed-char check macro for default unsigned evironment

From: @wang--ge 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2024-05-20 01:52:57 +00:00 committed by Gitee
commit d2489513a2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: autoconf Name: autoconf
Version: 2.71 Version: 2.71
Release: 4 Release: 5
Summary: An extensible package to automatically configure software source code packages Summary: An extensible package to automatically configure software source code packages
License: GPLv2+ and GPLv3+ and GFDL-1.3-only License: GPLv2+ and GPLv3+ and GFDL-1.3-only
URL: https://www.gnu.org/software/%{name}/ URL: https://www.gnu.org/software/%{name}/
@ -34,6 +34,13 @@ can use, in the form of M4 macro calls.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %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 %build
export EMACS=%{_bindir}/emacs export EMACS=%{_bindir}/emacs
@ -73,6 +80,9 @@ fi
%changelog %changelog
* Tue May 14 2024 Ge Wang <wang__ge@126.com> - 2.71-5
- Adapt signed-char check macro for default unsigned evironment
* Tue Jul 18 2023 fuanan <fuanan3@h-partners.com> - 2.71-4 * Tue Jul 18 2023 fuanan <fuanan3@h-partners.com> - 2.71-4
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA