On Thu, Nov 20, 2014 at 09:05:55AM -0800, Daniel Schepler wrote: > I: Running cd tmp/buildd/*/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" > dpkg-buildpackage -us -uc -rfakeroot > dpkg-buildpackage: source package gcc-3.3 > dpkg-buildpackage: source version 1:3.3.6ds1-27.1 > dpkg-buildpackage: source distribution unstable > dpkg-buildpackage: source changed by Eric Dorland <e...@debian.org> > dpkg-buildpackage: host architecture amd64 > dpkg-source --before-build gcc-3.3-3.3.6ds1 > fakeroot debian/rules clean > debian/rules.defs:58: *** GCC_TARGET value "" is not a valid Debian > architecture. Stop. > dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
In d/rules.defs there is: | DEB_TARGET_ARCH := $(shell dpkg-architecture -f \ | -a$(GCC_TARGET) -qDEB_HOST_ARCH 2>/dev/null) | DEB_TARGET_ARCH_OS := $(shell dpkg-architecture -f \ | -a$(GCC_TARGET) -qDEB_HOST_ARCH_OS 2>/dev/null) | DEB_TARGET_ARCH_CPU := $(shell dpkg-architecture -f \ | -a$(GCC_TARGET) -qDEB_HOST_ARCH_CPU 2>/dev/null) In a normal build, GCC_TARGET is empty. Since dpkg 1.17.17, dpkg-architecture no longer accepts an empty argument to -a. Previously it would default to the native architecture which was correct for native builds. I guess that the following patch fixes the problem. --- debian/rules.defs.orig +++ debian/rules.defs @@ -34,6 +34,10 @@ endif endif +ifeq ($(GCC_TARGET),) +GCC_TARGET := $(DEB_HOST_ARCH) +endif + DEB_TARGET_ARCH := $(shell dpkg-architecture -f \ -a$(GCC_TARGET) -qDEB_HOST_ARCH 2>/dev/null) DEB_TARGET_ARCH_OS := $(shell dpkg-architecture -f \ Not tagging patch, since I did not verify this. Helmut -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org