From e75e5879c0e8d232a2e8f045685beeb8c965aba4 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 6 Dec 2015 14:03:35 +0100 Subject: replace "which" with "command -v" for portability which is a debian specific tool packaged in debianutils (essential) while command is a shell builtin defined by POSIX. Closes: 807144 Thanks: Mingye Wang for the suggestion. --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index c8e7cb285..db59d2898 100755 --- a/debian/rules +++ b/debian/rules @@ -24,7 +24,7 @@ confflags += --with-procs=$(PARALLEL) # See below -include build/environment.mak -ifneq (,$(shell which dpkg-buildflags)) +ifneq (,$(shell command -v dpkg-buildflags)) # make does not export to $(shell) so we need to workaround # (http://savannah.gnu.org/bugs/?10593) dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags -- cgit v1.2.3