diff options
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg/0001-script.c-avoid-use-of-chroot.patch (renamed from meta/recipes-devtools/dpkg/dpkg/0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch) | 28 | ||||
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg_1.22.10.bb (renamed from meta/recipes-devtools/dpkg/dpkg_1.22.6.bb) | 4 |
2 files changed, 20 insertions, 12 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch b/meta/recipes-devtools/dpkg/dpkg/0001-script.c-avoid-use-of-chroot.patch index 916c7dfb00..7d4dc97e94 100644 --- a/meta/recipes-devtools/dpkg/dpkg/0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch +++ b/meta/recipes-devtools/dpkg/dpkg/0001-script.c-avoid-use-of-chroot.patch | |||
@@ -1,9 +1,11 @@ | |||
1 | From b6c28222276704a1e1a544983e38dfa2f3fb481a Mon Sep 17 00:00:00 2001 | 1 | From cf135f2b3395e54dc1adfe51c1a25922e01c167e Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Wed, 26 Aug 2015 16:25:45 +0300 | 3 | Date: Wed, 26 Aug 2015 16:25:45 +0300 |
4 | Subject: [PATCH] Our pre/postinsts expect $D to be set when running in a | 4 | Subject: [PATCH] script.c: avoid use of chroot |
5 | sysroot and don't expect a chroot. This matches up our system expectations | 5 | |
6 | with what dpkg does. | 6 | Our pre/postinsts expect $D to be set when running in a sysroot and |
7 | don't expect a chroot. This matches up our system expectations with what | ||
8 | dpkg does. | ||
7 | 9 | ||
8 | Upstream-Status: Inappropriate [OE Specific] | 10 | Upstream-Status: Inappropriate [OE Specific] |
9 | 11 | ||
@@ -11,15 +13,19 @@ RP 2011/12/07 | |||
11 | ALIMON 2016/05/26 | 13 | ALIMON 2016/05/26 |
12 | ALIMON 2017/02/21 | 14 | ALIMON 2017/02/21 |
13 | KKang 2019/02/20 | 15 | KKang 2019/02/20 |
16 | |||
17 | Refresh to apply on top of v1.22.10. | ||
18 | |||
19 | Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> | ||
14 | --- | 20 | --- |
15 | src/main/script.c | 53 +++-------------------------------------------- | 21 | src/main/script.c | 52 +++-------------------------------------------- |
16 | 1 file changed, 3 insertions(+), 50 deletions(-) | 22 | 1 file changed, 3 insertions(+), 49 deletions(-) |
17 | 23 | ||
18 | diff --git a/src/main/script.c b/src/main/script.c | 24 | diff --git a/src/main/script.c b/src/main/script.c |
19 | index 017d92efe..181e7c710 100644 | 25 | index e9aee0bf9..181e7c710 100644 |
20 | --- a/src/main/script.c | 26 | --- a/src/main/script.c |
21 | +++ b/src/main/script.c | 27 | +++ b/src/main/script.c |
22 | @@ -97,58 +97,11 @@ static const char * | 28 | @@ -97,57 +97,11 @@ static const char * |
23 | maintscript_pre_exec(struct command *cmd) | 29 | maintscript_pre_exec(struct command *cmd) |
24 | { | 30 | { |
25 | const char *instdir = dpkg_fsys_get_dir(); | 31 | const char *instdir = dpkg_fsys_get_dir(); |
@@ -62,9 +68,8 @@ index 017d92efe..181e7c710 100644 | |||
62 | - varbuf_add_char(&args, ' '); | 68 | - varbuf_add_char(&args, ' '); |
63 | - varbuf_add_str(&args, *argv); | 69 | - varbuf_add_str(&args, *argv); |
64 | - } | 70 | - } |
65 | - varbuf_end_str(&args); | ||
66 | - debug(dbg_scripts, "fork/exec %s (%s )", cmd->filename, | 71 | - debug(dbg_scripts, "fork/exec %s (%s )", cmd->filename, |
67 | - args.buf); | 72 | - varbuf_str(&args)); |
68 | - varbuf_destroy(&args); | 73 | - varbuf_destroy(&args); |
69 | + if (*instdir) { | 74 | + if (*instdir) { |
70 | + setenv("D", instdir, 1); | 75 | + setenv("D", instdir, 1); |
@@ -81,3 +86,6 @@ index 017d92efe..181e7c710 100644 | |||
81 | } | 86 | } |
82 | 87 | ||
83 | /** | 88 | /** |
89 | -- | ||
90 | 2.39.2 | ||
91 | |||
diff --git a/meta/recipes-devtools/dpkg/dpkg_1.22.6.bb b/meta/recipes-devtools/dpkg/dpkg_1.22.10.bb index 3f5f7395e0..b247404855 100644 --- a/meta/recipes-devtools/dpkg/dpkg_1.22.6.bb +++ b/meta/recipes-devtools/dpkg/dpkg_1.22.10.bb | |||
@@ -7,7 +7,7 @@ SRC_URI = "git://salsa.debian.org/dpkg-team/dpkg.git;protocol=https;branch=main | |||
7 | file://arch_pm.patch \ | 7 | file://arch_pm.patch \ |
8 | file://add_armeb_triplet_entry.patch \ | 8 | file://add_armeb_triplet_entry.patch \ |
9 | file://0002-Adapt-to-linux-wrs-kernel-version-which-has-characte.patch \ | 9 | file://0002-Adapt-to-linux-wrs-kernel-version-which-has-characte.patch \ |
10 | file://0003-Our-pre-postinsts-expect-D-to-be-set-when-running-in.patch \ | 10 | file://0001-script.c-avoid-use-of-chroot.patch \ |
11 | file://0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch \ | 11 | file://0004-The-lutimes-function-doesn-t-work-properly-for-all-s.patch \ |
12 | file://0006-add-musleabi-to-known-target-tripets.patch \ | 12 | file://0006-add-musleabi-to-known-target-tripets.patch \ |
13 | file://0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch \ | 13 | file://0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch \ |
@@ -17,6 +17,6 @@ SRC_URI = "git://salsa.debian.org/dpkg-team/dpkg.git;protocol=https;branch=main | |||
17 | 17 | ||
18 | SRC_URI:append:class-native = " file://0001-build.c-ignore-return-of-1-from-tar-cf.patch" | 18 | SRC_URI:append:class-native = " file://0001-build.c-ignore-return-of-1-from-tar-cf.patch" |
19 | 19 | ||
20 | SRCREV = "b2f9600ead232a2dd3c27f8b52807a9ca5854d17" | 20 | SRCREV = "ef5536cfe24e4c41c6fdc56e4530161fade3887c" |
21 | 21 | ||
22 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |