tags 661071 patch thanks On Fri, Feb 24, 2012 at 01:48:54AM +0200, Sami Liedes wrote: > ------------------------------------------------------------ > 20 dpkg-source: info: building e2fsprogs in e2fsprogs_1.42.1-1.dsc > 21 debian/rules build > 22 /bin/sh: 1: Syntax error: Bad fd number > 23 /bin/sh: 1: Syntax error: Bad fd number > 24 /bin/sh: 1: Syntax error: Bad fd number > ------------------------------------------------------------
And here's a patch to fix this; it's caused by a bashism in debian/rules and is the root cause for this entire bug. ------------------------------------------------------------ --- e2fsprogs-1.42.1/debian/rules 2012-02-17 21:32:17.000000000 +0200 +++ e2fsprogs-1.42.1.fix/debian/rules 2012-02-24 02:29:59.168218124 +0200 @@ -116,11 +116,11 @@ DEFAULT_CFLAGS = -g -O2 DEFAULT_LDFLAGS = -Wl,-Bsymbolic-functions -CFLAGS = $(shell if dpkg-buildflags >& /dev/null; then \ +CFLAGS = $(shell if dpkg-buildflags > /dev/null 2>&1; then \ dpkg-buildflags --get CFLAGS; else echo $(DEFAULT_CFLAGS) ; fi) -LDFLAGS = $(shell if dpkg-buildflags >& /dev/null; then \ +LDFLAGS = $(shell if dpkg-buildflags > /dev/null 2>&1; then \ dpkg-buildflags --get LDFLAGS; else echo $(DEFAULT_LDFLAGS) ; fi) -CPPFLAGS = $(shell if dpkg-buildflags >& /dev/null; then \ +CPPFLAGS = $(shell if dpkg-buildflags > /dev/null 2>&1; then \ dpkg-buildflags --get CPPFLAGS; fi) ifeq (${DEB_HOST_ARCH},alpha) ------------------------------------------------------------ Perhaps you could also be persuaded to consider a patch that makes the build log more verbose? ------------------------------------------------------------ --- e2fsprogs-1.42.1/debian/rules 2012-02-17 21:32:17.000000000 +0200 +++ e2fsprogs-1.42.1.fix/debian/rules 2012-02-24 02:29:59.168218124 +0200 @@ -139,7 +139,7 @@ BF_CFLAGS = -Os -fomit-frame-pointer COMMON_CONF_FLAGS = --disable-e2initrd-helper --enable-elf-shlibs \ - --enable-quota --infodir=/usr/share/info + --enable-quota --infodir=/usr/share/info --enable-verbose-makecmds ifeq ($(UTIL_LINUX_NG),yes) COMMON_CONF_FLAGS += --disable-fsck --disable-libblkid \ --disable-libuuid --disable-uuidd @@ -163,7 +163,7 @@ --disable-uuidd --disable-tls --disable-debugfs STATIC_CONF_FLAGS = --disable-nls --disable-imager \ - --disable-uuidd --disable-tls + --disable-uuidd --disable-tls --enable-verbose-makecmds MIPS_NOPIC_CONF_FLAGS = --disable-nls --disable-imager \ --disable-uuidd --disable-tls \ ------------------------------------------------------------ Sami
signature.asc
Description: Digital signature