From 15cc7e2b4af752ac2c15288858ae59f89410af63 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 24 Mar 2013 02:28:11 +0000 Subject: [PATCH] Add 'set -o pipefail' in front of find pipelines to catch regressions like #703800 svn path=/dists/sid/linux/; revision=19944 --- debian/rules.real | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules.real b/debian/rules.real index 4ce7908ac..b40218c2f 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -198,6 +198,7 @@ install-doc: $(STAMPS_DIR)/build-doc mkdir -p $(OUT_DIR) cp -a CREDITS MAINTAINERS README REPORTING-BUGS Documentation $(OUT_DIR) rm -rf $(OUT_DIR)/Documentation/DocBook + set -o pipefail; \ cd $(DIR)/Documentation/DocBook; \ find * -name '*.html' -print \ | \ @@ -210,6 +211,7 @@ install-manual: DIR=$(BUILD_DIR)/build-doc install-manual: DH_OPTIONS = -p$(PACKAGE_NAME) install-manual: $(STAMPS_DIR)/build-doc dh_prep + set -o pipefail; \ find $(DIR)/Documentation/DocBook/man/ -name '*.9' | xargs dh_installman +$(MAKE_SELF) install-base GENCONTROL_ARGS='$(call DEFINE_MULTIARCH,foreign)' @@ -231,6 +233,7 @@ install-headers_$(ARCH)_$(FEATURESET): $(STAMPS_DIR)/source_$(FEATURESET) dh_testroot dh_prep + set -o pipefail; \ cd $(SOURCE_DIR); \ ( \ echo Makefile; \ @@ -362,6 +365,7 @@ ifeq ($(MODULES),True) chmod a+x $(CURDIR)/debian/bin/no-depmod +$(MAKE_CLEAN) -C $(DIR) modules_install DEPMOD='$(CURDIR)/debian/bin/no-depmod' INSTALL_MOD_PATH='$(CURDIR)'/$(PACKAGE_DIR) INSTALL_MOD_STRIP=1 ifeq ($(DEBUG),True) + set -o pipefail; \ find $(PACKAGE_DIR) -name '*.ko' | sed 's|$(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/kernel/||' | while read module ; do \ objcopy --add-gnu-debuglink=$(DIR)/$$module $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/kernel/$$module || exit; \ done