[M130 Migration][ROM Size] Move libatomic from BuildRequires to Requires 77/320677/1 accepted/tizen/unified/20250306.094547 accepted/tizen/unified/x/20250306.134922
authorSatyaveer Singh <satyaveer.s@samsung.com>
Wed, 5 Mar 2025 14:38:41 +0000 (20:08 +0530)
committerSatyaveer Singh <satyaveer.s@samsung.com>
Wed, 5 Mar 2025 14:38:41 +0000 (20:08 +0530)
This commit changes libatomic as Requires instead of BuildRequires in
spec file which expects the files to be added in platform image and
removes libatomic.so from final chromium rpm.

References:
1. https://archive.tizen.org/gerrit/314952
2. https://archive.tizen.org/gerrit/315686

Change-Id: I36e17502ae89bb53e8aba82206aabf0cc769b89d
Signed-off-by: Satyaveer Singh <satyaveer.s@samsung.com>
packaging/chromium-efl.spec
tizen_src/ewk/efl_integration/BUILD.gn

index e330e90e108660d15fb899b6d5aac0e8fddc96b0..cef60d826e9664b603abae4400746be34c7fcc6e 100644 (file)
@@ -95,11 +95,12 @@ Requires: /usr/bin/systemctl
 Requires(post): /sbin/ldconfig
 Requires(post): xkeyboard-config
 Requires(postun): /sbin/ldconfig
+Requires: libatomic
 
 %ifnarch riscv64
 BuildRequires: binutils-gold
 %endif
-BuildRequires: at-spi2-atk-devel, bison, edje-tools, expat-devel, flex, gettext, gperf, libatk-bridge-2_0-0, libcap-devel, libcurl, libatomic
+BuildRequires: at-spi2-atk-devel, bison, edje-tools, expat-devel, flex, gettext, gperf, libatk-bridge-2_0-0, libcap-devel, libcurl
 BuildRequires: libjpeg-turbo-devel, ninja, perl, python3, python3-xml, which
 %if 0%{?__enable_platform_api_wrapper}
 BuildRequires: cmake
@@ -727,11 +728,6 @@ install -d "%{buildroot}"%{_bindir}
 install -d "%{buildroot}"%{_libdir}
 install -d "%{buildroot}"%{CHROMIUM_APP_DIR}/bin
 
-install -d "%{buildroot}"%{_libdir}/../local/lib/
-%if %{__use_clang} == 1
-  install -m 0644 %{_libdir}/libatomic.so*         "%{buildroot}"%{_libdir}/../local/lib/
-%endif
-
 install -d "%{buildroot}"%{_includedir}/v8/cppgc
 install -m 0644 v8/include/cppgc/common.h "%{buildroot}"%{_includedir}/v8/cppgc/
 
@@ -1114,9 +1110,6 @@ rm -rf %{CHROMIUM_TPK_DIR}/%{_tpk_file_name}.tpk
 %endif
 %{_xmldir}/%{_pkgid}.xml
 %defattr(-,root,root,-)
-%if %{__use_clang} == 1
-  %{_libdir}/../local/lib/libatomic.so*
-%endif
 
 %{CHROMIUM_LIB_DIR}/version
 %{CHROMIUM_LIB_DIR}/bin/snapshot_blob.bin
index b0ac41ada902be16a7bdfefaa58dfebe348c0313..d93e74d8629dd1885ffedee55779b635653896af 100644 (file)
@@ -263,8 +263,7 @@ shared_library("chromium-ewk") {
   }
 
   libs = []
-  if (is_clang) {
-    libs += [ "atomic" ]
+  if (is_tizen) {
     ldflags += [ "-Wl,-rpath=\$ORIGIN/:/usr/local/lib/" ]
   }