added my Recipes
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From e735fb23f46f0c3c7a1144ba6b4050bfc0015a05 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Wed, 2 Jun 2021 13:34:35 +0800
|
||||
Subject: [PATCH] do not hardcode the full path of dpkg
|
||||
|
||||
While calling debootstrap in sdk, if host does not install dpkg package,
|
||||
the full path calling will fail
|
||||
|
||||
Do not hardcode the full path of dpkg, then then sdk's dpkg will be used.
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
debootstrap | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/debootstrap b/debootstrap
|
||||
index a3cf3af..5e96c3e 100755
|
||||
--- a/debootstrap
|
||||
+++ b/debootstrap
|
||||
@@ -538,7 +538,7 @@ fi
|
||||
|
||||
if in_path dpkg && \
|
||||
dpkg --print-architecture >/dev/null 2>&1; then
|
||||
- HOST_ARCH=$(/usr/bin/dpkg --print-architecture)
|
||||
+ HOST_ARCH=$(dpkg --print-architecture)
|
||||
elif in_path udpkg && \
|
||||
udpkg --print-architecture >/dev/null 2>&1; then
|
||||
HOST_ARCH=$(/usr/bin/udpkg --print-architecture)
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 87d0174e8d56e7458dc94f05f82ab7a67a5cf7d0 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Thu, 8 Apr 2021 14:06:05 +0800
|
||||
Subject: [PATCH 1/2] support to override /usr/sbin and /usr/share
|
||||
|
||||
Upstream-Status: Submitted [https://salsa.debian.org/installer-team/debootstrap/-/merge_requests/55]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
Makefile | 12 +++++++-----
|
||||
1 file changed, 7 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 8516803..a2d8c00 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -5,14 +5,16 @@ all:
|
||||
|
||||
clean:
|
||||
|
||||
-DSDIR=$(DESTDIR)/usr/share/debootstrap
|
||||
+datadir ?= "/usr/share"
|
||||
+sbindir ?= "/usr/sbin"
|
||||
+DSDIR=$(DESTDIR)${datadir}/debootstrap
|
||||
install:
|
||||
mkdir -p $(DSDIR)/scripts
|
||||
- mkdir -p $(DESTDIR)/usr/sbin
|
||||
+ mkdir -p $(DESTDIR)$(sbindir)
|
||||
|
||||
cp -a scripts/* $(DSDIR)/scripts/
|
||||
install -o root -g root -m 0644 functions $(DSDIR)/
|
||||
|
||||
- sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap
|
||||
- chown root:root $(DESTDIR)/usr/sbin/debootstrap
|
||||
- chmod 0755 $(DESTDIR)/usr/sbin/debootstrap
|
||||
+ sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)$(sbindir)/debootstrap
|
||||
+ chown root:root $(DESTDIR)$(sbindir)/debootstrap
|
||||
+ chmod 0755 $(DESTDIR)$(sbindir)/debootstrap
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From f0420b201f2fb5286ccf5657faa6b38cd2680e10 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Thu, 8 Apr 2021 14:08:06 +0800
|
||||
Subject: [PATCH 2/2] support to override /usr/bin/arch-test
|
||||
|
||||
Upstream-Status: Submitted [https://salsa.debian.org/installer-team/debootstrap/-/merge_requests/55]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
debootstrap | 12 ++++++++----
|
||||
1 file changed, 8 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/debootstrap b/debootstrap
|
||||
index 9b9e58d..a3cf3af 100755
|
||||
--- a/debootstrap
|
||||
+++ b/debootstrap
|
||||
@@ -51,6 +51,10 @@ INRELEASE_PATH=""
|
||||
DEF_MIRROR="http://deb.debian.org/debian"
|
||||
DEF_HTTPS_MIRROR="https://deb.debian.org/debian"
|
||||
|
||||
+if [ -z "$ARCH_TEST" ]; then
|
||||
+ ARCH_TEST="/usr/bin/arch-test"
|
||||
+fi
|
||||
+
|
||||
# set $CONTAINER
|
||||
detect_container
|
||||
|
||||
@@ -645,12 +649,12 @@ fi
|
||||
|
||||
###########################################################################
|
||||
|
||||
-if [ -x /usr/bin/arch-test ] && am_doing_phase second_stage; then
|
||||
+if [ -x ${ARCH_TEST} ] && am_doing_phase second_stage; then
|
||||
if doing_variant fakechroot; then
|
||||
- ret=0; arch-test "$ARCH" || ret=$?
|
||||
+ ret=0; ${ARCH_TEST} "$ARCH" || ret=$?
|
||||
# Avoid failure with old arch-test package
|
||||
- elif arch-test --version > /dev/null 2>&1; then
|
||||
- ret=0; arch-test -c "$TARGET" "$ARCH" || ret=$?
|
||||
+ elif ${ARCH_TEST} --version > /dev/null 2>&1; then
|
||||
+ ret=0; ${ARCH_TEST} -c "$TARGET" "$ARCH" || ret=$?
|
||||
else
|
||||
ret=3
|
||||
fi
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
SUMMARY = "Install a Debian system into a subdirectory"
|
||||
HOMEPAGE = "https://wiki.debian.org/Debootstrap"
|
||||
SECTION = "devel"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=1e68ced6e1689d4cd9dac75ff5225608"
|
||||
|
||||
SRC_URI = "\
|
||||
${DEBIAN_MIRROR}/main/d/debootstrap/debootstrap_${PV}.tar.gz \
|
||||
file://0001-support-to-override-usr-sbin-and-usr-share.patch \
|
||||
file://0002-support-to-override-usr-bin-arch-test.patch \
|
||||
file://0001-do-not-hardcode-the-full-path-of-dpkg.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "09e7f8795fee894b77994213ee3a588e9d8f96ddf5f93afdec91e9a137aa7866"
|
||||
|
||||
S = "${WORKDIR}/debootstrap"
|
||||
|
||||
DEPENDS = " \
|
||||
virtual/fakeroot-native \
|
||||
"
|
||||
|
||||
fakeroot do_install() {
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
chown -R root:root ${D}${datadir}/debootstrap
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Reference in New Issue
Block a user