From: Chanwoo Choi Date: Fri, 21 Mar 2025 08:17:22 +0000 (+0900) Subject: hal-backend-service: Move install path to /usr/bin/hal to use dlconf X-Git-Tag: accepted/tizen/unified/20250326.130857~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8becdd756bbd767a057446081256ff3cd9d8a85;p=platform%2Fhal%2Fapi%2Fcommon.git hal-backend-service: Move install path to /usr/bin/hal to use dlconf Move install path of hal-backend-service from /usr/bin to /usr/bin/hal to use DLConf(Dynamic Loader Configuration) feature which support to load multi-version library under /hal. When executing process under /usr/bin/hal or /hal/bin, DLConf is applied. Change-Id: I621dfc45580e6ca367c2287f9d0940c82bf48fea Signed-off-by: Chanwoo Choi --- diff --git a/hal-backend-service/CMakeLists.txt b/hal-backend-service/CMakeLists.txt index cbd19c0..b4b823f 100644 --- a/hal-backend-service/CMakeLists.txt +++ b/hal-backend-service/CMakeLists.txt @@ -32,7 +32,7 @@ SET(src MESSAGE("${PROJECT_NAME}") ADD_EXECUTABLE(${PROJECT_NAME} ${src}) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${gtest_LDFLAGS} ${gtest_pkgs_LDFLAGS} -ldl -L${LIBDIR}/hal) -INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/bin/) +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/bin/hal) INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION lib/systemd/system FILES_MATCHING PATTERN "hal-backend-service*.service") diff --git a/hal-backend-service/hal-backend-service.service.in b/hal-backend-service/hal-backend-service.service.in index 7f493a9..b607f1c 100644 --- a/hal-backend-service/hal-backend-service.service.in +++ b/hal-backend-service/hal-backend-service.service.in @@ -7,7 +7,7 @@ After=local-fs.target tizen-system-env.service systemd-tmpfiles-setup.service @S [Service] Type=simple SmackProcessLabel=System -ExecStart=/usr/bin/hal-backend-service --stub-proc-name '@PROC_NAME@' @THREADS@ +ExecStart=/usr/bin/hal/hal-backend-service --stub-proc-name '@PROC_NAME@' @THREADS@ Restart=on-failure RestartSec=0 KillSignal=SIGUSR1 diff --git a/packaging/hal-api-common.spec b/packaging/hal-api-common.spec index 1c5fdd5..e67db99 100644 --- a/packaging/hal-api-common.spec +++ b/packaging/hal-api-common.spec @@ -180,7 +180,7 @@ rm -f %{_unitdir}/sysinit.target.wants/hal-compatibility-checker.service %endif %{_datadir}/upgrade/scripts/500.%{name}.sh %if %{enable_hal_backend_service} -%{_bindir}/hal-backend-service +%{_bindir}/hal/hal-backend-service %{_unitdir}/sockets.target.wants/hal-backend-service*.socket %{_unitdir}/basic.target.wants/hal-backend-service*.service %{_unitdir}/hal-backend-service*.socket