Hello community, here is the log from the commit of package gnu-compilers-hpc for openSUSE:Factory checked in at 2019-02-25 17:44:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnu-compilers-hpc (Old) and /work/SRC/openSUSE:Factory/.gnu-compilers-hpc.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "gnu-compilers-hpc" Mon Feb 25 17:44:46 2019 rev:7 rq:674844 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/gnu-compilers-hpc/gnu-compilers-hpc.changes 2018-11-19 23:32:57.563123713 +0100 +++ /work/SRC/openSUSE:Factory/.gnu-compilers-hpc.new.28833/gnu-compilers-hpc.changes 2019-02-25 17:44:47.642921391 +0100 @@ -1,0 +2,7 @@ +Wed Jan 16 15:01:07 UTC 2019 - eich@suse.com + +- Add links from the generic compiler binary names cc, cpp, c++ + and fc to the compiler specific names in the package private + binary directory. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnu-compilers-hpc.spec ++++++ --- /var/tmp/diff_new_pack.8cbXBk/_old 2019-02-25 17:44:48.150921183 +0100 +++ /var/tmp/diff_new_pack.8cbXBk/_new 2019-02-25 17:44:48.150921183 +0100 @@ -1,7 +1,7 @@ # # spec file for package gnu # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -56,7 +56,7 @@ License: BSD-3-Clause Group: Development/Tools/Other Name: %myname -Version: 1.3 +Version: 1.4 Release: 0 Url: https://github.com/openhpc/ohpc @@ -145,9 +145,9 @@ set version %{hpc_cf_dep_version} prepend-path MODULEPATH %{hpc_modulepath} +prepend-path PATH %{hpc_cf_install_path}/bin %if 0%{?c_f_ver:1} > 0 prepend-path MANPATH %{hpc_cf_install_path}/man -prepend-path PATH %{hpc_cf_install_path}/bin setenv CC gcc%{hpc_gnu_bin_version} setenv CXX g++%{hpc_gnu_bin_version} setenv FC gfortran%{hpc_gnu_bin_version} @@ -175,11 +175,11 @@ rm -rf %{hpc_cf_install_path}/bin %{hpc_cf_install_path}/bin %endif -%if 0%{?c_f_ver:1} %posttrans devel +mkdir -p %{hpc_cf_install_path}/bin +%if 0%{?c_f_ver:1} export list="cpp%{hpc_cf_pack_version} gcc%{hpc_cf_pack_version} \ gcc%{hpc_cf_pack_version}-c++ gcc%{hpc_cf_pack_version}-fortran" -mkdir -p %{hpc_cf_install_path}/bin for i in $(rpm -ql ${list} | grep -E -e "/usr/bin|/usr/share/man") do dir=$(dirname $i) @@ -197,7 +197,15 @@ ;; esac done +%else +# for the base compiler version link to the 'default' binary: +localbindir=%_bindir/ %endif +for i in cc cpp c++ +do + test -e %{hpc_cf_install_path}/bin/${i} || ln -sf ${localbindir}${i}%{hpc_gnu_bin_version} %{hpc_cf_install_path}/bin/${i} +done +test -e %{hpc_cf_install_path}/bin/fortran || ln -sf ${localbindir}gfortran%{hpc_gnu_bin_version} %{hpc_cf_install_path}/bin/fc %files %defattr(-,root,root,-)