halapi: Add /etc/ld.so.conf.d/libhal-api.conf 07/251707/5 accepted/tizen/unified/20210119.130216 submit/tizen/20210119.020839
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 19 Jan 2021 00:35:10 +0000 (09:35 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 19 Jan 2021 01:53:51 +0000 (10:53 +0900)
A ldd and ldconfig commands do not work.

Example1) "ldd /usr/bin/deviced | grep libhal-api-common"
Example2) "ldconfig -p | grep libhal-api-common"

Change-Id: I42d0ece00df2ebd4ef36e4f215140a31204397b0
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
packaging/hal-api-common.spec
packaging/libhal-api.conf [new file with mode: 0644]

index b6e21ee..1831a56 100644 (file)
@@ -10,6 +10,7 @@ Group:      Development/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 Source1:    %{name}.manifest
+Source2:    libhal-api.conf
 
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
@@ -48,6 +49,9 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 %make_install
 
+mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/
+install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ld.so.conf.d/
+
 %clean
 rm -rf %{buildroot}
 
@@ -63,6 +67,7 @@ rm -rf %{buildroot}
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %{_libdir}/hal/*.so*
+%{_sysconfdir}/ld.so.conf.d/libhal-api.conf
 
 %files -n %{devel_name}
 %defattr(-,root,root,-)
diff --git a/packaging/libhal-api.conf b/packaging/libhal-api.conf
new file mode 100644 (file)
index 0000000..b275885
--- /dev/null
@@ -0,0 +1,2 @@
+/usr/lib/hal
+/usr/lib64/hal