summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHéctor Orón Martínez <zumbi@debian.org>2018-03-05 01:15:10 +0100
committerHéctor Orón Martínez <zumbi@debian.org>2019-09-01 01:59:08 +0200
commitc4a6acb5bbad3b0c4e45cb0e1c9d6ab0a774f39c (patch)
treebee381f0656ea0a0636b7baf469bc90909f75241
parent419ff6568f341097741f8589d1a1917c6332b700 (diff)
HACK: make glibc build
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844420 Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by: Héctor Orón Martínez <zumbi@debian.org> Forwarded: not-needed, Debian-specific Bug-Debian: http://bugs.debian.org/844420 Last-Update: 2018-08-30 Gbp-Pq: Name 0003-HACK-make-glibc-build.patch
-rw-r--r--build-recipe-debootstrap5
1 files changed, 5 insertions, 0 deletions
diff --git a/build-recipe-debootstrap b/build-recipe-debootstrap
index 1151fda..2006814 100644
--- a/build-recipe-debootstrap
+++ b/build-recipe-debootstrap
@@ -69,6 +69,11 @@ recipe_build_debootstrap() {
cp $BUILD_ROOT/etc/hosts $BUILD_ROOT/$myroot/etc/hosts
fi
+
+ # Hack for glibc build, make localhost. resolve
+ echo "127.0.0.2 localhost." >> $BUILD_ROOT/$myroot/etc/hosts
+ cat $BUILD_ROOT/$myroot/etc/hosts
+
# Mount special filesystem in the debootstrap build root
mount -n -tproc none $BUILD_ROOT/$myroot/proc
mount -n -tsysfs -o ro none $BUILD_ROOT/$myroot/sys