dpkg: update to upstream version 1.16.3
PATCH 1/1 dpkg: update to upstream version 1.16.3
From: Marko Lindqvist <cazfi@cazfi-64>
Update dpkg recipe to get latest upstream version (1.16.3) as 1.15.8.7 is no longer available.
* check_version.patch : updated to apply cleanly
* dpkg-dev-avoid-fflush.patch : removed as already part of upstream
* ignore_extra_fields.patch : updated to apply cleanly
* perllibdir.patch : removed as unnecessary after upstream changes
* preinst.patch : updated to apply cleanly
* ignore_lutimes_errors.patch : new patch to fix unpack failures
--- meta/recipes-devtools/dpkg/dpkg.inc | 5 +- .../recipes-devtools/dpkg/dpkg/check_version.patch | 26 +-- .../dpkg/dpkg/dpkg-deb-avoid-fflush.patch | 198 -------------------- .../dpkg/dpkg/ignore_extra_fields.patch | 39 ++-- .../dpkg/dpkg/ignore_lutimes_errors.patch | 26 +++ meta/recipes-devtools/dpkg/dpkg/perllibdir.patch | 22 --- meta/recipes-devtools/dpkg/dpkg/preinst.patch | 45 +++-- meta/recipes-devtools/dpkg/dpkg_1.15.8.7.bb | 15 -- meta/recipes-devtools/dpkg/dpkg_1.16.3.bb | 13 ++ 9 files changed, 104 insertions(+), 285 deletions(-) delete mode 100644 meta/recipes-devtools/dpkg/dpkg/dpkg-deb-avoid-fflush.patch create mode 100644 meta/recipes-devtools/dpkg/dpkg/ignore_lutimes_errors.patch delete mode 100644 meta/recipes-devtools/dpkg/dpkg/perllibdir.patch delete mode 100644 meta/recipes-devtools/dpkg/dpkg_1.15.8.7.bb create mode 100644 meta/recipes-devtools/dpkg/dpkg_1.16.3.bb
meta/recipes-devtools/dpkg/dpkg.inc +3 -2
@@ -2,10 +2,11 @@ DESCRIPTION = "Package maintenance system for Debian." LICENSE = "GPLv2.0+" SECTION = "base" -INC_PR = "r16" +INC_PR = "r17" SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2 \ - file://ignore_extra_fields.patch" + file://ignore_extra_fields.patch \ + file://ignore_lutimes_errors.patch" DEPENDS = "zlib bzip2 perl" DEPENDS_virtclass-native = "bzip2-native zlib-native virtual/update-alternatives-native gettext-native perl-native-runtime"
meta/recipes-devtools/dpkg/dpkg/check_version.patch +15 -11
@@ -4,20 +4,24 @@ Signed-off-by: Dongxiao Xu <[email protected]> Upstream-Status: Inappropriate [embedded specific] -diff -ruN dpkg-1.15.8.5-orig/lib/dpkg/parsehelp.c dpkg-1.15.8.5/lib/dpkg/parsehelp.c ---- dpkg-1.15.8.5-orig/lib/dpkg/parsehelp.c 2010-10-08 12:27:15.058572774 +0800 -+++ dpkg-1.15.8.5/lib/dpkg/parsehelp.c 2010-10-09 11:18:15.484190771 +0800 -@@ -268,11 +268,11 @@ - - /* XXX: Would be faster to use something like cisversion and cisrevision. */ - for (ptr = rversion->version; *ptr; ptr++) { +Updated to apply over dpkg-1.16.3 + +Signed-off-by: Marko Lindqvist <[email protected]> + +diff -Nurd dpkg-1.16.3/lib/dpkg/parsehelp.c dpkg-1.16.3/lib/dpkg/parsehelp.c +--- dpkg-1.16.3/lib/dpkg/parsehelp.c 2012-04-27 05:49:02.000000000 +0300 ++++ dpkg-1.16.3/lib/dpkg/parsehelp.c 2012-05-04 13:46:27.000000000 +0300 +@@ -253,11 +253,11 @@ + if (*ptr && !cisdigit(*ptr++)) + return dpkg_put_warn(err, _("version number does not start with digit")); + for (; *ptr; ptr++) { - if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".-+~:", *ptr) == NULL) + if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".-+~:_", *ptr) == NULL) - return _("invalid character in version number"); + return dpkg_put_warn(err, _("invalid character in version number")); } for (ptr = rversion->revision; *ptr; ptr++) { -- if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".-+~", *ptr) == NULL) -+ if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".-+~_", *ptr) == NULL) - return _("invalid character in revision number"); +- if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".+~", *ptr) == NULL) ++ if (!cisdigit(*ptr) && !cisalpha(*ptr) && strchr(".+~_", *ptr) == NULL) + return dpkg_put_warn(err, _("invalid character in revision number")); }
meta/recipes-devtools/dpkg/dpkg/dpkg-deb-avoid-fflush.patch deleted +0 -198
198 lines not on this page · raw message
meta/recipes-devtools/dpkg/dpkg/ignore_extra_fields.patch +21 -18
@@ -1,22 +1,25 @@ Upstream-Status: Inappropriate [workaround] -diff -ruN dpkg-1.15.8.5-orig/dpkg-deb/build.c dpkg-1.15.8.5/dpkg-deb/build.c ---- dpkg-1.15.8.5-orig/dpkg-deb/build.c 2010-10-08 12:27:15.042083703 +0800 -+++ dpkg-1.15.8.5/dpkg-deb/build.c 2010-10-08 12:31:53.822534277 +0800 -@@ -275,14 +275,14 @@ - controlfile, checkedinfo->otherpriority); - warns++; - } -- for (field= checkedinfo->available.arbs; field; field= field->next) { -+ /*for (field= checkedinfo->available.arbs; field; field= field->next) { - if (known_arbitrary_field(field)) - continue; +Updated to apply over dpkg-1.16.3 + +Signed-off-by: Marko Lindqvist <[email protected]> + +diff -Nurd dpkg-1.16.3/dpkg-deb/build.c dpkg-1.16.3/dpkg-deb/build.c +--- dpkg-1.16.3/dpkg-deb/build.c 2012-04-27 05:49:02.000000000 +0300 ++++ dpkg-1.16.3/dpkg-deb/build.c 2012-05-04 13:28:39.000000000 +0300 +@@ -340,6 +340,7 @@ + if (pkg->priority == pri_other) + warning(_("'%s' contains user-defined Priority value '%s'"), + controlfile, pkg->otherpriority); ++#if 0 + for (field = pkg->available.arbs; field; field = field->next) { + if (known_arbitrary_field(field)) + continue; +@@ -347,6 +348,7 @@ + warning(_("'%s' contains user-defined field '%s'"), controlfile, + field->name); + } ++#endif - warning(_("'%s' contains user-defined field '%s'"), - controlfile, field->name); - warns++; -- } -+ }*/ + free(controlfile); - if (subdir) { - versionstring= versiondescribe(&checkedinfo->available.version,vdew_never);
meta/recipes-devtools/dpkg/dpkg/ignore_lutimes_errors.patch new file +26 -0
@@ -0,0 +1,26 @@ +do not error out if symbolic link modification time setting fails + +In OE environment setting that timestamp could fail for several +non-error reasons, thus aborting package unpacking. + +Upstream-Status: Pending [http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=672715]] + +Signed-off-by: Marko Lindqvist <[email protected]> + +diff -Nurd dpkg-1.16.3/src/archives.c dpkg-1.16.3/src/archives.c +--- dpkg-1.16.3/src/archives.c 2012-04-27 05:49:03.000000000 +0300 ++++ dpkg-1.16.3/src/archives.c 2012-05-13 03:14:08.000000000 +0300 +@@ -432,8 +432,11 @@ + + if (te->type == tar_filetype_symlink) { + #ifdef HAVE_LUTIMES +- if (lutimes(path, tv) && errno != ENOSYS) +- ohshite(_("error setting timestamps of `%.255s'"), path); ++ if (lutimes(path, tv) && errno != ENOSYS) { ++ /* In OE environment lutimes() could fail for several reasons and we don't ++ * want that to abort unpacking. For example link can be absolute path to ++ * something that is not present in host system. */ ++ } + #endif + } else { + if (utimes(path, tv))
meta/recipes-devtools/dpkg/dpkg/perllibdir.patch deleted +0 -22
@@ -1,22 +0,0 @@ -We want to be able to set PERL_LIBDIR from the environment. This -hardcoded assignment prevents us from doing so and obtains an -incorrect value. - -Upstream-Status: Inappropriate [in this form at least] - -RP 14/11/2011 - -Index: dpkg-1.15.8.7/m4/dpkg-progs.m4 -=================================================================== ---- dpkg-1.15.8.7.orig/m4/dpkg-progs.m4 2011-11-14 17:32:21.252053239 +0000 -+++ dpkg-1.15.8.7/m4/dpkg-progs.m4 2011-11-14 17:32:55.180052455 +0000 -@@ -9,9 +9,6 @@ - [AC_ARG_VAR([PERL], [Perl interpreter])dnl - AC_PATH_PROG([PERL], [perl], [/usr/bin/perl])dnl - AC_ARG_VAR([PERL_LIBDIR], [Perl library directory])dnl --PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{vendorlibexp}; -- $r =~ s/$Config{vendorprefixexp}/\$(prefix)/; -- print $r')dnl - ])# DPKG_PROG_PERL - - # DPKG_PROG_PO4A
meta/recipes-devtools/dpkg/dpkg/preinst.patch +26 -19
67 lines not on this page · raw message
meta/recipes-devtools/dpkg/dpkg_1.15.8.7.bb deleted +0 -15
@@ -1,15 +0,0 @@ -require dpkg.inc -LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" - -SRC_URI += "file://noman.patch \ - file://check_snprintf.patch \ - file://check_version.patch \ - file://perllibdir.patch \ - file://preinst.patch \ - file://dpkg-deb-avoid-fflush.patch" - -SRC_URI[md5sum] = "d1731d4147c1ea3b537a4d094519a6dc" -SRC_URI[sha256sum] = "1ec1376471b04717a4497e5d7a27cd545248c92116898ce0c53ced8ea94267b5" - -PR = "${INC_PR}.4" -
meta/recipes-devtools/dpkg/dpkg_1.16.3.bb new file +13 -0
@@ -0,0 +1,13 @@ +require dpkg.inc +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" + +SRC_URI += "file://noman.patch \ + file://check_snprintf.patch \ + file://check_version.patch \ + file://preinst.patch" + +SRC_URI[md5sum] = "20189e2926ada3dda4f77ef2e36999af" +SRC_URI[sha256sum] = "8048890ca92a3ca317a4fdd557f8e9b2b3ce560743e8e70813496f9a7096d8d8" + +PR = "${INC_PR}.0" +
Signature · 1 line
1.7.10
Quoted 4 lines · Marko Lindqvist
From: Marko Lindqvist <cazfi@cazfi-64>
Update dpkg recipe to get latest upstream version (1.16.3) as 1.15.8.7 is no longer available.
Just to reminding you that final versions I posted suffered from no
bugs I'm aware of. This dpkg update patch works standalone. apt update one requires patch "package_deb.bbclass: don't handle advanced dependency marker as version number" before updated apt works at all. Bug fixed by that patch is not new with apt update - it just isn't causing fatal error with earlier version of apt (or any other package).
Computer I had set up for OpenEmbedded development failed over a
Month ago, and I'm still using just temporary solutions for all my sw development needs - making OE setup to these temporary environments is not feasible. So I'm afraid I cannot do any real development at the moment, but I'll try to answer any questions you have about those three patches.
- ML