Use ?= for assignments to architecture variables.
Changes-By: lintian-brush
Fixes: lintian: debian-rules-sets-dpkg-architecture-variable
See-also: https://lintian.debian.org/tags/debian-rules-sets-dpkg-architecture-variable.html
Debian Janitor
2 years ago
10 | 10 |
|
11 | 11 |
[ Debian Janitor ]
|
12 | 12 |
* Trim trailing whitespace.
|
|
13 |
* Use ?= for assignments to architecture variables.
|
13 | 14 |
|
14 | 15 |
-- Matthias Klose <doko@debian.org> Thu, 10 Jun 2021 09:44:48 +0200
|
15 | 16 |
|
203 | 203 |
REQV_11 := (>= 11.1.0-2~)
|
204 | 204 |
|
205 | 205 |
# architecture dependent variables
|
206 | |
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
207 | |
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
206 |
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|
207 |
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
208 | 208 |
ifneq (,$(filter $(DEB_HOST_ARCH), i386 kfreebsd-i386 hurd-i386))
|
209 | 209 |
DEB_HOST_GNU_TYPE := $(subst i586,i686,$(DEB_HOST_GNU_TYPE))
|
210 | 210 |
i586_symlinks = yes
|
211 | 211 |
endif
|
212 | |
DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
212 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
213 | 213 |
|
214 | 214 |
all_archs_mips = mips mipsel mipsn32 mipsn32el mips64 mips64el mipsr6 mipsr6el mipsn32r6 mipsn32r6el mips64r6 mips64r6el
|
215 | 215 |
all_archs = alpha amd64 armel armhf arm64 hppa i386 ia64 m68k or1k powerpc ppc64 ppc64el riscv64 s390 s390x sh4 sparc sparc64 x32 hurd-i386 kfreebsd-amd64 kfreebsd-i386 \
|