From 75a0ce9b438aa4f58f0cc8d36d4414b796703266 Mon Sep 17 00:00:00 2001 From: zhangchao13 Date: Sun, 23 Apr 2023 10:39:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20issue:=E6=BA=90=E4=BB=A3=E7=A0=81=20Makef?= =?UTF-8?q?ile=20=E6=96=87=E4=BB=B6=E6=8C=87=E5=AE=9A=E4=BA=86=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20gcc=20=E7=BC=96=E8=AF=91=E5=99=A8=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E7=BC=96=E8=AF=91=EF=BC=8C=E5=AF=BC=E8=87=B4=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0001-pigz-fix-cc.patch | 22 ++++++++++++++++++++++ pigz.spec | 7 ++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 0001-pigz-fix-cc.patch diff --git a/0001-pigz-fix-cc.patch b/0001-pigz-fix-cc.patch new file mode 100644 index 0000000..adf255e --- /dev/null +++ b/0001-pigz-fix-cc.patch @@ -0,0 +1,22 @@ +From 568d3b532e8861fdde4e3b16be8af692d5eac032 Mon Sep 17 00:00:00 2001 +From: zhangchao13 +Date: Sun, 23 Apr 2023 10:33:13 +0800 +Subject: [PATCH] pigz-fix-cc + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index b1866cf..0fc97fa 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,4 @@ +-CC=gcc ++CC?=gcc + CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual + LDFLAGS= + # CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -g -fsanitize=thread +-- +2.33.0 + diff --git a/pigz.spec b/pigz.spec index bab6331..81b324e 100644 --- a/pigz.spec +++ b/pigz.spec @@ -1,7 +1,7 @@ #spec from source code(%{name}-%{version}.tar.gz) Name: pigz Version: 2.7 -Release: 1 +Release: 2 Summary: pigz is a parallel implementation of gzip which utilizes multiple cores License: zlib Source0: http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz @@ -16,6 +16,8 @@ Mark Adler, and uses the zlib and pthread libraries. %package_help +Patch0: 0001-pigz-fix-cc.patch + %prep %autosetup -n %{name}-%{version} -p1 @@ -40,6 +42,9 @@ make test %{_mandir}/man1/pigz.1* %changelog +* Sun Apr 23 2023 Zhang Chao - 2.7-2 +- Fix CC compiler support + * Thu Jan 19 2023 zhangnan - 2.7-1 - update to 2.7 -- Gitee