Skip to contentSkip to conversation

systemd: fix to use ${libdir}

PATCH Superseded Chen Qi 2 participants 3 messages Sep 14, 2014

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

v2 cover systemd: fix to use ${libdir}

The following changes since commit 10df0718d6a626d99beb68cde8d914ee0820d7eb:

classes/populate_sdk_base: enable adding custom commands to SDK install script (2014-09-11 17:44:40 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib ChenQi/systemd-libdir
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/systemd-libdir

Chen Qi (1):
systemd: fix to use ${libdir}

 meta/recipes-core/systemd/systemd_216.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v2 1/1 systemd: fix to use ${libdir}

We need to user ${libdir} instead of ${exec_prefix}/lib. Otherwise, we would meet do_install errors if multilib is enabled.

---
 meta/recipes-core/systemd/systemd_216.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/systemd/systemd_216.bb +2 -2
index bd52891..331da99 100644
@@ -129,7 +129,7 @@ do_install() {
 	fi
 
 	# Move libgudev back to ${rootlibdir} to keep backward compatibility
-	[ ${rootlibdir} != ${exec_prefix}/lib ] && mv -t ${D}${rootlibdir} ${D}${exec_prefix}/lib/libgudev*
+	[ ${rootlibdir} != ${libdir} ] && mv -t ${D}${rootlibdir} ${D}${libdir}/libgudev*
 
         # Delete journal README, as log can be symlinked inside volatile.
         rm -f ${D}/${localstatedir}/log/README
@@ -241,7 +241,7 @@ FILES_${PN} = " ${base_bindir}/* \
                 ${rootlibexecdir}/systemd/* \
                 ${systemd_unitdir}/* \
                 ${base_libdir}/security/*.so \
-                ${exec_prefix}/lib/libnss_* \
+                ${libdir}/libnss_* \
                 /cgroup \
                 ${bindir}/systemd* \
                 ${bindir}/busctl \
Signature · 1 line
1.9.1
#2 lore raw
Quoted 1 line · Chen Qi

We need to user ${libdir} instead of ${exec_prefix}/lib.

Please clarify in the commit message that this is for the libraries, not the actual init system. The init system explicitly installs into ${exec_prefix}/lib.

Also "use" not "user".

Ross