From 6030c5924d94009cdb6afc3edde948ae1f1bb119 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Tue, 28 Feb 2017 15:17:45 +0300 Subject: [PATCH] Add liblsan packaging Change-Id: I44084744a83cdc87e69b2a1f25cc4138bac31913 Signed-off-by: Slava Barinov --- packaging/gcc-aarch64.spec | 19 ++++++++++++++++++- packaging/gcc-armv7l.spec | 19 ++++++++++++++++++- packaging/linaro-gcc.spec | 19 ++++++++++++++++++- 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/packaging/gcc-aarch64.spec b/packaging/gcc-aarch64.spec index 3789d9f..b17605d 100644 --- a/packaging/gcc-aarch64.spec +++ b/packaging/gcc-aarch64.spec @@ -27,7 +27,7 @@ %define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64 %define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64 %define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k -%define lsan_arch x86_64 aarch64 +%define lsan_arch x86_64 %ix86 armv7l aarch64 %define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64 %define cilkrts_arch x86_64 %ix86 @@ -501,6 +501,16 @@ The runtime library needed to run programs compiled with the %post -n libasan-32bit -p /sbin/ldconfig %postun -n libasan-32bit -p /sbin/ldconfig +%package -n liblsan-32bit +Summary: The GNU Compiler Address Sanitizer Runtime Library +License: MIT +Group: Development/Languages +%description -n liblsan-32bit +The runtime library needed to run programs compiled with the +-fsanitize=leak option of the GNU Compiler Collection (GCC). +%post -n liblsan-32bit -p /sbin/ldconfig +%postun -n liblsan-32bit -p /sbin/ldconfig + %package -n libtsan-32bit Summary: The GNU Compiler Thread Sanitizer Runtime Library License: MIT @@ -1128,6 +1138,13 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libsubdir}/32/libasan.so.* %endif +%ifarch %lsan_arch +%files -n liblsan-32bit +%manifest gcc.manifest +%defattr(-,root,root) +%{libsubdir}/32/liblsan.so.* +%endif + %ifarch %atomic_arch %files -n libatomic-32bit %manifest gcc.manifest diff --git a/packaging/gcc-armv7l.spec b/packaging/gcc-armv7l.spec index 32f66e0..f345695 100644 --- a/packaging/gcc-armv7l.spec +++ b/packaging/gcc-armv7l.spec @@ -27,7 +27,7 @@ %define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64 %define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64 %define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k -%define lsan_arch x86_64 aarch64 +%define lsan_arch x86_64 %ix86 armv7l aarch64 %define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64 %define cilkrts_arch x86_64 %ix86 @@ -501,6 +501,16 @@ The runtime library needed to run programs compiled with the %post -n libasan-32bit -p /sbin/ldconfig %postun -n libasan-32bit -p /sbin/ldconfig +%package -n liblsan-32bit +Summary: The GNU Compiler Address Sanitizer Runtime Library +License: MIT +Group: Development/Languages +%description -n liblsan-32bit +The runtime library needed to run programs compiled with the +-fsanitize=leak option of the GNU Compiler Collection (GCC). +%post -n liblsan-32bit -p /sbin/ldconfig +%postun -n liblsan-32bit -p /sbin/ldconfig + %package -n libtsan-32bit Summary: The GNU Compiler Thread Sanitizer Runtime Library License: MIT @@ -1128,6 +1138,13 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libsubdir}/32/libasan.so.* %endif +%ifarch %lsan_arch +%files -n liblsan-32bit +%manifest gcc.manifest +%defattr(-,root,root) +%{libsubdir}/32/liblsan.so.* +%endif + %ifarch %atomic_arch %files -n libatomic-32bit %manifest gcc.manifest diff --git a/packaging/linaro-gcc.spec b/packaging/linaro-gcc.spec index 18ff851..af16078 100644 --- a/packaging/linaro-gcc.spec +++ b/packaging/linaro-gcc.spec @@ -24,7 +24,7 @@ %define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64 %define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64 %define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k -%define lsan_arch x86_64 aarch64 +%define lsan_arch x86_64 %ix86 armv7l aarch64 %define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64 %define cilkrts_arch x86_64 %ix86 @@ -498,6 +498,16 @@ The runtime library needed to run programs compiled with the %post -n libasan-32bit -p /sbin/ldconfig %postun -n libasan-32bit -p /sbin/ldconfig +%package -n liblsan-32bit +Summary: The GNU Compiler Address Sanitizer Runtime Library +License: MIT +Group: Development/Languages +%description -n liblsan-32bit +The runtime library needed to run programs compiled with the +-fsanitize=leak option of the GNU Compiler Collection (GCC). +%post -n liblsan-32bit -p /sbin/ldconfig +%postun -n liblsan-32bit -p /sbin/ldconfig + %package -n libtsan-32bit Summary: The GNU Compiler Thread Sanitizer Runtime Library License: MIT @@ -1125,6 +1135,13 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/ %{libsubdir}/32/libasan.so.* %endif +%ifarch %lsan_arch +%files -n liblsan-32bit +%manifest gcc.manifest +%defattr(-,root,root) +%{libsubdir}/32/liblsan.so.* +%endif + %ifarch %atomic_arch %files -n libatomic-32bit %manifest gcc.manifest -- 2.7.4