Skip to contentSkip to conversation

systemd: Fix packaging warnings and spin libnss_myhostname to package of its own

PATCH In review Khem Raj 3 participants 3 messages Feb 15, 2013 – Feb 16, 2013

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 systemd: Fix packaging warnings and spin libnss_myhostname to package of its own

---
 meta/recipes-core/systemd/systemd_197.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-core/systemd/systemd_197.bb +4 -2
index 0c3ebc4..aa6fcea 100644
@@ -102,7 +102,9 @@ do_install() {
 }
 
 python populate_packages_prepend (){
-    systemdlibdir = d.getVar("base_libdir", True)
+    systemdbaselibdir = d.getVar("base_libdir", True)
+    do_split_packages(d, systemdbaselibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True)
+    systemdlibdir = d.getVar("libdir", True)
     do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True)
 }
 PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*"
@@ -149,7 +151,6 @@ FILES_${PN} = " ${base_bindir}/* \
                 ${systemd_unitdir}/system/* \
                 /lib/udev/rules.d/99-systemd.rules \
                 ${base_libdir}/security/*.so \
-                ${libdir}/libnss_myhostname.so.2 \
                 /cgroup \
                 ${bindir}/systemd* \
                 ${bindir}/localectl \
@@ -162,6 +163,7 @@ FILES_${PN} = " ${base_bindir}/* \
                 ${exec_prefix}/lib/sysctl.d \
                 ${localstatedir} \
                 ${libexecdir} \
+                /lib/udev/hwdb.d \
                 /lib/udev/rules.d/70-uaccess.rules \
                 /lib/udev/rules.d/71-seat.rules \
                 /lib/udev/rules.d/73-seat-late.rules \
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · Khem Raj

+ /lib/udev/hwdb.d \

Would this obsolete the patch I posted earlier to add pci/usb IDs?

Ross

#2 lore raw

"Burton, Ross" <[email protected]>

Quoted 4 lines · writes:
Quoted 1 line · Khem Raj

+ /lib/udev/hwdb.d \

Would this obsolete the patch I posted earlier to add pci/usb IDs?

no; these files are useless without an 'udevadm hwdb --update' in a script.

I did not looked at the generated database, but the hwdb.d files are large (4 MiB) so that they should be moved into an own subpackage.

Enrico