emul64: use public init method for gumd service 66/310066/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.233114 accepted/tizen/unified/20240425.114143 accepted/tizen/unified/dev/20240620.010744 accepted/tizen/unified/toolchain/20240427.045721 accepted/tizen/unified/x/20240426.050447 accepted/tizen/unified/x/asan/20240625.092532 tizen_9.0_m2_release
authorGaurav Gupta <g.gupta@samsung.com>
Tue, 9 Apr 2024 04:16:03 +0000 (09:46 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 22 Apr 2024 03:14:01 +0000 (12:14 +0900)
In 64-bit TV emulator gumd service is failed to launch.
So, webapps could not be installed.
Switch to public tizen gumd init mechanism for 64-bit emulator.

Change-Id: I05d0cb8ca76d0f3516a9a0685ad14c3cf8bffd95
Signed-off-by: Gaurav Gupta <g.gupta@samsung.com>
packaging/gumd.spec

index 969ad28..082db5c 100644 (file)
@@ -98,8 +98,11 @@ Requires:   libgum = %{version}-%{release}
 cp -a %{SOURCE1001} %{name}.manifest
 cp -a %{SOURCE1002} libgum.manifest
 cp data/gumd.service data/gumd.service.wearable
 cp -a %{SOURCE1001} %{name}.manifest
 cp -a %{SOURCE1002} libgum.manifest
 cp data/gumd.service data/gumd.service.wearable
+%ifarch x86_64
+%define emul_arch x86_64
+%endif
 
 
-%if "%{tizen_profile_name}" == "tv"
+%if "%{tizen_profile_name}" == "tv" && "%{emul_arch}" != "x86_64"
 mv "%{GUMD_DBUS_SERVICE}".vd.in "%{GUMD_DBUS_SERVICE}".in
 %else
 mv "%{GUMD_DBUS_SERVICE}".common.in "%{GUMD_DBUS_SERVICE}".in
 mv "%{GUMD_DBUS_SERVICE}".vd.in "%{GUMD_DBUS_SERVICE}".in
 %else
 mv "%{GUMD_DBUS_SERVICE}".common.in "%{GUMD_DBUS_SERVICE}".in
@@ -128,6 +131,9 @@ install -m 755 -d %{buildroot}%{_sysconfdir}/%{name}
 install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
 install -m 755 -d %{buildroot}%{_unitdir}
 install -m 644 data/gumd.service.wearable %{buildroot}%{_unitdir}
 install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
 install -m 755 -d %{buildroot}%{_unitdir}
 install -m 644 data/gumd.service.wearable %{buildroot}%{_unitdir}
+%if "%{tizen_profile_name}" == "tv" && "%{emul_arch}" == "x86_64"
+install -m 644 data/gumd.service %{buildroot}%{_unitdir}
+%endif
 %if "%{tizen_profile_name}" != "tv"
 install -m 644 data/gumd.service %{buildroot}%{_unitdir}
 %endif
 %if "%{tizen_profile_name}" != "tv"
 install -m 644 data/gumd.service %{buildroot}%{_unitdir}
 %endif
@@ -193,6 +199,9 @@ mv %{_unitdir}/gumd.service.wearable %{_unitdir}/gumd.service
 %dir %{_sysconfdir}/dbus-1
 %dir %{_sysconfdir}/dbus-1/system.d
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf
 %dir %{_sysconfdir}/dbus-1
 %dir %{_sysconfdir}/dbus-1/system.d
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf
+%if "%{tizen_profile_name}" == "tv" && "%{emul_arch}" == "x86_64"
+%{_unitdir}/gumd.service
+%endif
 %if "%{tizen_profile_name}" != "tv"
 %{_unitdir}/gumd.service
 %endif
 %if "%{tizen_profile_name}" != "tv"
 %{_unitdir}/gumd.service
 %endif