Apply to prevent stripping .rustc section symbols 44/318044/1
authorChanggyu Choi <changyu.choi@samsung.com>
Tue, 24 Sep 2024 04:18:24 +0000 (13:18 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Tue, 24 Sep 2024 04:18:24 +0000 (13:18 +0900)
In some environments, the current approach needs to be changed because the %check step is not executed.

Change-Id: Ife0fa61028be66fa95762ff7323d11730b425025
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
packaging/capi-appfw-event.spec

index c2403c284734d5e5109f1450c95208819718a222..6c100bede09c931399caba79625fabc0a6e5b39b 100644 (file)
@@ -91,8 +91,6 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
         ./src/rust-app-event/src/lib.rs
 
 %check
-mv %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name} %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}.so
-
 export LD_LIBRARY_PATH="../../src/app-event"
 ctest -V %{?_smp_mflags}
 
@@ -157,7 +155,8 @@ mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name}
 install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/
 
 install -d -m 0755 %{buildroot}%{_rust_dylibdir}
-install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}
+install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}.so
+strip -s -N .rustc %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}.so
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig