From b2a12f103ca2f841d31acd81abf6536c40381059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?=
Date: Mon, 25 May 2020 15:12:51 +0100 Subject: [PATCH] sync lib/Makefile fix from upstream The previous one incorrectly enabled multithread options everywhere --- lib-make.patch | 48 +++++++++++++++--------------------------------- zstd.spec | 4 ++-- 2 files changed, 17 insertions(+), 35 deletions(-) diff --git a/lib-make.patch b/lib-make.patch index 1b45b29..2bbe9cf 100644 --- a/lib-make.patch +++ b/lib-make.patch @@ -1,38 +1,20 @@ -From 66db79bbb0977bea7023000dca6211c2cacf9a07 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?P=C3=A1draig=20Brady?=
-Date: Mon, 25 May 2020 13:16:31 +0100 -Subject: [PATCH] fix generalization of pattern rules in lib/Makefile - -This was introduced in v1.4.4-383-gf77fd5ce -and results in the default rule in lib/ doing nothing. ---- - lib/Makefile | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/lib/Makefile b/lib/Makefile -index e6213ac8..de437a98 100644 ---- a/lib/Makefile -+++ b/lib/Makefile -@@ -221,14 +221,14 @@ libzstd : $(LIBZSTD) +diff -Naur zstd-1.4.5.orig/lib/Makefile zstd-1.4.5/lib/Makefile +--- zstd-1.4.5.orig/lib/Makefile 2020-05-22 05:04:00.000000000 +0000 ++++ zstd-1.4.5/lib/Makefile 2020-05-25 14:11:28.947300726 +0000 +@@ -220,13 +220,14 @@ + .PHONY: lib lib : libzstd.a libzstd - .PHONY: lib-mt --%-mt : CPPFLAGS += -DZSTD_MULTITHREAD --%-mt : LDFLAGS += -pthread --%-mt : % -+% : CPPFLAGS += -DZSTD_MULTITHREAD -+% : LDFLAGS += -pthread -+% : lib +-.PHONY: lib-mt ++# note : do not define lib-mt or lib-release as .PHONY ++# make does not consider implicit pattern rule for .PHONY target ++ + %-mt : CPPFLAGS += -DZSTD_MULTITHREAD + %-mt : LDFLAGS += -pthread + %-mt : % @echo multi-threading build completed - .PHONY: lib-release --%-release : DEBUGFLAGS := --%-release : % -+% : DEBUGFLAGS := -+% : lib +-.PHONY: lib-release + %-release : DEBUGFLAGS := + %-release : % @echo release build completed - - --- -2.26.2 - diff --git a/zstd.spec b/zstd.spec index 4f7c881..24159a8 100644 --- a/zstd.spec +++ b/zstd.spec @@ -13,7 +13,7 @@ Name: zstd Version: 1.4.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Zstd compression library License: BSD and GPLv2 @@ -124,7 +124,7 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1 %ldconfig_scriptlets -n lib%{name} %changelog -* Fri May 25 2020 Pádraig Brady
- 1.4.5-2 +* Mon May 25 2020 Pádraig Brady
- 1.4.5-3 - Build shared library with correct compiler flags * Fri May 22 2020 Pádraig Brady
- 1.4.5-1