From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
Date: Mon, 5 Mar 2018 01:15:10 +0100
Subject: HACK: make glibc build
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

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
---
 build-recipe-debootstrap | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/build-recipe-debootstrap b/build-recipe-debootstrap
index 9220952..2404fdc 100644
--- a/build-recipe-debootstrap
+++ b/build-recipe-debootstrap
@@ -68,6 +68,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
