dpkg: upgrade to 1.18.15
PATCH 1/1 dpkg: upgrade to 1.18.15
From: Edwin Plauchu <[email protected]>
Signed-off-by Edwin Plauchu <[email protected]>
--- ...tinsts-expect-D-to-be-set-when-running-in.patch | 30 +++++++------- .../dpkg/dpkg/add_armeb_triplet_entry.patch | 46 ---------------------- .../dpkg/dpkg/add_armeb_tuple_entry.patch | 46 ++++++++++++++++++++++ meta/recipes-devtools/dpkg/dpkg/arch_pm.patch | 12 +++--- meta/recipes-devtools/dpkg/dpkg/noman.patch | 9 +++-- meta/recipes-devtools/dpkg/dpkg_1.18.15.bb | 17 ++++++++ meta/recipes-devtools/dpkg/dpkg_1.18.7.bb | 19 --------- 7 files changed, 90 insertions(+), 89 deletions(-) delete mode 100644 meta/recipes-devtools/dpkg/dpkg/add_armeb_triplet_entry.patch create mode 100644 meta/recipes-devtools/dpkg/dpkg/add_armeb_tuple_entry.patch create mode 100644 meta/recipes-devtools/dpkg/dpkg_1.18.15.bb delete mode 100644 meta/recipes-devtools/dpkg/dpkg_1.18.7.bb
meta/recipes-devtools/dpkg/dpkg/0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch +16 -14
@@ -18,26 +18,31 @@ diff --git a/src/script.c b/src/script.c index 3c88be8..ce66a86 100644 --- a/src/script.c +++ b/src/script.c -@@ -97,43 +97,10 @@ setexecute(const char *path, struct stat *stab) +@@ -97,48 +97,10 @@ static const char * maintscript_pre_exec(struct command *cmd) { - const char *admindir = dpkg_db_get_dir(); -- const char *changedir = fc_script_chrootless ? instdir : "/"; -- size_t instdirl = strlen(instdir); +- const char *changedir; +- size_t instdirlen = strlen(instdir); - -- if (*instdir && !fc_script_chrootless) { -- if (strncmp(admindir, instdir, instdirl) != 0) +- if (instdirlen > 0 && fc_script_chrootless) +- changedir = instdir; +- else +- changedir = "/"; +- +- if (instdirlen > 0 && !fc_script_chrootless) { +- if (strncmp(admindir, instdir, instdirlen) != 0) - ohshit(_("admindir must be inside instdir for dpkg to work properly")); -- if (setenv("DPKG_ADMINDIR", admindir + instdirl, 1) < 0) +- if (setenv("DPKG_ADMINDIR", admindir + instdirlen, 1) < 0) - ohshite(_("unable to setenv for subprocesses")); - if (setenv("DPKG_ROOT", "", 1) < 0) - ohshite(_("unable to setenv for subprocesses")); - - if (chroot(instdir)) - ohshite(_("failed to chroot to '%.250s'"), instdir); -+ if (*instdir) { -+ setenv("D", instdir, 1); ++ if (*instdir) { ++ setenv("D", instdir, 1); } - /* Switch to a known good directory to give the maintainer script - * a saner environment, also needed after the chroot(). */
@@ -56,15 +61,12 @@ index 3c88be8..ce66a86 100644 - args.buf); - varbuf_destroy(&args); - } -- if (!instdirl || fc_script_chrootless) +- if (instdirlen == 0 || fc_script_chrootless) - return cmd->filename; - -- assert(strlen(cmd->filename) >= instdirl); -- return cmd->filename + instdirl; +- assert(strlen(cmd->filename) >= instdirlen); +- return cmd->filename + instdirlen; + return cmd->filename; } /** --- -2.1.4 -
meta/recipes-devtools/dpkg/dpkg/add_armeb_triplet_entry.patch deleted +0 -46
46 lines not on this page · raw message
meta/recipes-devtools/dpkg/dpkg/add_armeb_tuple_entry.patch new file +46 -0
46 lines not on this page · raw message
meta/recipes-devtools/dpkg/dpkg/arch_pm.patch +6 -6
@@ -10,13 +10,13 @@ Signed-off-by: Joe Slater <[email protected]> --- a/scripts/Dpkg/Arch.pm +++ b/scripts/Dpkg/Arch.pm -@@ -233,9 +233,6 @@ sub read_triplettable() - (my $dt = $debtriplet) =~ s/<cpu>/$_cpu/; +@@ -286,9 +286,6 @@ + (my $dt = $debtuple) =~ s/<cpu>/$_cpu/; (my $da = $debarch) =~ s/<cpu>/$_cpu/; -- next if exists $debarch_to_debtriplet{$da} -- or exists $debtriplet_to_debarch{$dt}; +- next if exists $debarch_to_debtuple{$da} +- or exists $debtuple_to_debarch{$dt}; - - $debarch_to_debtriplet{$da} = $dt; - $debtriplet_to_debarch{$dt} = $da; + $debarch_to_debtuple{$da} = $dt; + $debtuple_to_debarch{$dt} = $da; }
meta/recipes-devtools/dpkg/dpkg/noman.patch +5 -4
@@ -1,14 +1,15 @@ Upstream-Status: Inappropriate [disable feature] diff -ruN dpkg-1.15.8.5-orig/Makefile.am dpkg-1.15.8.5/Makefile.am ---- dpkg-1.15.8.5-orig/Makefile.am 2010-10-08 12:27:15.042083703 +0800 -+++ dpkg-1.15.8.5/Makefile.am 2010-10-08 12:27:27.755148228 +0800 -@@ -12,8 +12,7 @@ - utils \ +--- dpkg-1.15.8.5-orig/Makefile.am 2010-10-08 12:27:15.042083703 +0800 ++++ dpkg-1.15.8.5/Makefile.am 2010-10-08 12:27:27.755148228 +0800 +@@ -13,8 +13,7 @@ $(MAYBE_DSELECT) \ scripts \ + t-func \ - po \ - man + po ACLOCAL_AMFLAGS = -I m4 +
meta/recipes-devtools/dpkg/dpkg_1.18.15.bb new file +17 -0
@@ -0,0 +1,17 @@ +require dpkg.inc +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" + +SRC_URI = "http://ftp.debian.org/debian/pool/main/d/${BPN}/${BPN}_${PV}.tar.xz \ + file://noman.patch \ + file://remove-tar-no-timestamp.patch \ + file://arch_pm.patch \ + file://dpkg-configure.service \ + file://0002-Adapt-to-linux-wrs-kernel-version-which-has-characte.patch \ + file://0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch \ + file://0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch \ + file://0005-dpkg-compiler.m4-remove-Wvla.patch \ + " +SRC_URI_append_class-native = " file://glibc2.5-sync_file_range.patch " + +SRC_URI[md5sum] = "7aa1b61da5bff4cbc5a1d2cb5a30d546" +SRC_URI[sha256sum] = "aee936653b9c39403160c0a331ee7934563fbfa4e1f5adbc14a289c803cda371"
meta/recipes-devtools/dpkg/dpkg_1.18.7.bb deleted +0 -19
@@ -1,19 +0,0 @@ -require dpkg.inc -LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" - -SRC_URI = "http://snapshot.debian.org/archive/debian/20160509T100042Z/pool/main/d/${BPN}/${BPN}_${PV}.tar.xz \ - file://noman.patch \ - file://remove-tar-no-timestamp.patch \ - file://arch_pm.patch \ - file://dpkg-configure.service \ - file://add_armeb_triplet_entry.patch \ - file://0002-Adapt-to-linux-wrs-kernel-version-which-has-characte.patch \ - file://0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch \ - file://0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch \ - file://0005-dpkg-compiler.m4-remove-Wvla.patch \ - file://0006-add-musleabi-to-known-target-tripets.patch \ - " -SRC_URI_append_class-native = " file://glibc2.5-sync_file_range.patch " - -SRC_URI[md5sum] = "073dbf2129a54b0fc627464bf8af4a1b" -SRC_URI[sha256sum] = "ace36d3a6dc750a42baf797f9e75ec580a21f92bb9ff96b482100755d6d9b87b"
Signature · 1 line
2.1.4
Quoted 3 lines · Edwin Plauchu
From: Edwin Plauchu <[email protected]>
Signed-off-by Edwin Plauchu <[email protected]>
In addition to file rename detection (see Jussi's mail), you need to explain in the commit message the changes that you made.
Specifically:
Quoted 1 line
...tinsts-expect-D-to-be-set-when-running-in.patch | 30 +++++++-------
Was this rebased? Did you have to also modify the code and how?
Quoted 2 lines
.../dpkg/dpkg/add_armeb_triplet_entry.patch | 46 ---------------------- .../dpkg/dpkg/add_armeb_tuple_entry.patch | 46 ++++++++++++++++++++++
Is this the same patch or two different patches? Why did triplet change to tuple?
Quoted 1 line
- file://0006-add-musleabi-to-known-target-tripets.patch \
What happened to this patch? You removed it from the recipe, but didn't remove the file and didn't explain why.
Alex