Blame SOURCES/Use-gzip-c-instead-of-k.patch

15b0da
From 975b142e53608f3b218ee964bd28e1f4dfdde335 Mon Sep 17 00:00:00 2001
15b0da
From: Link Dupont <link@sub-pop.net>
15b0da
Date: Fri, 14 May 2021 14:54:44 -0400
15b0da
Subject: [PATCH] build: Use gzip -c instead of -k
15b0da
15b0da
The '-k' option was added in a later version of gzip.
15b0da
15b0da
Signed-off-by: Link Dupont <link@sub-pop.net>
15b0da
---
15b0da
 Makefile | 2 +-
15b0da
 1 file changed, 1 insertion(+), 1 deletion(-)
15b0da
15b0da
diff --git a/Makefile b/Makefile
15b0da
index 2cf6b88..0bc0efc 100644
15b0da
--- a/Makefile
15b0da
+++ b/Makefile
15b0da
@@ -95,7 +95,7 @@ data: $(DATA)
15b0da
 	go run $(BUILDFLAGS) -ldflags "$(LDFLAGS)" ./cmd/$(patsubst %.1,%,$@) --generate-man-page > $@
15b0da
 
15b0da
 %.1.gz: %.1
15b0da
-	gzip -k $^
15b0da
+	gzip -c $^ > $@.tmp && mv $@.tmp $@
15b0da
 
15b0da
 %-USAGE.md: $(GOSRC)
15b0da
 	go run $(BUILDFLAGS) -ldflags "$(LDFLAGS)" ./cmd/$(patsubst %-USAGE.md,%,$@) --generate-markdown > $@