Skip to contentSkip to conversation

avahi: fix systemd service packaging with multilib

PATCH In review Ross Burton 2 participants 3 messages Apr 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avahi: fix systemd service packaging with multilib

Move the systemd class usage to the .inc, and use ${PN} correctly so that the files are packaged in multilib configurations.

---
 meta/recipes-connectivity/avahi/avahi.inc       |    6 +++++-
 meta/recipes-connectivity/avahi/avahi_0.6.31.bb |    6 ------
 2 files changed, 5 insertions(+), 7 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +5 -1
index c302f87..f31b5e5 100644
@@ -37,7 +37,7 @@ USERADD_PARAM_avahi-autoipd = "--system --home /var/run/avahi-autoipd \
                               -c \"Avahi autoip daemon\" \
                               avahi-autoipd"
 
-inherit autotools pkgconfig update-rc.d gettext useradd
+inherit autotools pkgconfig update-rc.d gettext useradd systemd
 
 EXTRA_OECONF = "--disable-introspection \
              --with-avahi-priv-access-group=adm \
@@ -115,6 +115,10 @@ INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19"
 INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd"
 INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19"
 
+SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-dnsconfd"
+SYSTEMD_SERVICE_${PN}-daemon = "avahi-daemon.service"
+SYSTEMD_SERVICE_${PN}-dnsconfd = "avahi-dnsconfd.service"
+
 do_install() {
 	autotools_do_install
 
meta/recipes-connectivity/avahi/avahi_0.6.31.bb +0 -6
index 22731f9..cff0974 100644
@@ -1,11 +1,5 @@
 require avahi.inc
 
-inherit systemd
-
-SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-dnsconfd"
-SYSTEMD_SERVICE_avahi-daemon = "avahi-daemon.service"
-SYSTEMD_SERVICE_avahi-dnsconfd = "avahi-dnsconfd.service"
-
 LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
                     file://avahi-common/address.h;endline=25;md5=b1d1d2cda1c07eb848ea7d6215712d9d \
                     file://avahi-core/dns.h;endline=23;md5=6fe82590b81aa0ddea5095b548e2fdcb \
Signature · 1 line
1.7.10.4
#1 lore raw

Doesn't this break avahi-ui again?

http://git.openembedded.org/openembedded-core/commit/?id=02492d43cd7095acb3cf29843a50444c28b4d994

Quoted 64 lines · Ross Burton

Move the systemd class usage to the .inc, and use ${PN} correctly so that the files are packaged in multilib configurations.

---
 meta/recipes-connectivity/avahi/avahi.inc       |    6 +++++-
 meta/recipes-connectivity/avahi/avahi_0.6.31.bb |    6 ------
 2 files changed, 5 insertions(+), 7 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +1 -1
index c302f87..f31b5e5 100644
@@ -37,7 +37,7 @@ USERADD_PARAM_avahi-autoipd = "--system --home
 /var/run/avahi-autoipd \
                               -c \"Avahi autoip daemon\" \
                               avahi-autoipd"
 
-inherit autotools pkgconfig update-rc.d gettext useradd
+inherit autotools pkgconfig update-rc.d gettext useradd systemd
 
 EXTRA_OECONF = "--disable-introspection \
              --with-avahi-priv-access-group=adm \
meta/recipes-connectivity/avahi/avahi.inc +4 -0
@@ -115,6 +115,10 @@ INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19"
 INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd"
 INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19"
 
+SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-dnsconfd"
+SYSTEMD_SERVICE_${PN}-daemon = "avahi-daemon.service"
+SYSTEMD_SERVICE_${PN}-dnsconfd = "avahi-dnsconfd.service"
+
 do_install() {
        autotools_do_install
 
(quoted diff) +0 -0

avahi_0.6.31.bb
index 22731f9..cff0974 100644

meta/recipes-connectivity/avahi/avahi_0.6.31.bb +0 -6
@@ -1,11 +1,5 @@
 require avahi.inc
 
-inherit systemd
-
-SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-dnsconfd"
-SYSTEMD_SERVICE_avahi-daemon = "avahi-daemon.service"
-SYSTEMD_SERVICE_avahi-dnsconfd = "avahi-dnsconfd.service"
-
 LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
 
 file://avahi-common/address.h;endline=25;md5=b1d1d2cda1c07eb848ea7d6215712d9d

\

file://avahi-core/dns.h;endline=23;md5=6fe82590b81aa0ddea5095b548e2fdcb \
--
1.7.10.4

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core