packagaing: Reset the result of hal-compatibility-checker 37/311737/4 accepted/tizen/unified/20240621.010412 accepted/tizen/unified/dev/20240701.073009 accepted/tizen/unified/toolchain/20240624.121536 accepted/tizen/unified/x/20240624.032003 accepted/tizen/unified/x/asan/20240625.092627
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 27 May 2024 02:28:52 +0000 (11:28 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 19 Jun 2024 12:34:01 +0000 (21:34 +0900)
HALCC (HAL Compatibility Checker) checks and stores the compatibility
result of hal-backend package under /opt/etc/hal/ directory.

When installing/un-installing hal-api packages,
compatibility result between HAL manifest and hal-backend package should
be reset. So that reset the result of hal-compatibility-checker by
'usr/bin/hal-compatibility-checker --reset' command.

Change-Id: I531805ba0f985c842b3fd96ce03b9619d67ce6a1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
packaging/hal-api-device.spec

index b06022b72625a3e3b049d2a94fb8d4736688e72e..c32e7ab231768e3da887ccb1c97c81b215691f1d 100644 (file)
@@ -50,9 +50,13 @@ mkdir -p %{buildroot}%{_sysconfdir}/hal
 cp %{SOURCE2} %{buildroot}%{_sysconfdir}/hal/
 %make_install
 
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+/usr/bin/hal-compatibility-checker --reset
 
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+/usr/bin/hal-compatibility-checker --reset
 
 %files
 %manifest %{name}.manifest