diff options
Diffstat (limited to 'meta/packages/dpkg')
-rw-r--r-- | meta/packages/dpkg/dpkg-native_1.13.22.bb | 3 | ||||
-rw-r--r-- | meta/packages/dpkg/dpkg.inc | 28 | ||||
-rw-r--r-- | meta/packages/dpkg/dpkg_1.13.22.bb | 5 | ||||
-rw-r--r-- | meta/packages/dpkg/files/nochroot.patch | 18 | ||||
-rw-r--r-- | meta/packages/dpkg/files/noupdalt.patch | 16 |
5 files changed, 64 insertions, 6 deletions
diff --git a/meta/packages/dpkg/dpkg-native_1.13.22.bb b/meta/packages/dpkg/dpkg-native_1.13.22.bb index 2f196c2ea6..db71ab08e8 100644 --- a/meta/packages/dpkg/dpkg-native_1.13.22.bb +++ b/meta/packages/dpkg/dpkg-native_1.13.22.bb @@ -1,8 +1,9 @@ require dpkg.inc +PR = "r1" +DEPENDS += "ncurses-native zlib-native virtual/update-alternatives" SRC_URI += "file://noman.patch;patch=1" inherit native -inherit autotools gettext EXTRA_OECONF = "--without-static-progs \ --without-dselect \ diff --git a/meta/packages/dpkg/dpkg.inc b/meta/packages/dpkg/dpkg.inc index 3c3f29c304..0d2053ab0f 100644 --- a/meta/packages/dpkg/dpkg.inc +++ b/meta/packages/dpkg/dpkg.inc @@ -1,10 +1,34 @@ DESCRIPTION = "Package maintenance system for Debian." LICENSE = "GPL" SECTION = "base" -DEPENDS = "ncurses zlib" MAINTAINER = "Chris Larson <kergoth@handhelds.org>" -SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz" +SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz \ + file://noupdalt.patch;patch=1" S = "${WORKDIR}/dpkg-${PV}" +DEPENDS_${PN} += "update-alternatives" + 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/meta/packages/dpkg/dpkg_1.13.22.bb b/meta/packages/dpkg/dpkg_1.13.22.bb index 08a9c06fbf..bcf45392b4 100644 --- a/meta/packages/dpkg/dpkg_1.13.22.bb +++ b/meta/packages/dpkg/dpkg_1.13.22.bb @@ -1,7 +1,6 @@ require dpkg.inc -DEPENDS += "bzip2" - -inherit autotools gettext +PR = "r2" +DEPENDS += "ncurses zlib bzip2" EXTRA_OECONF = "--without-static-progs \ --without-dselect \ diff --git a/meta/packages/dpkg/files/nochroot.patch b/meta/packages/dpkg/files/nochroot.patch new file mode 100644 index 0000000000..3a8beaebbf --- /dev/null +++ b/meta/packages/dpkg/files/nochroot.patch @@ -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/meta/packages/dpkg/files/noupdalt.patch b/meta/packages/dpkg/files/noupdalt.patch new file mode 100644 index 0000000000..023e99ae8d --- /dev/null +++ b/meta/packages/dpkg/files/noupdalt.patch @@ -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 = \ |