[packages/bzip] Rel 7
arekm
arekm at pld-linux.org
Wed May 20 18:18:49 CEST 2026
commit 54f86f9d4d15724f07105e8eab9b7e38f4aec81f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 20 18:18:32 2026 +0200
Rel 7
bzip-signal-handler.patch | 22 ++++++++++++++++++++++
bzip.spec | 6 ++++--
2 files changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/bzip.spec b/bzip.spec
index 8b1eedd..ff72e12 100644
--- a/bzip.spec
+++ b/bzip.spec
@@ -2,11 +2,12 @@ Summary: Efficient compression program
Summary(pl.UTF-8): Skuteczny program kompresujący
Name: bzip
Version: 0.21
-Release: 6
+Release: 7
License: GPL, but see description for restrictions
Group: Applications/Archiving
Source0: ftp://custom.lab.unb.br/pub/compression/bzip/%{name}-%{version}.tar.gz
# Source0-md5: 03a7fe24ced5ac4401a32092409c78be
+Patch0: %{name}-signal-handler.patch
Obsoletes: bzip-man
Obsoletes: bzip-man-gz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -35,10 +36,11 @@ na stronę <http://www.lpf.org/>.
%prep
%setup -q
+%patch -P0 -p1
%build
%{__make} \
- CFLAGS="%{rpmcflags} -fomit-frame-pointer"
+ CFLAGS="%{rpmcppflags} %{rpmcflags} -fomit-frame-pointer"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/bzip-signal-handler.patch b/bzip-signal-handler.patch
new file mode 100644
index 0000000..22d35df
--- /dev/null
+++ b/bzip-signal-handler.patch
@@ -0,0 +1,22 @@
+Signal handlers must take int, not int*; modern GCC errors via
+-Werror=incompatible-pointer-types instead of warning.
+--- bzip-0.21/bzip.c.orig
++++ bzip-0.21/bzip.c
+@@ -2578,7 +2578,7 @@
+
+
+ /*---------------------------------------------*/
+-void mySignalCatcher ( IntNative *n )
++void mySignalCatcher ( IntNative n )
+ {
+ fprintf ( stderr,
+ "\n%s: Control-C (or similar) caught, quitting.\n",
+@@ -2588,7 +2588,7 @@
+
+
+ /*---------------------------------------------*/
+-void mySIGSEGVorSIGBUScatcher ( IntNative *n )
++void mySIGSEGVorSIGBUScatcher ( IntNative n )
+ {
+ if (compressing)
+ fprintf ( stderr,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bzip.git/commitdiff/54f86f9d4d15724f07105e8eab9b7e38f4aec81f
More information about the pld-cvs-commit
mailing list