[packages/arj] - rel 7, build and install fixes
baggins
baggins at pld-linux.org
Sun Feb 22 14:01:56 CET 2026
commit ee46490feb9eba7bb632c10a01263d481fff54e9
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Feb 22 15:01:46 2026 +0100
- rel 7, build and install fixes
arj-glibc.patch | 13 +++++++++++--
arj.spec | 8 ++++++--
no-strip.patch | 11 +++++++++++
3 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/arj.spec b/arj.spec
index cdb5f01..4008ec9 100644
--- a/arj.spec
+++ b/arj.spec
@@ -2,15 +2,17 @@ Summary: ARJ archiver for Linux
Summary(pl.UTF-8): Archiwizator ARJ dla Linuksa
Name: arj
Version: 3.10.22
-Release: 6
+Release: 7
Epoch: 1
License: GPL
Group: Applications/Archiving
-Source0: http://testcase.newmail.ru/files/%{name}-%{version}.tar.gz
+Source0: https://arj.sourceforge.net/files/%{name}-%{version}.tar.gz
# Source0-md5: f263bf3cf6d42a8b7e85b4fb514336d3
+URL: https://arj.sourceforge.net/
Patch0: strnlen.patch
Patch1: %{name}-glibc.patch
Patch2: %{name}-format-security.patch
+Patch3: no-strip.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,12 +36,14 @@ pakietu zna sposób funkcjonowania programu ARJ pod DOS-em.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
%build
cd gnu
%{__autoconf}
install /usr/share/automake/config.* .
+export CFLAGS="%{rpmcflags} -D_GNU_SOURCE"
%configure
cd ..
%{__make} -j1 \
diff --git a/arj-glibc.patch b/arj-glibc.patch
index 03ab315..e1884f5 100644
--- a/arj-glibc.patch
+++ b/arj-glibc.patch
@@ -2,8 +2,7 @@ diff -ruN arj-3.10.22.orig/fardata.c arj-3.10.22/fardata.c
--- arj-3.10.22.orig/fardata.c 2004-04-17 04:39:42.000000000 -0700
+++ arj-3.10.22/fardata.c 2009-05-27 19:21:42.000000000 -0700
@@ -13,7 +13,7 @@
- /* ASR fix 02/05/2003: need that regardless of COLOR_OUTPUT to
- * support -jp
+ /* ASR fix 02/05/2003: need that regardless of COLOR_OUTPUT to support -jp
correctly */
#if SFX_LEVEL>=ARJ
- #define CUSTOM_PRINTF
@@ -11,3 +10,13 @@ diff -ruN arj-3.10.22.orig/fardata.c arj-3.10.22/fardata.c
#define CHUNK_SIZE 512 /* Size of the output block */
#define CHUNK_THRESHOLD (CHUNK_SIZE-256) /* Safety bound */
#endif
+--- arj-3.10.22/environ.c~ 2004-06-18 18:19:36.000000000 +0200
++++ arj-3.10.22/environ.c 2026-02-22 14:52:54.823336141 +0100
+@@ -58,6 +58,7 @@
+ #include <sys/ioctl.h>
+ #include <sys/statfs.h>
+ #include <sys/statvfs.h>
++ #include <sys/wait.h>
+ #elif defined(__FreeBSD__)||defined(__NetBSD__)
+ #include <sys/param.h>
+ #include <sys/mount.h>
diff --git a/no-strip.patch b/no-strip.patch
new file mode 100644
index 0000000..b9b4f41
--- /dev/null
+++ b/no-strip.patch
@@ -0,0 +1,11 @@
+--- arj-3.10.22/gnu/makefile.in~ 2004-04-17 13:28:06.000000000 +0200
++++ arj-3.10.22/gnu/makefile.in 2026-02-22 14:55:48.016669418 +0100
+@@ -53,7 +53,7 @@
+ ALL_CFLAGS += -g -DDEBUG
+ else
+ DEBUG_SM = r
+-ADD_LDFLAGS = -s @LD_STRIP@
++ADD_LDFLAGS =
+ endif
+
+ ALL_CFLAGS += $(CFLAGS)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/arj.git/commitdiff/ee46490feb9eba7bb632c10a01263d481fff54e9
More information about the pld-cvs-commit
mailing list