- 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
This commit is contained in:
parent
b16aa05ebe
commit
b6a2b7d8aa
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user