Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144059358
D25594.id74644.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D25594.id74644.diff
View Options
Index: head/sysutils/debootstrap/Makefile
===================================================================
--- head/sysutils/debootstrap/Makefile
+++ head/sysutils/debootstrap/Makefile
@@ -3,6 +3,7 @@
PORTNAME= debootstrap
PORTVERSION= 1.0.115
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= DEBIAN/pool/main/d/${PORTNAME}
DISTNAME= ${PORTNAME}_${PORTVERSION}
@@ -13,7 +14,8 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/debian/copyright
-RUN_DEPENDS= wget:ftp/wget
+RUN_DEPENDS= wget:ftp/wget \
+ bash:shells/bash
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
@@ -29,6 +31,9 @@
${WRKSRC}/Makefile \
${WRKSRC}/debootstrap
@${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},g' \
+ ${WRKSRC}/Makefile \
+ ${WRKSRC}/debootstrap
+ @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
${WRKSRC}/Makefile \
${WRKSRC}/debootstrap
Index: head/sysutils/debootstrap/files/patch-Makefile
===================================================================
--- head/sysutils/debootstrap/files/patch-Makefile
+++ head/sysutils/debootstrap/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig 2016-09-09 12:30:20 UTC
+--- Makefile.orig 2019-07-06 11:22:30 UTC
+++ Makefile
-@@ -6,14 +6,12 @@ all:
+@@ -5,14 +5,12 @@ all:
clean:
Index: head/sysutils/debootstrap/files/patch-debootstrap
===================================================================
--- head/sysutils/debootstrap/files/patch-debootstrap
+++ head/sysutils/debootstrap/files/patch-debootstrap
@@ -1,5 +1,11 @@
---- debootstrap.orig 2018-06-13 13:00:11 UTC
+--- debootstrap.orig 2019-07-06 11:22:30 UTC
+++ debootstrap
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!%%LOCALBASE%%/bin/bash
+ set -e
+
+ VERSION='@VERSION@'
@@ -14,7 +14,7 @@ if [ -z "$DEBOOTSTRAP_DIR" ]; then
if [ -x /debootstrap/debootstrap ]; then
DEBOOTSTRAP_DIR=/debootstrap
@@ -9,7 +15,7 @@
fi
fi
-@@ -474,13 +474,7 @@ fi
+@@ -498,13 +498,7 @@ fi
###########################################################################
@@ -24,15 +30,15 @@
HOST_ARCH=$(cat "$DEBOOTSTRAP_DIR/arch")
fi
HOST_OS="$HOST_ARCH"
-@@ -502,6 +496,11 @@ if [ -z "$HOST_OS" ]; then
+@@ -524,6 +518,11 @@ if [ -z "$HOST_OS" ]; then
+ HOST_OS=freebsd
+ ;;
esac
- fi
-
++fi
++
+if [ "$HOST_OS" = "freebsd" -a -z "$HOST_ARCH" ]; then
+ HOST_ARCH=kfreebsd-`/sbin/sysctl -n hw.machine_arch`
+ EXTRACTOR_OVERRIDE=ar
-+fi
-+
- if [ -z "$ARCH" ]; then
- ARCH="$HOST_ARCH"
fi
+
+ if [ -z "$ARCH" ]; then
Index: head/sysutils/debootstrap/files/patch-functions
===================================================================
--- head/sysutils/debootstrap/files/patch-functions
+++ head/sysutils/debootstrap/files/patch-functions
@@ -0,0 +1,20 @@
+--- functions.orig 2019-07-06 11:22:30 UTC
++++ functions
+@@ -1139,6 +1139,7 @@ setup_proc () {
+ case "$HOST_OS" in
+ *freebsd*)
+ umount_on_exit /dev
++ umount_on_exit /dev/fd
+ umount_on_exit /proc
+ umount "$TARGET/proc" 2>/dev/null || true
+ if [ "$HOST_OS" = kfreebsd ]; then
+@@ -1224,7 +1225,8 @@ setup_dynamic_devices () {
+ kfreebsd*)
+ in_target mount -t devfs devfs /dev ;;
+ freebsd)
+- mount -t devfs devfs "$TARGET/dev" ;;
++ mount -t devfs devfs "$TARGET/dev"
++ mount -t fdescfs -o linrdlnk fdescfs "$TARGET/dev/fd" ;;
+ hurd*)
+ # Use the setup-translators of the hurd package
+ in_target /usr/lib/hurd/setup-translators -k ;;
Index: head/sysutils/debootstrap/files/patch-scripts-bionic
===================================================================
--- head/sysutils/debootstrap/files/patch-scripts-bionic
+++ head/sysutils/debootstrap/files/patch-scripts-bionic
@@ -0,0 +1,16 @@
+--- scripts/bionic.orig 2020-07-08 20:51:17.590645000 +0100
++++ scripts/bionic 2020-07-08 20:51:28.786509000 +0100
+@@ -249,10 +249,13 @@ echo \"Warning: Fake initctl called, doing nothing\""
+
+ info CONFBASE "Configuring the base system..."
+
++ # This step sometimes fails due to some missing functionality in Linuxulator. Just ignore it.
++ set +e
+ smallyes '' |
+ (repeatn 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be re-attempted up to five times." "" \
+ dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 || echo EXITCODE $?) |
+ dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING
++ set -e
+ fi
+
+ if [ -x "$TARGET/sbin/initctl.REAL" ]; then
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 5, 2:05 AM (1 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28439417
Default Alt Text
D25594.id74644.diff (4 KB)
Attached To
Mode
D25594: sysutils/deboostrap: make it use bash, mount fdescfs, ignore --configure errors
Attached
Detach File
Event Timeline
Log In to Comment