Don't try to define $(DEB_HOST_ARCH) etc. if $(ARCH) is not defined

For arch-independent packages we don't need these, and the invocations
of dpkg-architecture with empty $(ARCH) result in error messages.

svn path=/dists/sid/linux/; revision=22033
This commit is contained in:
Ben Hutchings 2014-11-04 02:02:28 +00:00
parent cf4020e229
commit 8d627986a9
1 changed files with 2 additions and 0 deletions

2
debian/rules.real vendored
View File

@ -6,10 +6,12 @@
# expected to be available (need to be exported from the parent process).
#
SHELL := bash -e
ifdef ARCH
DEB_HOST_ARCH := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_HOST_ARCH)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_HOST_GNU_TYPE)
DEB_HOST_MULTIARCH:= $(shell dpkg-architecture -a'$(ARCH)' -qDEB_HOST_MULTIARCH)
DEB_BUILD_ARCH := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_BUILD_ARCH)
endif
MAINTAINER := $(shell sed -ne 's,^Maintainer: .[^<]*<\([^>]*\)>,\1,p' debian/control)
DISTRIBUTION := $(shell dpkg-parsechangelog | sed -ne 's,^Distribution: ,,p')
SOURCE_DATE := $(shell dpkg-parsechangelog | sed -ne 's,^Date: ,,p')