All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dexuan Cui <dexuan.cui@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 3/5] dpkg, dpkg-native: fix DEPENDS, RDEPENDS and pkg_postinst_dpkg
Date: Tue,  6 Sep 2011 21:08:37 +0800	[thread overview]
Message-ID: <96b83521070f288a294160a093bc52943119d1b3.1315313790.git.dexuan.cui@intel.com> (raw)
In-Reply-To: <cover.1315313790.git.dexuan.cui@intel.com>
In-Reply-To: <cover.1315313790.git.dexuan.cui@intel.com>

dpkg-native should depend on update-alternatives-dpkg-native rather than
opkg-native.

dpkg should Rdepend on update-alternatives-dpkg rather than
update-alternatives-cworth.

The pkg_postinst_dpkg seems buggy, e.g., for dpkg-native,
${IMAGE_ROOTFS}/${sysconfdir}/rcS.d doesn't exist.
I think OE's version(do_install_prepend) at
http://git.openembedded.org/cgit.cgi/openembedded/tree/recipes/dpkg/dpkg.inc
is corrent. So let's change to OE's version.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
---
 meta/recipes-devtools/dpkg/dpkg.inc |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index aa5f90e..2ff757a 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -2,14 +2,14 @@ DESCRIPTION = "Package maintenance system for Debian."
 LICENSE = "GPL"
 SECTION = "base"
 
-INC_PR = "r4"
+INC_PR = "r5"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2 \
            file://ignore_extra_fields.patch"
 
 DEPENDS = "zlib bzip2 perl"
-DEPENDS_virtclass-native = "bzip2-native zlib-native virtual/update-alternatives-native gettext-native perl-native-runtime"
-RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}"
+DEPENDS_virtclass-native = "bzip2-native zlib-native update-alternatives-dpkg-native gettext-native perl-native-runtime"
+RDEPENDS_${PN} = "update-alternatives-dpkg"
 RDEPENDS_${PN}_virtclass-native = ""
 
 S = "${WORKDIR}/${BPN}-${PV}"
@@ -20,17 +20,14 @@ inherit autotools gettext perlnative
 
 DPKG_INIT_POSITION = "98"
 
-pkg_postinst_dpkg () {
-#!/bin/sh
-if [ "x$D" != "x" ]; then
-	install -d $D/${sysconfdir}/rcS.d
+do_install_prepend () {
+	install -d ${D}/${sysconfdir}/rcS.d
 	# this happens at S98 where our good 'ole packages script used to run
-	echo -e "#!/bin/sh
-	dpkg --configure -a
-	rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
-" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
-	chmod 0755 $D/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
-fi
+	printf "#!/bin/sh
+dpkg --configure -a
+rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+" > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+	chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
 }
 
 do_configure () {
-- 
1.7.6




  parent reply	other threads:[~2011-09-06 13:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-06 13:08 [PATCH 0/5] patches to fix deb packaging: bug 1070 Dexuan Cui
2011-09-06 13:08 ` [PATCH 1/5] populate_sdk_deb.bbclass: add the missing parameter - for tar Dexuan Cui
2011-09-06 13:08 ` [PATCH 2/5] package_deb.bbclass: put the stderr into log.do_xxx-attemptonly.xxx Dexuan Cui
2011-09-06 13:08 ` Dexuan Cui [this message]
2011-09-06 13:08 ` [PATCH 4/5] opkg: it should Rdepend on update-alternatives-cworth Dexuan Cui
2011-09-06 13:08 ` [PATCH 5/5] default-providers.inc: define update-alternatives and -native properly Dexuan Cui
2011-09-07  0:23 ` [PATCH 0/5] patches to fix deb packaging: bug 1070 Saul Wold
2011-09-07  4:06   ` Cui, Dexuan
2011-09-08  3:47 ` Saul Wold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96b83521070f288a294160a093bc52943119d1b3.1315313790.git.dexuan.cui@intel.com \
    --to=dexuan.cui@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.