[packages/lha] Rel 19

arekm arekm at pld-linux.org
Mon Mar 9 18:59:08 CET 2026


commit 1509116086227f8b80211f91737a615f49a42a1a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 9 18:58:56 2026 +0100

    Rel 19

 lha-headers.patch | 18 ++++++++++++++++++
 lha.spec          |  6 ++++--
 2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/lha.spec b/lha.spec
index ec6353a..3643f70 100644
--- a/lha.spec
+++ b/lha.spec
@@ -8,7 +8,7 @@ Summary(pt_BR.UTF-8):	Cria e expande arquivos no formato lharc
 Summary(tr.UTF-8):	lharc biçimindeki arşivleri yaratır ve genişletir
 Name:		lha
 Version:	1.14i
-Release:	18
+Release:	19
 License:	Freeware
 Group:		Applications/Archiving
 Source0:	http://www2m.biglobe.ne.jp/~dolphin/lha/prog/%{name}-114i.tar.gz
@@ -20,6 +20,7 @@ Patch2:		%{name}-sec.patch
 Patch3:		%{name}-symlink.patch
 Patch4:		%{name}-dir_length_bounds_check.patch
 Patch5:		%{name}-security_fixes.patch
+Patch6:		%{name}-headers.patch
 URL:		http://www2m.biglobe.ne.jp/~dolphin/lha/lha-unix.htm
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -74,11 +75,12 @@ açmak için Linux altında da kullanılabilir.
 %patch -P3 -p1
 %patch -P4 -p0
 %patch -P5 -p1
+%patch -P6 -p1
 
 %build
 %{__make} \
 	CC="%{__cc}" \
-	OPTIMIZE="%{rpmcflags} -DSUPPORT_LH7 -DMKSTEMP" \
+	OPTIMIZE="%{rpmcflags} -std=gnu89 -fcommon -DSUPPORT_LH7 -DMKSTEMP" \
 	MACHINE='-DEUC -DSYSV_SYSTEM_DIR -DTZSET -DARCHIVENAME_EXTENTION=\".lha\" -DBACKUPNAME_EXTENTION=\".bak\" -DSUPPORT_LH7' \
 	BINDIR=%{_bindir} \
 	MANDIR=%{_mandir} \
diff --git a/lha-headers.patch b/lha-headers.patch
new file mode 100644
index 0000000..370605b
--- /dev/null
+++ b/lha-headers.patch
@@ -0,0 +1,18 @@
+--- lha-114i/src/lha.h.orig	2026-03-09 11:00:00.000000000 +0000
++++ lha-114i/src/lha.h	2026-03-09 11:00:00.000000000 +0000
+@@ -14,10 +14,13 @@
+ #include <errno.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+-#include <sys/file.h>
+ #include <sys/stat.h>
+ #include <time.h>
+-
++#include <stdlib.h>
++#include <string.h>
++#include <unistd.h>
++#include <sys/wait.h>
++#include <strings.h>
+ #include <signal.h>
+ 
+ #include "lha_macro.h"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lha.git/commitdiff/1509116086227f8b80211f91737a615f49a42a1a



More information about the pld-cvs-commit mailing list