Oh!... rather than:
patch -p0 < patch-d-i
it should be:
cd ..
patch -p1 < patch-d-i
{ added cd .., replaced -p0 by -p1 }
But still one hunk rejected:
paul@kibar:~/debian-installer$ cat build/Makefile.rej
--- build/Makefile
+++ build/Makefile
@@ -523,12 +523,18 @@ ifndef ONLY_KLIBC
mkdir -p $(TREE)/lib
# HACK ALERT: X.Org modules are excluded from the scan as mklibs
# is unable to find symbols provided by the /usr/bin/Xorg binary
+ # Same for hurd libraries using backcalls
$(MKLIBS) -L $(TREE)/usr/lib -L $(TREE)/usr/lib/$(DEB_HOST_MULTIARCH) \
-L $(TEMP)/udeblibs -v -d $(TREE)/lib --root=$(TREE) \
-L $(TREE)/usr/lib/cdebconf/frontend \
$(addprefix -l,$(notdir $(wildcard $(TREE)/usr/lib/cdebconf/frontend/*.so))) \
`find $(TEMP) -type f -a \( -perm /0111 -o -name '*.so' -o -name '*.so.*' \) | \
- grep -v udeblibs | grep -v 'usr/lib/xorg/modules/.*\.so'`
+ grep -v udeblibs | grep -v 'usr/lib/xorg/modules/.*\.so' | \
+ grep -v lib/libddekit.so | grep -v lib/libmachdev.so | \
+ grep -v lib/libdiskfs.so | grep -v lib/libnetfs.so | \
+ grep -v lib/libtrivfs.so | grep -v lib/libpager.so | \
+ grep -v lib/hurd/console/.*\.so.* | grep -v lib/libcons.so | \
+ grep -v lib/libshouldbeinlibc.so `
ifeq ($(DEB_HOST_ARCH_OS),hurd)
# On Hurd the SONAME for the dynamic linker is ld.so.1, but binaries
paul@kibar:~/debian-installer$