From: Maxim Ostapenko Date: Mon, 25 Jul 2016 08:47:53 +0000 (+0300) Subject: Add manifest file. X-Git-Tag: accepted/tizen/base/20160805.171139~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa5d38a3a03ce6704de2b61bf2bf16a8dcd0924a;p=platform%2Fupstream%2Flinaro-gcc.git Add manifest file. We need it to avoid such errors on target device: sh-3.2# rpm -Uvh --nodeps --force libasan-4.9.2-11.7.armv7l.rpm Preparing... ################################# [100%] No manifest in this package. Creating default one Updating / installing... 1:libasan-4.9.2-11.7 ################################# [ 50%] /sbin/ldconfig: Cannot lstat /lib/libasan.so.3.0.0: Permission denied ----------------------------------------------------- There is no symbolic link. Change-Id: I972b3b5fb3a194c9e452d43d9ba1ed16886e9a3c Signed-off-by: Maxim Ostapenko --- diff --git a/packaging/gcc-aarch64.spec b/packaging/gcc-aarch64.spec index 4456f95..9db35be 100644 --- a/packaging/gcc-aarch64.spec +++ b/packaging/gcc-aarch64.spec @@ -87,6 +87,7 @@ Source15: gcc-force-options Source16: gcc-unforce-options Source17: ASAN_OPTIONS Source18: asan_symbolize.py +Source19: gcc.manifest Group: Development/Building Summary: The GNU C Compiler and Support Files License: GPL-3.0+ @@ -716,6 +717,7 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s %prep %setup -q -n gcc-%{version} +cp %{SOURCE19} . tar xf %{SOURCE10} ln -sf gmp-6.0.0 gmp @@ -888,6 +890,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS } %files +%manifest gcc.manifest %defattr(-,root,root) %{?cross: %{_bindir}/* @@ -941,6 +944,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %{_bindir}/%{target_arch}-c++ %files -n libstdc++ +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libstdc++.so.* @@ -953,57 +957,67 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %{_datadir}/gcc-%{version}/python/libstdcxx/* %files -n libgcc +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libgcc_s.so.* %files -n libgomp +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libgomp.so.* %ifarch %asan_arch %files -n libasan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libasan.so* %endif %ifarch %lsan_arch %files -n liblsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/liblsan.so* %endif %ifarch %tsan_arch %files -n libtsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libtsan.so* %endif %ifarch %atomic_arch %files -n libatomic +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libatomic.so.* %endif %ifarch %itm_arch %files -n libitm +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libitm.so.* %endif %ifarch %cilkrts_arch %files -n libcilkrts +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libcilkrts.so.* %endif %ifarch %ubsan_arch %files -n libubsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libubsan.so.* %endif %ifarch %quadmath_arch %files -n libquadmath +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libquadmath.so.* %endif @@ -1033,12 +1047,14 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %asan_arch %files -n libasan-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libasan.so.* %endif %ifarch %atomic_arch %files -n libatomic-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libatomic.so.* %endif @@ -1050,10 +1066,12 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %endif %files -n libgcc-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libgcc_s.so.* %files -n libgomp-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libgomp.so.* @@ -1071,11 +1089,13 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %ubsan_arch %files -n libubsan-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libubsan.so.* %endif %files -n libstdc++-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libstdc++.so.* %exclude %{libsubdir}/32/libstdc++.so.*-gdb.py @@ -1097,6 +1117,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %lsan_arch %files -n lsan-force-options +%manifest gcc.manifest %defattr(-,root,root,-) %{_prefix}/bin/gcc-force-options %{_prefix}/bin/gcc-unforce-options diff --git a/packaging/gcc-armv7l.spec b/packaging/gcc-armv7l.spec index 6243537..18da2ae 100644 --- a/packaging/gcc-armv7l.spec +++ b/packaging/gcc-armv7l.spec @@ -87,6 +87,7 @@ Source15: gcc-force-options Source16: gcc-unforce-options Source17: ASAN_OPTIONS Source18: asan_symbolize.py +Source19: gcc.manifest Group: Development/Building Summary: The GNU C Compiler and Support Files License: GPL-3.0+ @@ -716,6 +717,7 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s %prep %setup -q -n gcc-%{version} +cp %{SOURCE19} . tar xf %{SOURCE10} ln -sf gmp-6.0.0 gmp @@ -888,6 +890,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS } %files +%manifest gcc.manifest %defattr(-,root,root) %{?cross: %{_bindir}/* @@ -941,6 +944,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %{_bindir}/%{target_arch}-c++ %files -n libstdc++ +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libstdc++.so.* @@ -953,57 +957,67 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %{_datadir}/gcc-%{version}/python/libstdcxx/* %files -n libgcc +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libgcc_s.so.* %files -n libgomp +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libgomp.so.* %ifarch %asan_arch %files -n libasan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libasan.so* %endif %ifarch %lsan_arch %files -n liblsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/liblsan.so* %endif %ifarch %tsan_arch %files -n libtsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libtsan.so* %endif %ifarch %atomic_arch %files -n libatomic +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libatomic.so.* %endif %ifarch %itm_arch %files -n libitm +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libitm.so.* %endif %ifarch %cilkrts_arch %files -n libcilkrts +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libcilkrts.so.* %endif %ifarch %ubsan_arch %files -n libubsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libubsan.so.* %endif %ifarch %quadmath_arch %files -n libquadmath +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libquadmath.so.* %endif @@ -1033,12 +1047,14 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %asan_arch %files -n libasan-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libasan.so.* %endif %ifarch %atomic_arch %files -n libatomic-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libatomic.so.* %endif @@ -1050,10 +1066,12 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %endif %files -n libgcc-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libgcc_s.so.* %files -n libgomp-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libgomp.so.* @@ -1071,11 +1089,13 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %ubsan_arch %files -n libubsan-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libubsan.so.* %endif %files -n libstdc++-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libstdc++.so.* %exclude %{libsubdir}/32/libstdc++.so.*-gdb.py @@ -1097,6 +1117,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %lsan_arch %files -n lsan-force-options +%manifest gcc.manifest %defattr(-,root,root,-) %{_prefix}/bin/gcc-force-options %{_prefix}/bin/gcc-unforce-options diff --git a/packaging/gcc.manifest b/packaging/gcc.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/gcc.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/linaro-gcc.spec b/packaging/linaro-gcc.spec index 5cb6f61..428cd3e 100644 --- a/packaging/linaro-gcc.spec +++ b/packaging/linaro-gcc.spec @@ -84,6 +84,7 @@ Source15: gcc-force-options Source16: gcc-unforce-options Source17: ASAN_OPTIONS Source18: asan_symbolize.py +Source19: gcc.manifest Group: Development/Building Summary: The GNU C Compiler and Support Files License: GPL-3.0+ @@ -713,6 +714,7 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s %prep %setup -q -n gcc-%{version} +cp %{SOURCE19} . tar xf %{SOURCE10} ln -sf gmp-6.0.0 gmp @@ -885,6 +887,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS } %files +%manifest gcc.manifest %defattr(-,root,root) %{?cross: %{_bindir}/* @@ -938,6 +941,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %{_bindir}/%{target_arch}-c++ %files -n libstdc++ +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libstdc++.so.* @@ -950,57 +954,67 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %{_datadir}/gcc-%{version}/python/libstdcxx/* %files -n libgcc +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libgcc_s.so.* %files -n libgomp +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libgomp.so.* %ifarch %asan_arch %files -n libasan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libasan.so* %endif %ifarch %lsan_arch %files -n liblsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/liblsan.so* %endif %ifarch %tsan_arch %files -n libtsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libtsan.so* %endif %ifarch %atomic_arch %files -n libatomic +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libatomic.so.* %endif %ifarch %itm_arch %files -n libitm +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libitm.so.* %endif %ifarch %cilkrts_arch %files -n libcilkrts +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libcilkrts.so.* %endif %ifarch %ubsan_arch %files -n libubsan +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libubsan.so.* %endif %ifarch %quadmath_arch %files -n libquadmath +%manifest gcc.manifest %defattr(-,root,root) %{libdir}/libquadmath.so.* %endif @@ -1030,12 +1044,14 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %asan_arch %files -n libasan-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libasan.so.* %endif %ifarch %atomic_arch %files -n libatomic-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libatomic.so.* %endif @@ -1047,10 +1063,12 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %endif %files -n libgcc-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libgcc_s.so.* %files -n libgomp-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libgomp.so.* @@ -1068,11 +1086,13 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %ubsan_arch %files -n libubsan-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libubsan.so.* %endif %files -n libstdc++-32bit +%manifest gcc.manifest %defattr(-,root,root) %{libsubdir}/32/libstdc++.so.* %exclude %{libsubdir}/32/libstdc++.so.*-gdb.py @@ -1094,6 +1114,7 @@ chmod 644 %{buildroot}/ASAN_OPTIONS %ifarch %lsan_arch %files -n lsan-force-options +%manifest gcc.manifest %defattr(-,root,root,-) %{_prefix}/bin/gcc-force-options %{_prefix}/bin/gcc-unforce-options