Modify to exclude glibc when profile is TV 24/320124/3
authorSangYoun Kwak <sy.kwak@samsung.com>
Thu, 7 Nov 2024 02:10:21 +0000 (11:10 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Mon, 11 Nov 2024 09:51:56 +0000 (18:51 +0900)
Since the glibc should not be included in the hal-rootstrap when the
profile is TV, due to the collision between header files of root(/) and
hal-rootstrap.
To accomplish this, spec file is modified to exclude glibc-related
requires(BuildRequires and Requires). Also, *-rs.xml files should be
excluded, they are removed after copied.

Change-Id: I70ac08fd4f689b0ca1e526eaad2e64e9c4330fe3
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
packaging/hal-rootstrap-data-common.spec

index f5b00fc72f3609f59e7ec95b8a57d567b4476c74..649b5dac0f963ade8b7cd75e8a81886e740079cc 100644 (file)
@@ -78,22 +78,6 @@ Requires:    vulkan-loader-devel
 BuildRequires: vulkan-loader-devel
 Requires:      vulkan-headers
 BuildRequires: vulkan-headers
-Requires:      glibc
-BuildRequires: glibc
-Requires:      glibc-devel
-BuildRequires: glibc-devel
-Requires:      glibc-devel-static
-BuildRequires: glibc-devel-static
-Requires:      glibc-devel-utils
-BuildRequires: glibc-devel-utils
-Requires:      glibc-extra
-BuildRequires: glibc-extra
-Requires:      glibc-locale
-BuildRequires: glibc-locale
-Requires:      glibc-profile
-BuildRequires: glibc-profile
-Requires:      linux-glibc-devel
-BuildRequires: linux-glibc-devel
 Requires:      libcurl
 BuildRequires: libcurl
 Requires:      libcurl-devel
@@ -167,6 +151,22 @@ Requires:  pkgconfig(hal-api-tdm)
 BuildRequires: pkgconfig(hal-api-tdm)
 
 %if "%{tizen_profile_name}" != "tv" && "%{mv_prj}" != "1"
+Requires:      glibc
+BuildRequires: glibc
+Requires:      glibc-devel
+BuildRequires: glibc-devel
+Requires:      glibc-devel-static
+BuildRequires: glibc-devel-static
+Requires:      glibc-devel-utils
+BuildRequires: glibc-devel-utils
+Requires:      glibc-extra
+BuildRequires: glibc-extra
+Requires:      glibc-locale
+BuildRequires: glibc-locale
+Requires:      glibc-profile
+BuildRequires: glibc-profile
+Requires:      linux-glibc-devel
+BuildRequires: linux-glibc-devel
 Requires:      pkgconfig(capi-system-peripheral-io)
 BuildRequires: pkgconfig(capi-system-peripheral-io)
 Requires:      pkgconfig(hal-api-bluetooth)
@@ -199,6 +199,17 @@ mkdir %{buildroot}
 mkdir -p %{buildroot}/tmp
 ls -al
 cp -R ./rs_resource %{buildroot}/tmp
+%if "%{tizen_profile_name}" == "tv" || "%{mv_prj}" == "1"
+rm -f %{buildroot}/tmp/common/OSS/baserpm/glibc-rs.xml
+rm -f %{buildroot}/tmp/common/NativeAPI/capi-system-peripheral-io-rs.xml
+rm -f %{buildroot}/tmp/common/HAL/hal-api-bluetooth-rs.xml
+rm -f %{buildroot}/tmp/common/HAL/hal-api-location-rs.xml
+rm -f %{buildroot}/tmp/common/HAL/hal-api-power-rs.xml
+rm -f %{buildroot}/tmp/common/HAL/hal-api-radio-rs.xml
+rm -f %{buildroot}/tmp/common/HAL/hal-api-uwb-rs.xml
+rm -f %{buildroot}/tmp/common/HAL/hal-api-wifi-rs.xml
+rm -f %{buildroot}/tmp/common/HAL/hal-api-zigbee-rs.xml
+%endif
 
 %files
 /tmp/*