summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/debootstrap/debootstrap/0003-do-not-hardcode-the-full-path-of-dpkg.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/debootstrap/debootstrap/0003-do-not-hardcode-the-full-path-of-dpkg.patch')
-rw-r--r--meta-oe/recipes-devtools/debootstrap/debootstrap/0003-do-not-hardcode-the-full-path-of-dpkg.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/debootstrap/debootstrap/0003-do-not-hardcode-the-full-path-of-dpkg.patch b/meta-oe/recipes-devtools/debootstrap/debootstrap/0003-do-not-hardcode-the-full-path-of-dpkg.patch
new file mode 100644
index 0000000000..0c1a7a65a8
--- /dev/null
+++ b/meta-oe/recipes-devtools/debootstrap/debootstrap/0003-do-not-hardcode-the-full-path-of-dpkg.patch
@@ -0,0 +1,30 @@
1From 33c4bc9540d6d9aee6d885b89d530130d50b8052 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 2 Jun 2021 13:34:35 +0800
4Subject: [PATCH] do not hardcode the full path of dpkg
5
6While calling debootstrap in sdk, if host does not install dpkg package,
7the full path calling will fail
8
9Do not hardcode the full path of dpkg, then then sdk's dpkg will be used.
10
11Upstream-Status: Inappropriate [oe specific]
12
13Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
14---
15 debootstrap | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/debootstrap b/debootstrap
19index 0cce33e..7586c58 100755
20--- a/debootstrap
21+++ b/debootstrap
22@@ -553,7 +553,7 @@ fi
23
24 if in_path dpkg && \
25 dpkg --print-architecture >/dev/null 2>&1; then
26- HOST_ARCH=$(/usr/bin/dpkg --print-architecture)
27+ HOST_ARCH=$(dpkg --print-architecture)
28 elif in_path udpkg && \
29 udpkg --print-architecture >/dev/null 2>&1; then
30 HOST_ARCH=$(/usr/bin/udpkg --print-architecture)