Skip to contentSkip to conversation

fix install package "postinst-intercept oprofileui avahi" to image failed

PATCH In review Hongxu Jia 3 participants 10 messages Nov 11, 2014 – Nov 13, 2014

lore
Share & tools
lore

Hongxu Jia

author
#0 lore raw

v2 cover fix install package "postinst-intercept oprofileui avahi" to image failed

Changed in V2:
- Drop the fix of pointercal-xinput, it didn't generate recipe_name on purpose.
- Rename package, from avahi-daemon to avahi, and oprofileui-viewer to oprofileui, add RPROVIDES for compatibility

vim local.conf
...
IMAGE_INSTALL_append = " oprofileui avahi"
...

bitbake core-image-minimal

//Hongxu

The following changes since commit 7bd03ac24114b2c6015144a37e0c3fb4037baea6:

bitbake: toastergui: fix invalid build url usage (2014-11-06 16:45:23 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib hongxu/fix-nonexist-pkg
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-nonexist-pkg

Hongxu Jia (3):
avahi.inc: rename package to use avahi to instead of avahi-daemon
oprofileui: rename package to use oprofileui to instead of
oprofileui-viewer
postinst-intercept: rename recipe for nativesdk only

 meta/recipes-connectivity/avahi/avahi.inc          | 29 +++++++++++-----------
 ..._1.0.bb => nativesdk-postinst-intercept_1.0.bb} |  6 ++---
 meta/recipes-kernel/oprofile/oprofileui_git.bb     |  8 +++---
 3 files changed, 21 insertions(+), 22 deletions(-)
 rename meta/recipes-devtools/postinst-intercept/{postinst-intercept_1.0.bb => nativesdk-postinst-intercept_1.0.bb} (83%)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v2 1/3 avahi.inc: rename package to use avahi to instead of avahi-daemon

The package avahi does not exist, as SUMMARY said, we should use avahi-daemon to instead. It avoids the do_rootfs failure while IMAGE_INSTALL += "avahi"

For compatibility, let avahi to provide avahi-daemon.

[YOCTO #6937]

---
 meta/recipes-connectivity/avahi/avahi.inc | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +14 -15
index b060437..581d51b 100644
@@ -29,8 +29,8 @@ SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
           file://reuseport-check.patch \
           "
 
-USERADD_PACKAGES = "avahi-daemon avahi-autoipd"
-USERADD_PARAM_avahi-daemon = "--system --home /var/run/avahi-daemon \
+USERADD_PACKAGES = "avahi avahi-autoipd"
+USERADD_PARAM_avahi = "--system --home /var/run/avahi-daemon \
                               --no-create-home --shell /bin/false \
                               --user-group avahi"
 
@@ -71,11 +71,10 @@ do_configure_prepend() {
 }
 
 
-PACKAGES =+ "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"
+PACKAGES =+ "libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"
 
-# As avahi doesn't put any files into PN, clear the files list to avoid problems
-# if extra libraries appear.
-FILES_avahi = ""
+# For compatibility, let avahi to provide avahi-daemon
+RPROVIDES_${PN} = "${PN}-daemon"
 FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \
                        ${sysconfdir}/avahi/avahi-autoipd.action \
                        ${sysconfdir}/dhcp/*/avahi-autoipd \
@@ -83,7 +82,7 @@ FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \
                        ${sysconfdir}/udhcpc.d/99avahi-autoipd"
 FILES_libavahi-common = "${libdir}/libavahi-common.so.*"
 FILES_libavahi-core = "${libdir}/libavahi-core.so.*"
-FILES_avahi-daemon = "${sbindir}/avahi-daemon \
+FILES_${PN} = "${sbindir}/avahi-daemon \
                       ${sysconfdir}/avahi/avahi-daemon.conf \
                       ${sysconfdir}/avahi/hosts \
                       ${sysconfdir}/avahi/services \
@@ -102,10 +101,10 @@ FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*"
 FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*"
 FILES_avahi-utils = "${bindir}/avahi-*"
 
-RDEPENDS_${PN}-dev = "avahi-daemon (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"
+RDEPENDS_${PN}-dev = "avahi (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"
 
 # uclibc has no nss
-RRECOMMENDS_avahi-daemon_append_libc-glibc = " libnss-mdns"
+RRECOMMENDS_avahi_append_libc-glibc = " libnss-mdns"
 RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"
 
 RRECOMMENDS_avahi-dev = "expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev"
@@ -113,11 +112,11 @@ RRECOMMENDS_avahi-dev_append_libc-glibc = " gettext-dev"
 
 RRECOMMENDS_avahi-dev[nodeprrecs] = "1"
 
-CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf"
+CONFFILES_avahi = "${sysconfdir}/avahi/avahi-daemon.conf"
 
-INITSCRIPT_PACKAGES = "avahi-daemon avahi-dnsconfd"
-INITSCRIPT_NAME_avahi-daemon = "avahi-daemon"
-INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19"
+INITSCRIPT_PACKAGES = "avahi avahi-dnsconfd"
+INITSCRIPT_NAME_avahi = "avahi-daemon"
+INITSCRIPT_PARAMS_avahi = "defaults 21 19"
 INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd"
 INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19"
 
@@ -141,13 +140,13 @@ do_install() {
 # At the time the postinst runs, dbus might not be setup so only restart if running 
 # Don't exit early, because update-rc.d needs to run subsequently.
 
-pkg_postinst_avahi-daemon () {
+pkg_postinst_avahi () {
 if [ -z "$D" ]; then
 	killall -q -HUP dbus-daemon || true
 fi
 }
 
-pkg_postrm_avahi-daemon () {
+pkg_postrm_avahi () {
 	deluser avahi || true
 	delgroup avahi || true
 }
Signature · 1 line
1.9.1
author
#2 lore raw

Re: [PATCH 1/3] avahi.inc: rename package to use avahi to instead of avahi-daemon

Quoted 5 lines · Hongxu Jia

The package avahi does not exist, as SUMMARY said, we should use avahi-daemon to instead. It avoids the do_rootfs failure while IMAGE_INSTALL += "avahi"

For compatibility, let avahi to provide avahi-daemon.

Fix comments typo, s/let avahi to provide/let avahi provide/ and s/ let oprofileui to provide/let oprofileui provide/

Donot send V3, just updating git repository:
git://git.pokylinux.org/poky-contrib hongxu/fix-nonexist-pkg
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-nonexist-pkg

//Hongxu

Quoted 91 lines

[YOCTO #6937]

---
  meta/recipes-connectivity/avahi/avahi.inc | 29 ++++++++++++++---------------
  1 file changed, 14 insertions(+), 15 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +14 -15
index b060437..581d51b 100644
@@ -29,8 +29,8 @@ SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
            file://reuseport-check.patch \
            "
 
-USERADD_PACKAGES = "avahi-daemon avahi-autoipd"
-USERADD_PARAM_avahi-daemon = "--system --home /var/run/avahi-daemon \
+USERADD_PACKAGES = "avahi avahi-autoipd"
+USERADD_PARAM_avahi = "--system --home /var/run/avahi-daemon \
                                --no-create-home --shell /bin/false \
                                --user-group avahi"
 
@@ -71,11 +71,10 @@ do_configure_prepend() {
  }
 
 
-PACKAGES =+ "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"
+PACKAGES =+ "libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"
 
-# As avahi doesn't put any files into PN, clear the files list to avoid problems
-# if extra libraries appear.
-FILES_avahi = ""
+# For compatibility, let avahi to provide avahi-daemon
+RPROVIDES_${PN} = "${PN}-daemon"
  FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \
                         ${sysconfdir}/avahi/avahi-autoipd.action \
                         ${sysconfdir}/dhcp/*/avahi-autoipd \
@@ -83,7 +82,7 @@ FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \
                         ${sysconfdir}/udhcpc.d/99avahi-autoipd"
  FILES_libavahi-common = "${libdir}/libavahi-common.so.*"
  FILES_libavahi-core = "${libdir}/libavahi-core.so.*"
-FILES_avahi-daemon = "${sbindir}/avahi-daemon \
+FILES_${PN} = "${sbindir}/avahi-daemon \
                        ${sysconfdir}/avahi/avahi-daemon.conf \
                        ${sysconfdir}/avahi/hosts \
                        ${sysconfdir}/avahi/services \
@@ -102,10 +101,10 @@ FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*"
  FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*"
  FILES_avahi-utils = "${bindir}/avahi-*"
 
-RDEPENDS_${PN}-dev = "avahi-daemon (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"
+RDEPENDS_${PN}-dev = "avahi (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"
 
  # uclibc has no nss
-RRECOMMENDS_avahi-daemon_append_libc-glibc = " libnss-mdns"
+RRECOMMENDS_avahi_append_libc-glibc = " libnss-mdns"
  RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"
 
  RRECOMMENDS_avahi-dev = "expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev"
@@ -113,11 +112,11 @@ RRECOMMENDS_avahi-dev_append_libc-glibc = " gettext-dev"
 
  RRECOMMENDS_avahi-dev[nodeprrecs] = "1"
 
-CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf"
+CONFFILES_avahi = "${sysconfdir}/avahi/avahi-daemon.conf"
 
-INITSCRIPT_PACKAGES = "avahi-daemon avahi-dnsconfd"
-INITSCRIPT_NAME_avahi-daemon = "avahi-daemon"
-INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19"
+INITSCRIPT_PACKAGES = "avahi avahi-dnsconfd"
+INITSCRIPT_NAME_avahi = "avahi-daemon"
+INITSCRIPT_PARAMS_avahi = "defaults 21 19"
  INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd"
  INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19"
 
@@ -141,13 +140,13 @@ do_install() {
  # At the time the postinst runs, dbus might not be setup so only restart if running
  # Don't exit early, because update-rc.d needs to run subsequently.
 
-pkg_postinst_avahi-daemon () {
+pkg_postinst_avahi () {
  if [ -z "$D" ]; then
  	killall -q -HUP dbus-daemon || true
  fi
  }
 
-pkg_postrm_avahi-daemon () {
+pkg_postrm_avahi () {
  	deluser avahi || true
  	delgroup avahi || true
  }
#3 lore raw

Re: [PATCH 1/3] avahi.inc: rename package to use avahi to instead of avahi-daemon

In reply to Hongxu Jia
Quoted 8 lines

Op 11 nov. 2014, om 11:52 heeft Hongxu Jia <[email protected]> het volgende geschreven:

The package avahi does not exist, as SUMMARY said, we should use avahi-daemon to instead. It avoids the do_rootfs failure while IMAGE_INSTALL += "avahi"

For compatibility, let avahi to provide avahi-daemon.

As stated before:

1) Fix your IMAGE_INSTALL
2) This breaks upgrade paths

Do you *really* want to break existing installs just so you can pretend that your recipename==package name assumption isn't wrong?

Quoted 101 lines

[YOCTO #6937]

---
meta/recipes-connectivity/avahi/avahi.inc | 29 ++++++++++++++---------------

1 file changed, 14 insertions(+), 15 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +5 -6
index b060437..581d51b 100644
@@ -29,8 +29,8 @@ SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
          file://reuseport-check.patch \
          "
 
-USERADD_PACKAGES = "avahi-daemon avahi-autoipd"
-USERADD_PARAM_avahi-daemon = "--system --home /var/run/avahi-daemon \
+USERADD_PACKAGES = "avahi avahi-autoipd"
+USERADD_PARAM_avahi = "--system --home /var/run/avahi-daemon \
                              --no-create-home --shell /bin/false \
                              --user-group avahi"
 
@@ -71,11 +71,10 @@ do_configure_prepend() {
 }
 
 
-PACKAGES =+ "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"
+PACKAGES =+ "libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"
 
-# As avahi doesn't put any files into PN, clear the files list to avoid problems
-# if extra libraries appear.
-FILES_avahi = ""
+# For compatibility, let avahi to provide avahi-daemon
+RPROVIDES_${PN} = "${PN}-daemon"
 FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \
                       ${sysconfdir}/avahi/avahi-autoipd.action \
                       ${sysconfdir}/dhcp/*/avahi-autoipd \
@@ -83,7 +82,7 @@ FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \
                       ${sysconfdir}/udhcpc.d/99avahi-autoipd"

FILES_libavahi-common = "${libdir}/libavahi-common.so.*" FILES_libavahi-core = "${libdir}/libavahi-core.so.*"

meta/recipes-connectivity/avahi/avahi.inc +1 -1
-FILES_avahi-daemon = "${sbindir}/avahi-daemon \
+FILES_${PN} = "${sbindir}/avahi-daemon \
                      ${sysconfdir}/avahi/avahi-daemon.conf \
                      ${sysconfdir}/avahi/hosts \
                      ${sysconfdir}/avahi/services \
@@ -102,10 +101,10 @@ FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*"

FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*" FILES_avahi-utils = "${bindir}/avahi-*"

meta/recipes-connectivity/avahi/avahi.inc +1 -1
-RDEPENDS_${PN}-dev = "avahi-daemon (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"
+RDEPENDS_${PN}-dev = "avahi (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"
# uclibc has no nss
meta/recipes-connectivity/avahi/avahi.inc +1 -1
-RRECOMMENDS_avahi-daemon_append_libc-glibc = " libnss-mdns"
+RRECOMMENDS_avahi_append_libc-glibc = " libnss-mdns"

RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"

RRECOMMENDS_avahi-dev = "expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev"

meta/recipes-connectivity/avahi/avahi.inc +0 -0
@@ -113,11 +112,11 @@ RRECOMMENDS_avahi-dev_append_libc-glibc = " gettext-dev"
 

RRECOMMENDS_avahi-dev[nodeprrecs] = "1"

meta/recipes-connectivity/avahi/avahi.inc +4 -4
-CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf"
+CONFFILES_avahi = "${sysconfdir}/avahi/avahi-daemon.conf"
 
-INITSCRIPT_PACKAGES = "avahi-daemon avahi-dnsconfd"
-INITSCRIPT_NAME_avahi-daemon = "avahi-daemon"
-INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19"
+INITSCRIPT_PACKAGES = "avahi avahi-dnsconfd"
+INITSCRIPT_NAME_avahi = "avahi-daemon"
+INITSCRIPT_PARAMS_avahi = "defaults 21 19"

INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd" INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19"

meta/recipes-connectivity/avahi/avahi.inc +1 -1
@@ -141,13 +140,13 @@ do_install() {
 # At the time the postinst runs, dbus might not be setup so only restart if running 
 # Don't exit early, because update-rc.d needs to run subsequently.
 
-pkg_postinst_avahi-daemon () {
+pkg_postinst_avahi () {

if [ -z "$D" ]; then

	killall -q -HUP dbus-daemon || true

fi
}

meta/recipes-connectivity/avahi/avahi.inc +1 -1
-pkg_postrm_avahi-daemon () {
+pkg_postrm_avahi () {
	deluser avahi || true
	delgroup avahi || true
}
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
author
#4 lore raw

Re: [PATCH 1/3] avahi.inc: rename package to use avahi to instead of avahi-daemon

Quoted 10 lines · Koen Kooi
Quoted 7 lines

Op 11 nov. 2014, om 11:52 heeft Hongxu Jia <[email protected]> het volgende geschreven:

The package avahi does not exist, as SUMMARY said, we should use avahi-daemon to instead. It avoids the do_rootfs failure while IMAGE_INSTALL += "avahi"

For compatibility, let avahi to provide avahi-daemon.

As stated before:

1) Fix your IMAGE_INSTALL

Could you describe what's wrong with IMAGE_INSTALL? I have no idea about it.

Quoted 3 lines

2) This breaks upgrade paths

Do you *really* want to break existing installs just so you can pretend that your recipename==package name assumption isn't wrong?

What does *upgrade paths* means?

//Hongxu

Quoted 101 lines
Quoted 101 lines

[YOCTO #6937]

---
meta/recipes-connectivity/avahi/avahi.inc | 29 ++++++++++++++---------------

1 file changed, 14 insertions(+), 15 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +5 -6
index b060437..581d51b 100644
@@ -29,8 +29,8 @@ SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
           file://reuseport-check.patch \
           "
 
-USERADD_PACKAGES = "avahi-daemon avahi-autoipd"
-USERADD_PARAM_avahi-daemon = "--system --home /var/run/avahi-daemon \
+USERADD_PACKAGES = "avahi avahi-autoipd"
+USERADD_PARAM_avahi = "--system --home /var/run/avahi-daemon \
                               --no-create-home --shell /bin/false \
                               --user-group avahi"
 
@@ -71,11 +71,10 @@ do_configure_prepend() {
 }
 
 
-PACKAGES =+ "avahi-daemon libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"
+PACKAGES =+ "libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"
 
-# As avahi doesn't put any files into PN, clear the files list to avoid problems
-# if extra libraries appear.
-FILES_avahi = ""
+# For compatibility, let avahi to provide avahi-daemon
+RPROVIDES_${PN} = "${PN}-daemon"
 FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \
                        ${sysconfdir}/avahi/avahi-autoipd.action \
                        ${sysconfdir}/dhcp/*/avahi-autoipd \
@@ -83,7 +82,7 @@ FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \
                        ${sysconfdir}/udhcpc.d/99avahi-autoipd"

FILES_libavahi-common = "${libdir}/libavahi-common.so.*" FILES_libavahi-core = "${libdir}/libavahi-core.so.*"

meta/recipes-connectivity/avahi/avahi.inc +1 -1
-FILES_avahi-daemon = "${sbindir}/avahi-daemon \
+FILES_${PN} = "${sbindir}/avahi-daemon \
                       ${sysconfdir}/avahi/avahi-daemon.conf \
                       ${sysconfdir}/avahi/hosts \
                       ${sysconfdir}/avahi/services \
@@ -102,10 +101,10 @@ FILES_libavahi-glib = "${libdir}/libavahi-glib.so.*"

FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*" FILES_avahi-utils = "${bindir}/avahi-*"

meta/recipes-connectivity/avahi/avahi.inc +1 -1
-RDEPENDS_${PN}-dev = "avahi-daemon (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"
+RDEPENDS_${PN}-dev = "avahi (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"
# uclibc has no nss
meta/recipes-connectivity/avahi/avahi.inc +1 -1
-RRECOMMENDS_avahi-daemon_append_libc-glibc = " libnss-mdns"
+RRECOMMENDS_avahi_append_libc-glibc = " libnss-mdns"

RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"

RRECOMMENDS_avahi-dev = "expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev"

meta/recipes-connectivity/avahi/avahi.inc +0 -0
@@ -113,11 +112,11 @@ RRECOMMENDS_avahi-dev_append_libc-glibc = " gettext-dev"
 

RRECOMMENDS_avahi-dev[nodeprrecs] = "1"

meta/recipes-connectivity/avahi/avahi.inc +4 -4
-CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf"
+CONFFILES_avahi = "${sysconfdir}/avahi/avahi-daemon.conf"
 
-INITSCRIPT_PACKAGES = "avahi-daemon avahi-dnsconfd"
-INITSCRIPT_NAME_avahi-daemon = "avahi-daemon"
-INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19"
+INITSCRIPT_PACKAGES = "avahi avahi-dnsconfd"
+INITSCRIPT_NAME_avahi = "avahi-daemon"
+INITSCRIPT_PARAMS_avahi = "defaults 21 19"

INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd" INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19"

meta/recipes-connectivity/avahi/avahi.inc +1 -1
@@ -141,13 +140,13 @@ do_install() {
 # At the time the postinst runs, dbus might not be setup so only restart if running
 # Don't exit early, because update-rc.d needs to run subsequently.
 
-pkg_postinst_avahi-daemon () {
+pkg_postinst_avahi () {

if [ -z "$D" ]; then

	killall -q -HUP dbus-daemon || true

fi
}

meta/recipes-connectivity/avahi/avahi.inc +1 -1
-pkg_postrm_avahi-daemon () {
+pkg_postrm_avahi () {
	deluser avahi || true
	delgroup avahi || true
}
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
author
#5 lore raw

Re: [PATCH 1/3] avahi.inc: rename package to use avahi to instead of avahi-daemon

Quoted 12 lines · Hongxu Jia
Quoted 10 lines · Koen Kooi
Quoted 7 lines

Op 11 nov. 2014, om 11:52 heeft Hongxu Jia <[email protected]> het volgende geschreven:

The package avahi does not exist, as SUMMARY said, we should use avahi-daemon to instead. It avoids the do_rootfs failure while IMAGE_INSTALL += "avahi"

For compatibility, let avahi to provide avahi-daemon.

As stated before:

1) Fix your IMAGE_INSTALL

Quoted 9 lines

Could you describe what's wrong with IMAGE_INSTALL? I have no idea about it.

Quoted 3 lines

2) This breaks upgrade paths

Do you *really* want to break existing installs just so you can pretend that your recipename==package name assumption isn't wrong?

What does *upgrade paths* means?

Do you mean use package management to upgrade the package, such as "smart upgrade". If yes, I think you are right, we could drop patch 1/3 and 2/3.

//Hongxu

Quoted 113 lines

//Hongxu

Quoted 110 lines
Quoted 110 lines

[YOCTO #6937]

---
meta/recipes-connectivity/avahi/avahi.inc | 29
++++++++++++++---------------

1 file changed, 14 insertions(+), 15 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +2 -3
index b060437..581d51b 100644
@@ -29,8 +29,8 @@ SRC_URI = 
 "http://avahi.org/download/avahi-${PV}.tar.gz \
           file://reuseport-check.patch \
           "
 
-USERADD_PACKAGES = "avahi-daemon avahi-autoipd"
-USERADD_PARAM_avahi-daemon = "--system --home /var/run/avahi-daemon \
+USERADD_PACKAGES = "avahi avahi-autoipd"
+USERADD_PARAM_avahi = "--system --home /var/run/avahi-daemon \
                               --no-create-home --shell /bin/false \
                               --user-group avahi"
@@ -71,11 +71,10 @@ do_configure_prepend() {
 }
 
 
-PACKAGES =+ "avahi-daemon libavahi-common libavahi-core 

libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils" +PACKAGES =+ "libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-autoipd avahi-utils"

-# As avahi doesn't put any files into PN, clear the files list to avoid problems

meta/recipes-connectivity/avahi/avahi.inc +2 -2
-# if extra libraries appear.
-FILES_avahi = ""
+# For compatibility, let avahi to provide avahi-daemon
+RPROVIDES_${PN} = "${PN}-daemon"

FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \

${sysconfdir}/avahi/avahi-autoipd.action \
                        ${sysconfdir}/dhcp/*/avahi-autoipd \
meta/recipes-connectivity/avahi/avahi.inc +0 -0
@@ -83,7 +82,7 @@ FILES_avahi-autoipd = "${sbindir}/avahi-autoipd \

${sysconfdir}/udhcpc.d/99avahi-autoipd" FILES_libavahi-common = "${libdir}/libavahi-common.so.*" FILES_libavahi-core = "${libdir}/libavahi-core.so.*"

meta/recipes-connectivity/avahi/avahi.inc +1 -1
-FILES_avahi-daemon = "${sbindir}/avahi-daemon \
+FILES_${PN} = "${sbindir}/avahi-daemon \
                       ${sysconfdir}/avahi/avahi-daemon.conf \
                       ${sysconfdir}/avahi/hosts \
                       ${sysconfdir}/avahi/services \
@@ -102,10 +101,10 @@ FILES_libavahi-glib = 

"${libdir}/libavahi-glib.so.*" FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*" FILES_avahi-utils = "${bindir}/avahi-*"

-RDEPENDS_${PN}-dev = "avahi-daemon (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})" +RDEPENDS_${PN}-dev = "avahi (= ${EXTENDPKGV}) libavahi-core (= ${EXTENDPKGV}) libavahi-client (= ${EXTENDPKGV})"

# uclibc has no nss
meta/recipes-connectivity/avahi/avahi.inc +1 -1
-RRECOMMENDS_avahi-daemon_append_libc-glibc = " libnss-mdns"
+RRECOMMENDS_avahi_append_libc-glibc = " libnss-mdns"

RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"

RRECOMMENDS_avahi-dev = "expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev"

meta/recipes-connectivity/avahi/avahi.inc +0 -0
@@ -113,11 +112,11 @@ RRECOMMENDS_avahi-dev_append_libc-glibc = " 

gettext-dev"

RRECOMMENDS_avahi-dev[nodeprrecs] = "1"

meta/recipes-connectivity/avahi/avahi.inc +4 -4
-CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf"
+CONFFILES_avahi = "${sysconfdir}/avahi/avahi-daemon.conf"
 
-INITSCRIPT_PACKAGES = "avahi-daemon avahi-dnsconfd"
-INITSCRIPT_NAME_avahi-daemon = "avahi-daemon"
-INITSCRIPT_PARAMS_avahi-daemon = "defaults 21 19"
+INITSCRIPT_PACKAGES = "avahi avahi-dnsconfd"
+INITSCRIPT_NAME_avahi = "avahi-daemon"
+INITSCRIPT_PARAMS_avahi = "defaults 21 19"

INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd" INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19"

meta/recipes-connectivity/avahi/avahi.inc +1 -1
@@ -141,13 +140,13 @@ do_install() {
 # At the time the postinst runs, dbus might not be setup so only restart if running
 # Don't exit early, because update-rc.d needs to run subsequently.
 
-pkg_postinst_avahi-daemon () {
+pkg_postinst_avahi () {

if [ -z "$D" ]; then

    killall -q -HUP dbus-daemon || true

fi
}

meta/recipes-connectivity/avahi/avahi.inc +1 -1
-pkg_postrm_avahi-daemon () {
+pkg_postrm_avahi () {
    deluser avahi || true
    delgroup avahi || true

}

Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
#6 lore raw

Re: [PATCH 1/3] avahi.inc: rename package to use avahi to instead of avahi-daemon

Quoted 9 lines · Hongxu Jia
Quoted 7 lines · Hongxu Jia
Quoted 6 lines · Koen Kooi
Quoted 6 lines

Op 11 nov. 2014, om 11:52 heeft Hongxu Jia <[email protected]> het volgende geschreven:

The package avahi does not exist, as SUMMARY said, we should use avahi-daemon to instead. It avoids the do_rootfs failure while IMAGE_INSTALL += "avahi"

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

For compatibility, let avahi to provide avahi-daemon.

As stated before:

1) Fix your IMAGE_INSTALL

Could you describe what's wrong with IMAGE_INSTALL? I have no idea about it.

Koen means that you should use IMAGE_INSTALL_append += "avahi-daemon"
and not avahi... (I.e. package name, not recipe name).

If you still insist on creating a package named avahi, you might as well create avahi as an empty package, RDEPEND'ing on all sub-packages.

Quoted 11 lines
Quoted 6 lines
Quoted 4 lines

2) This breaks upgrade paths

Do you *really* want to break existing installs just so you can pretend that your recipename==package name assumption isn't wrong?

What does *upgrade paths* means?

Do you mean use package management to upgrade the package, such as "smart upgrade". If yes, I think you are right, we could drop patch 1/3 and 2/3.

Yes, that's exactly what Koen talks about when it comes to ugrade paths.

Cheers,
Anders

Signature · 2 lines
Anders Darander
ChargeStorm AB / eStorm AB
author
#7 lore raw

Re: [PATCH 1/3] avahi.inc: rename package to use avahi to instead of avahi-daemon

Quoted 7 lines · Anders Darander

Koen means that you should use IMAGE_INSTALL_append += "avahi-daemon"
and not avahi... (I.e. package name, not recipe name).

If you still insist on creating a package named avahi, you might as well create avahi as an empty package, RDEPEND'ing on all sub-packages.

Oh, thanks, I know what you mean, please drop these patches

//Hongxu

author
#8 lore raw

PATCH v2 2/3 oprofileui: rename package to use oprofileui to instead of oprofileui-viewer

In reply to Hongxu Jia

The package oprofileui does not exist, so we use oprofileui-viewer to instead. It avoids the do_rootfs failure while IMAGE_INSTALL += "oprofileui"

For compatibility, let oprofileui to provide oprofileui-viewer and use ${PN} to instead of the hardcode oprofileui.

[YOCTO #6937]

---
 meta/recipes-kernel/oprofile/oprofileui_git.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta/recipes-kernel/oprofile/oprofileui_git.bb +4 -4
index bb69d54..8448ba3 100644
@@ -11,7 +11,7 @@ SRC_URI = "git://git.yoctoproject.org/oprofileui"
 
 EXTRA_OECONF += "--enable-client --disable-server"
 
-PACKAGES =+ "oprofileui-viewer"
-
-FILES_oprofileui-viewer = "${bindir}/oparchconv ${bindir}/oprofile-viewer ${datadir}/applications/ ${datadir}/oprofileui/ ${datadir}/icons"
-RDEPENDS_oprofileui-viewer = "oprofile"
+# For compatibility, let oprofileui to provide oprofileui-viewer
+RPROVIDES_${PN} = "${PN}-viewer"
+FILES_${PN} += "${datadir}/icons"
+RDEPENDS_${PN} = "oprofile"
Signature · 1 line
1.9.1
author
#9 lore raw

PATCH v2 3/3 postinst-intercept: rename recipe for nativesdk only

In reply to Hongxu Jia

The recipe postinst-intercept is only used for nativesdk, so we rename it from postinst-intercept to nativesdk-postinst-intercept.

It avoids unnecessary build of postinst-intercept.

[YOCTO #6937]

---
 ...ostinst-intercept_1.0.bb => nativesdk-postinst-intercept_1.0.bb} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta/recipes-devtools/postinst-intercept/{postinst-intercept_1.0.bb => nativesdk-postinst-intercept_1.0.bb} (83%)
meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb renamed from meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb +3 -3
similarity index 83%
rename from meta/recipes-devtools/postinst-intercept/postinst-intercept_1.0.bb
rename to meta/recipes-devtools/postinst-intercept/nativesdk-postinst-intercept_1.0.bb
index 41b9a6e..7dc45c6 100644
@@ -2,12 +2,12 @@ SUMMARY = "Postinstall scriptlets"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
-FILES_${PN}_append_class-nativesdk = " ${datadir}/postinst-intercepts/*"
+FILES_${PN}_append = " ${datadir}/postinst-intercepts/*"
 
 do_configure[noexec] = "1"
 do_compile[noexec] = "1"
 
-do_install_append_class-nativesdk() {
+do_install() {
 	install -d ${D}${datadir}/postinst-intercepts
 	install -m 755 ${COREBASE}/scripts/postinst-intercepts/postinst_intercept ${D}${datadir}/postinst-intercepts/
 	install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_font_cache ${D}${datadir}/postinst-intercepts/
@@ -15,5 +15,5 @@ do_install_append_class-nativesdk() {
 	install -m 755 ${COREBASE}/scripts/postinst-intercepts/update_pixbuf_cache ${D}${datadir}/postinst-intercepts/
 }
 
-BBCLASSEXTEND = "nativesdk"
+inherit nativesdk
 INHIBIT_DEFAULT_DEPS = "1"
Signature · 1 line
1.9.1