From b6a2b7d8aa4e1a03eaf4f8b9c9941bd3cd55626314ebaf8013ae92b78b9ec783 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 13 Jun 2017 11:56:15 +0000 Subject: [PATCH] - Fix cross compiler update-alternatives machinery to make rpmlint happy. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc7?expand=0&rev=62 --- cross-aarch64-gcc7.changes | 6 +++++ cross-aarch64-gcc7.spec | 38 ++++++++++++++++++++++----- cross-arm-gcc7.changes | 6 +++++ cross-arm-gcc7.spec | 38 ++++++++++++++++++++++----- cross-avr-gcc7.changes | 6 +++++ cross-avr-gcc7.spec | 38 ++++++++++++++++++++++----- cross-epiphany-gcc7-bootstrap.changes | 6 +++++ cross-epiphany-gcc7-bootstrap.spec | 38 ++++++++++++++++++++++----- cross-epiphany-gcc7.changes | 6 +++++ cross-epiphany-gcc7.spec | 38 ++++++++++++++++++++++----- cross-hppa-gcc7.changes | 6 +++++ cross-hppa-gcc7.spec | 38 ++++++++++++++++++++++----- cross-i386-gcc7.changes | 6 +++++ cross-i386-gcc7.spec | 38 ++++++++++++++++++++++----- cross-m68k-gcc7.changes | 6 +++++ cross-m68k-gcc7.spec | 38 ++++++++++++++++++++++----- cross-mips-gcc7.changes | 6 +++++ cross-mips-gcc7.spec | 38 ++++++++++++++++++++++----- cross-nvptx-gcc7.changes | 6 +++++ cross-nvptx-gcc7.spec | 38 ++++++++++++++++++++++----- cross-ppc64-gcc7.changes | 6 +++++ cross-ppc64-gcc7.spec | 38 ++++++++++++++++++++++----- cross-ppc64le-gcc7.changes | 6 +++++ cross-ppc64le-gcc7.spec | 38 ++++++++++++++++++++++----- cross-rx-gcc7-bootstrap.changes | 6 +++++ cross-rx-gcc7-bootstrap.spec | 38 ++++++++++++++++++++++----- cross-rx-gcc7.changes | 6 +++++ cross-rx-gcc7.spec | 38 ++++++++++++++++++++++----- cross-s390x-gcc7.changes | 6 +++++ cross-s390x-gcc7.spec | 38 ++++++++++++++++++++++----- cross-sparc-gcc7.changes | 6 +++++ cross-sparc-gcc7.spec | 38 ++++++++++++++++++++++----- cross-sparc64-gcc7.changes | 6 +++++ cross-sparc64-gcc7.spec | 38 ++++++++++++++++++++++----- cross-x86_64-gcc7.changes | 6 +++++ cross-x86_64-gcc7.spec | 38 ++++++++++++++++++++++----- cross.spec.in | 38 ++++++++++++++++++++++----- gcc7-testresults.changes | 6 +++++ gcc7.changes | 6 +++++ 39 files changed, 728 insertions(+), 114 deletions(-) diff --git a/cross-aarch64-gcc7.changes b/cross-aarch64-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-aarch64-gcc7.changes +++ b/cross-aarch64-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-aarch64-gcc7.spec b/cross-aarch64-gcc7.spec index 451f06f..5496a1d 100644 --- a/cross-aarch64-gcc7.spec +++ b/cross-aarch64-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-arm-gcc7.changes b/cross-arm-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-arm-gcc7.changes +++ b/cross-arm-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-arm-gcc7.spec b/cross-arm-gcc7.spec index b889f36..9246694 100644 --- a/cross-arm-gcc7.spec +++ b/cross-arm-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-avr-gcc7.changes b/cross-avr-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-avr-gcc7.changes +++ b/cross-avr-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-avr-gcc7.spec b/cross-avr-gcc7.spec index daf892a..c76e88b 100644 --- a/cross-avr-gcc7.spec +++ b/cross-avr-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-epiphany-gcc7-bootstrap.changes b/cross-epiphany-gcc7-bootstrap.changes index 410f1e9..483979a 100644 --- a/cross-epiphany-gcc7-bootstrap.changes +++ b/cross-epiphany-gcc7-bootstrap.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-epiphany-gcc7-bootstrap.spec b/cross-epiphany-gcc7-bootstrap.spec index b946e2f..c3539a0 100644 --- a/cross-epiphany-gcc7-bootstrap.spec +++ b/cross-epiphany-gcc7-bootstrap.spec @@ -655,8 +655,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -668,12 +676,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -695,6 +701,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-epiphany-gcc7.changes b/cross-epiphany-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-epiphany-gcc7.changes +++ b/cross-epiphany-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-epiphany-gcc7.spec b/cross-epiphany-gcc7.spec index 0e2e17c..6436134 100644 --- a/cross-epiphany-gcc7.spec +++ b/cross-epiphany-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-hppa-gcc7.changes b/cross-hppa-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-hppa-gcc7.changes +++ b/cross-hppa-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-hppa-gcc7.spec b/cross-hppa-gcc7.spec index 0300e94..c6e2a95 100644 --- a/cross-hppa-gcc7.spec +++ b/cross-hppa-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-i386-gcc7.changes b/cross-i386-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-i386-gcc7.changes +++ b/cross-i386-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-i386-gcc7.spec b/cross-i386-gcc7.spec index 31beb5a..30e2fe1 100644 --- a/cross-i386-gcc7.spec +++ b/cross-i386-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-m68k-gcc7.changes b/cross-m68k-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-m68k-gcc7.changes +++ b/cross-m68k-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-m68k-gcc7.spec b/cross-m68k-gcc7.spec index af3497a..e7b11d4 100644 --- a/cross-m68k-gcc7.spec +++ b/cross-m68k-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-mips-gcc7.changes b/cross-mips-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-mips-gcc7.changes +++ b/cross-mips-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-mips-gcc7.spec b/cross-mips-gcc7.spec index ffaa57f..889ba63 100644 --- a/cross-mips-gcc7.spec +++ b/cross-mips-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-nvptx-gcc7.changes b/cross-nvptx-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-nvptx-gcc7.changes +++ b/cross-nvptx-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-nvptx-gcc7.spec b/cross-nvptx-gcc7.spec index 4dc7e93..9db5280 100644 --- a/cross-nvptx-gcc7.spec +++ b/cross-nvptx-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-ppc64-gcc7.changes b/cross-ppc64-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-ppc64-gcc7.changes +++ b/cross-ppc64-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-ppc64-gcc7.spec b/cross-ppc64-gcc7.spec index 5fb1944..1c7960e 100644 --- a/cross-ppc64-gcc7.spec +++ b/cross-ppc64-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-ppc64le-gcc7.changes b/cross-ppc64le-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-ppc64le-gcc7.changes +++ b/cross-ppc64le-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-ppc64le-gcc7.spec b/cross-ppc64le-gcc7.spec index 4ac789d..fb63d7f 100644 --- a/cross-ppc64le-gcc7.spec +++ b/cross-ppc64le-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-rx-gcc7-bootstrap.changes b/cross-rx-gcc7-bootstrap.changes index 410f1e9..483979a 100644 --- a/cross-rx-gcc7-bootstrap.changes +++ b/cross-rx-gcc7-bootstrap.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-rx-gcc7-bootstrap.spec b/cross-rx-gcc7-bootstrap.spec index 7905af9..9425122 100644 --- a/cross-rx-gcc7-bootstrap.spec +++ b/cross-rx-gcc7-bootstrap.spec @@ -655,8 +655,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -668,12 +676,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -695,6 +701,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-rx-gcc7.changes b/cross-rx-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-rx-gcc7.changes +++ b/cross-rx-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-rx-gcc7.spec b/cross-rx-gcc7.spec index 1abfd3a..7abb713 100644 --- a/cross-rx-gcc7.spec +++ b/cross-rx-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-s390x-gcc7.changes b/cross-s390x-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-s390x-gcc7.changes +++ b/cross-s390x-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-s390x-gcc7.spec b/cross-s390x-gcc7.spec index 85348b7..10a1aa0 100644 --- a/cross-s390x-gcc7.spec +++ b/cross-s390x-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-sparc-gcc7.changes b/cross-sparc-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-sparc-gcc7.changes +++ b/cross-sparc-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-sparc-gcc7.spec b/cross-sparc-gcc7.spec index 818842a..5f29e7b 100644 --- a/cross-sparc-gcc7.spec +++ b/cross-sparc-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-sparc64-gcc7.changes b/cross-sparc64-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-sparc64-gcc7.changes +++ b/cross-sparc64-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-sparc64-gcc7.spec b/cross-sparc64-gcc7.spec index 6dd841d..0f8c0b0 100644 --- a/cross-sparc64-gcc7.spec +++ b/cross-sparc64-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross-x86_64-gcc7.changes b/cross-x86_64-gcc7.changes index 410f1e9..483979a 100644 --- a/cross-x86_64-gcc7.changes +++ b/cross-x86_64-gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/cross-x86_64-gcc7.spec b/cross-x86_64-gcc7.spec index d31e635..6f5bac0 100644 --- a/cross-x86_64-gcc7.spec +++ b/cross-x86_64-gcc7.spec @@ -654,8 +654,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -667,12 +675,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -694,6 +700,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/cross.spec.in b/cross.spec.in index d98e3ea..8662cdf 100644 --- a/cross.spec.in +++ b/cross.spec.in @@ -241,8 +241,16 @@ rpm -q --changelog binutils > usr/share/icecream-envs/%{name}_%{_arch}.binutils rm -r env %endif -%post +# we provide update-alternatives for selecting a compiler version for +# crosses %if 0%{!?gcc_accel:1} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for ex in gcc c++ cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool; do + ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ + %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex +done + +%post %{_sbindir}/update-alternatives \ --install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} @base_ver@ \ --slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \ @@ -254,12 +262,10 @@ rm -r env --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} -%endif -%postun -%if 0%{!?gcc_accel:1} -if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then -%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} +%preun +if [ "$1" = 0 ] ; then + %{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} fi %endif @@ -281,6 +287,26 @@ fi %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc +%ghost %{_prefix}/bin/%{gcc_target_arch}-c++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-cpp +%ghost %{_prefix}/bin/%{gcc_target_arch}-g++ +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ar +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-nm +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%ghost %{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-c++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-g++ +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump +%ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool %endif %dir %{targetlibsubdir} %dir %{_libdir}/gcc/%{gcc_target_arch} diff --git a/gcc7-testresults.changes b/gcc7-testresults.changes index 410f1e9..483979a 100644 --- a/gcc7-testresults.changes +++ b/gcc7-testresults.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com diff --git a/gcc7.changes b/gcc7.changes index 410f1e9..483979a 100644 --- a/gcc7.changes +++ b/gcc7.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 13 08:42:45 UTC 2017 - rguenther@suse.com + +- Fix cross compiler update-alternatives machinery to make rpmlint + happy. + ------------------------------------------------------------------- Fri Jun 9 11:20:46 UTC 2017 - rguenther@suse.com