Create ubsan-runtime-env 61/94861/3
authorSlava Barinov <v.barinov@samsung.com>
Tue, 1 Nov 2016 13:24:09 +0000 (16:24 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 16 Nov 2016 04:47:35 +0000 (20:47 -0800)
The package installs libusan and sets up UBSAN_OPTIONS

Change-Id: I19929e7bff9c62ede70c5729751dd8a535869a70
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/gcc-aarch64.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec

index 748778d..992c9f2 100644 (file)
@@ -744,6 +744,17 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s
 # Restore /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
 
+%package -n ubsan-runtime-env
+Summary:    UBSan runtime environment for target device
+Group:      Development/Libraries
+Requires:   libubsan
+
+%description -n ubsan-runtime-env
+UBSan runtime environment
+
+%post -n ubsan-runtime-env
+echo "print_cmdline=true:log_path=/tmp/ubsan.log" > /UBSAN_OPTIONS
+
 %package plugin-devel
 Summary:       GNU GCC Plugin development files
 License:       GPL-3.0+
@@ -1214,6 +1225,9 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/
 /UBSAN_OPTIONS
 %{_rpmconfigdir}/macros.ubsan
 %{_rpmconfigdir}/tizen/extract-ubsan-logs
+
+%files -n ubsan-runtime-env
+%defattr(-,root,root,-)
 %endif
 
 %files -n sanitizer-devel
index 5862872..d0a2382 100644 (file)
@@ -744,6 +744,17 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s
 # Restore /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
 
+%package -n ubsan-runtime-env
+Summary:    UBSan runtime environment for target device
+Group:      Development/Libraries
+Requires:   libubsan
+
+%description -n ubsan-runtime-env
+UBSan runtime environment
+
+%post -n ubsan-runtime-env
+echo "print_cmdline=true:log_path=/tmp/ubsan.log" > /UBSAN_OPTIONS
+
 %package plugin-devel
 Summary:       GNU GCC Plugin development files
 License:       GPL-3.0+
@@ -1214,6 +1225,9 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/
 /UBSAN_OPTIONS
 %{_rpmconfigdir}/macros.ubsan
 %{_rpmconfigdir}/tizen/extract-ubsan-logs
+
+%files -n ubsan-runtime-env
+%defattr(-,root,root,-)
 %endif
 
 %files -n sanitizer-devel
index ad3cbf0..60f2afd 100644 (file)
@@ -741,6 +741,17 @@ echo "halt_on_error=false:start_deactivated=true:print_cmdline=true:quarantine_s
 # Restore /etc/ld.so.preload
 [ -f /etc/ld.so.preload.orig ] && mv -v /etc/ld.so.preload.orig /etc/ld.so.preload
 
+%package -n ubsan-runtime-env
+Summary:    UBSan runtime environment for target device
+Group:      Development/Libraries
+Requires:   libubsan
+
+%description -n ubsan-runtime-env
+UBSan runtime environment
+
+%post -n ubsan-runtime-env
+echo "print_cmdline=true:log_path=/tmp/ubsan.log" > /UBSAN_OPTIONS
+
 %package plugin-devel
 Summary:       GNU GCC Plugin development files
 License:       GPL-3.0+
@@ -1211,6 +1222,9 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/
 /UBSAN_OPTIONS
 %{_rpmconfigdir}/macros.ubsan
 %{_rpmconfigdir}/tizen/extract-ubsan-logs
+
+%files -n ubsan-runtime-env
+%defattr(-,root,root,-)
 %endif
 
 %files -n sanitizer-devel