Accepting request 1108891 from home:eeich:branches:science:HPC

- Crate correct links for cc and c++ and make sure failure of last
  test in %posttrans is not returned as status of scriptlet
  (bsc#1214816).

OBS-URL: https://build.opensuse.org/request/show/1108891
OBS-URL: https://build.opensuse.org/package/show/science:HPC/gnu-compilers-hpc?expand=0&rev=48
This commit is contained in:
Egbert Eich 2023-09-04 13:40:12 +00:00 committed by Git OBS Bridge
parent eda1ee8529
commit 8cce1857e4
2 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,9 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Sep 4 11:39:42 UTC 2023 - Egbert Eich <eich@suse.com> Mon Sep 4 11:39:42 UTC 2023 - Egbert Eich <eich@suse.com>
- Make sure failure of last test in %posttrans is not returned as - Crate correct links for cc and c++ and make sure failure of last
status of scriptlet (bsc#1214816). test in %posttrans is not returned as status of scriptlet
(bsc#1214816).
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 14 08:23:44 UTC 2023 - Egbert Eich <eich@suse.com> Wed Jun 14 08:23:44 UTC 2023 - Egbert Eich <eich@suse.com>

View File

@ -250,8 +250,8 @@ do
esac esac
done done
for i in cc,gcc c++,g++; do for i in cc,gcc c++,g++; do
test -e %{hpc_cf_install_path}/bin/${i##*,}%{hpc_gnu_bin_version} \ test -e %{hpc_cf_install_path}/bin/${i##*,} \
&& ln -s %{hpc_cf_install_path}/bin/${i%%%%,*} ${i##*,}%{hpc_gnu_bin_version} || true && ln -s ${i##*,} %{hpc_cf_install_path}/bin/${i%%%%,*} || true
done done
%else %else
# for the base compiler version link to the 'default' binary: # for the base compiler version link to the 'default' binary: