From b2b17774e4020346b510fbb740546a4388ba4eb0 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Thu, 12 Jan 2023 14:56:43 +0200 Subject: [PATCH] make/rules-source.mk: Suppress grep warnings. The second grep in sequence can exit early (-q, as soon as we have one match it exits with a success) which makes the first grep unhappy as its write pipe is closed early, resulting in: syncing vulkan-loader... grep: write error: Broken pipe Let's silence those errors. --- make/rules-source.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/rules-source.mk b/make/rules-source.mk index ff8eb9d3..e882e04f 100644 --- a/make/rules-source.mk +++ b/make/rules-source.mk @@ -23,7 +23,7 @@ $$(OBJ)/.$(1)-source: SHELL := $$(SHELL) $$(OBJ)/.$(1)-source: $$(if $$(NO_MAKEFILE_DEPENDENCY),,$$(MAKEFILE_LIST)) $$(OBJ)/.$(1)-source: $$(shell echo -n 'syncing $(1)... ' >&2 && \ rsync --dry-run --filter=:C --exclude '*~' --exclude .git $$($(2)_SOURCE_ARGS) --info=name -Oarx --delete "$$(abspath $(3))/" "$$($(2)_SRC)" | \ - grep -v -e ^$$$$ | grep -q ^ && echo $(1)-rebuild && \ + grep -v -e ^$$$$ 2>/dev/null | grep -q ^ && echo $(1)-rebuild && \ echo 'done, dirty' >&2 || echo 'done' >&2) rsync --filter=:C --exclude '*~' --exclude .git $$($(2)_SOURCE_ARGS) --info=name -Oarx --delete "$$(abspath $(3))/" "$$($(2)_SRC)" $(--quiet?) touch $$@