diff options
Diffstat (limited to 'testing/crystal/fix-makefile-stderr-redirect.patch')
-rw-r--r-- | testing/crystal/fix-makefile-stderr-redirect.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/crystal/fix-makefile-stderr-redirect.patch b/testing/crystal/fix-makefile-stderr-redirect.patch new file mode 100644 index 0000000000..5c5ccb925b --- /dev/null +++ b/testing/crystal/fix-makefile-stderr-redirect.patch @@ -0,0 +1,29 @@ +From 2d5bc81866affe7a625da96161644d17c50cf675 Mon Sep 17 00:00:00 2001 +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Sat, 24 Mar 2018 18:15:46 +0100 +Subject: [PATCH] Makefile: Fix redirect to stderr to be more portable + +`>/dev/stderr` does not work in some environments. Moreover, all POSIX +compliant shells supports standard `>&2` for redirect stdout to stderr. + +Upstream-Issue: https://github.com/crystal-lang/crystal/pull/5859 +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 2aa2e4f..a034f44 100644 +--- a/Makefile ++++ b/Makefile +@@ -55,7 +55,7 @@ CXXFLAGS += $(if $(debug),-g -O0) + ifeq (${LLVM_CONFIG},) + $(error Could not locate llvm-config, make sure it is installed and in your PATH, or set LLVM_CONFIG) + else +- $(shell echo $(shell printf '\033[33m')Using $(LLVM_CONFIG) [version=$(shell $(LLVM_CONFIG) --version)]$(shell printf '\033[0m') >/dev/stderr) ++ $(shell echo $(shell printf '\033[33m')Using $(LLVM_CONFIG) [version=$(shell $(LLVM_CONFIG) --version)]$(shell printf '\033[0m') >&2) + endif + + .PHONY: all +-- +2.10.1 (Apple Git-78) + |