!18 fix EBS compile failure caused by gcc_secure replace compiler inadequacy

From: @wang--ge 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-04-26 08:49:40 +00:00 committed by Gitee
commit 3260e86c63
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: wxGTK3 Name: wxGTK3
Version: 3.0.4 Version: 3.0.4
Release: 9 Release: 10
Summary: C++ Library for Cross-Platform Development Summary: C++ Library for Cross-Platform Development
License: GPL-2.0-or-later or LGPL-2.1-only License: GPL-2.0-or-later or LGPL-2.1-only
@ -116,7 +116,9 @@ export CPPUNIT_CONFIG="/usr/bin/pkg-config cppunit"
#package gcc_secure will add _old suffix to compile tools #package gcc_secure will add _old suffix to compile tools
gccexec=`file /usr/bin/gcc` gccexec=`file /usr/bin/gcc`
if [[ ${gccexec} =~ "shell script" ]] && [[ -e /usr/bin/gcc_old ]]; then gppexec=`file /usr/bin/g++`
cppexec=`file /usr/bin/c++`
if [[ ${gccexec} =~ "shell script" ]] && [[ -e /usr/bin/gcc_old ]] && [[ ${gppexec} =~ "shell script" ]] && [[ -e /usr/bin/g++_old ]] && [[ ${cppexec} =~ "shell script" ]] && [[ -e /usr/bin/c++ ]]; then
for line in `find . -name Makefile.in`; for line in `find . -name Makefile.in`;
do do
sed -i 's/@CC@/@CC@_old/g' $line sed -i 's/@CC@/@CC@_old/g' $line
@ -237,6 +239,9 @@ fi
%changelog %changelog
* Wed Apr 26 2023 Ge Wang <wang__ge@126.com> - 3.0.4-10
- fix EBS compile failure caused by gcc_secure replace compiler inadequacy
* Fri Apr 14 2023 hgzhaod <hgzhaod@isoftstone.com> - 3.0.4-9 * Fri Apr 14 2023 hgzhaod <hgzhaod@isoftstone.com> - 3.0.4-9
- fix compile bug caused by no gcc_old - fix compile bug caused by no gcc_old