dpkg: sync with poky
authorKoen Kooi <koen@openembedded.org>
Tue, 3 Oct 2006 17:42:58 +0000 (17:42 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 3 Oct 2006 17:42:58 +0000 (17:42 +0000)
packages/dpkg/dpkg-native_1.13.22.bb [new file with mode: 0644]
packages/dpkg/dpkg.inc
packages/dpkg/dpkg_1.13.22.bb [new file with mode: 0644]
packages/dpkg/files/nochroot.patch [new file with mode: 0644]
packages/dpkg/files/noman.patch [new file with mode: 0644]
packages/dpkg/files/noupdalt.patch [new file with mode: 0644]

diff --git a/packages/dpkg/dpkg-native_1.13.22.bb b/packages/dpkg/dpkg-native_1.13.22.bb
new file mode 100644 (file)
index 0000000..d5f439b
--- /dev/null
@@ -0,0 +1,13 @@
+require dpkg.inc
+PR = "r0"
+DEPENDS += "ncurses-native zlib-native virtual/update-alternatives-native"
+SRC_URI += "file://noman.patch;patch=1"
+
+inherit native
+
+EXTRA_OECONF = "--without-static-progs \
+               --without-dselect \
+               --with-start-stop-daemon \
+               --with-zlib \
+               --with-bz2lib \
+               --without-sgml-doc"
index 3c3f29c..349f31a 100644 (file)
@@ -2,9 +2,33 @@ DESCRIPTION = "Package maintenance system for Debian."
 LICENSE = "GPL"
 SECTION = "base"
 DEPENDS = "ncurses zlib"
+DEPENDS_${PN} += "update-alternatives"
+
 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz"
 S = "${WORKDIR}/dpkg-${PV}"
 
 PARALLEL_MAKE = ""
+
+inherit autotools gettext
+
+DPKG_INIT_POSITION = "98"
+DPKG_INIT_POSITION_slugos = "41"
+
+pkg_postinst_dpkg () {
+#!/bin/sh
+if [ "x$D" != "x" ]; then
+       install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
+       # this happens at S98 where our good 'ole packages script used to run
+       echo -e "#!/bin/sh
+       dpkg --configure -a
+" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+       chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+fi
+}
+
+do_configure () {
+    echo >> m4/compiler.m4
+    autotools_do_configure
+}
diff --git a/packages/dpkg/dpkg_1.13.22.bb b/packages/dpkg/dpkg_1.13.22.bb
new file mode 100644 (file)
index 0000000..fd97f9f
--- /dev/null
@@ -0,0 +1,10 @@
+require dpkg.inc
+PR = "r0"
+DEPENDS += "ncurses zlib bzip2"
+
+EXTRA_OECONF = "--without-static-progs \
+               --without-dselect \
+               --with-start-stop-daemon \
+               --with-zlib \
+               --with-bz2lib \
+               --without-sgml-doc"
diff --git a/packages/dpkg/files/nochroot.patch b/packages/dpkg/files/nochroot.patch
new file mode 100644 (file)
index 0000000..3a8beae
--- /dev/null
@@ -0,0 +1,18 @@
+---
+ src/help.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- dpkg-1.13.22.orig/src/help.c
++++ dpkg-1.13.22/src/help.c
+@@ -175,9 +175,11 @@ static const char* preexecscript(const c
+    */
+   size_t instdirl;
++#if 0
+   if (*instdir) {
+     if (chroot(instdir)) ohshite(_("failed to chroot to `%.250s'"),instdir);
+   }
++#endif
+   if (f_debug & dbg_scripts) {
+     fprintf(stderr,"D0%05o: fork/exec %s (",dbg_scripts,path);
+     while (*++argv) fprintf(stderr," %s",*argv);
diff --git a/packages/dpkg/files/noman.patch b/packages/dpkg/files/noman.patch
new file mode 100644 (file)
index 0000000..f5984fe
--- /dev/null
@@ -0,0 +1,16 @@
+---
+ Makefile.am |    3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- dpkg-1.13.22.orig/Makefile.am
++++ dpkg-1.13.22/Makefile.am
+@@ -15,8 +15,7 @@ SUBDIRS = \
+       utils \
+       scripts \
+       po \
+-      origins \
+-      man
++      origins
+ ACLOCAL_AMFLAGS = -I m4
diff --git a/packages/dpkg/files/noupdalt.patch b/packages/dpkg/files/noupdalt.patch
new file mode 100644 (file)
index 0000000..023e99a
--- /dev/null
@@ -0,0 +1,16 @@
+---
+ scripts/Makefile.am |    3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- dpkg-1.13.22.orig/scripts/Makefile.am
++++ dpkg-1.13.22/scripts/Makefile.am
+@@ -20,8 +20,7 @@ bin_SCRIPTS = \
+ sbin_SCRIPTS = \
+       cleanup-info \
+       dpkg-divert \
+-      dpkg-statoverride \
+-      update-alternatives
++      dpkg-statoverride
+ changelogdir = $(pkglibdir)/parsechangelog
+ changelog_SCRIPTS = \