Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 3e160f3613 | |||
| 0d090b507a |
41
lha-gcc15.patch
Normal file
41
lha-gcc15.patch
Normal file
@@ -0,0 +1,41 @@
|
||||
diff -upr lha-1.14.1~git.20230329.orig/src/lha.h lha-1.14.1~git.20230329/src/lha.h
|
||||
--- lha-1.14.1~git.20230329.orig/src/lha.h 2025-06-19 10:13:18.371528833 +0000
|
||||
+++ lha-1.14.1~git.20230329/src/lha.h 2025-06-19 10:20:40.265231480 +0000
|
||||
@@ -215,7 +215,7 @@ int fnmatch(const char *pattern, const c
|
||||
|
||||
struct encode_option {
|
||||
#if defined(__STDC__) || defined(AIX)
|
||||
- void (*output) ();
|
||||
+ void (*output) (unsigned short, unsigned short);
|
||||
void (*encode_start) ();
|
||||
void (*encode_end) ();
|
||||
#else
|
||||
diff -upr lha-1.14.1~git.20230329.orig/src/lhadd.c lha-1.14.1~git.20230329/src/lhadd.c
|
||||
--- lha-1.14.1~git.20230329.orig/src/lhadd.c 2025-06-19 10:13:18.371603330 +0000
|
||||
+++ lha-1.14.1~git.20230329/src/lhadd.c 2025-06-19 10:16:18.876845083 +0000
|
||||
@@ -9,7 +9,7 @@
|
||||
/* ------------------------------------------------------------------------ */
|
||||
#include "lha.h"
|
||||
/* ------------------------------------------------------------------------ */
|
||||
-static void remove_files();
|
||||
+static void remove_files(int, char **);
|
||||
|
||||
static char new_archive_name_buffer[FILENAME_LENGTH];
|
||||
static char *new_archive_name;
|
||||
diff -upr lha-1.14.1~git.20230329.orig/src/slide.c lha-1.14.1~git.20230329/src/slide.c
|
||||
--- lha-1.14.1~git.20230329.orig/src/slide.c 2025-06-19 10:13:18.372157080 +0000
|
||||
+++ lha-1.14.1~git.20230329/src/slide.c 2025-06-19 10:26:07.717831257 +0000
|
||||
@@ -37,11 +37,11 @@ static unsigned int *prev; /* previ
|
||||
static struct encode_option encode_define[2] = {
|
||||
#if defined(__STDC__) || defined(AIX)
|
||||
/* lh1 */
|
||||
- {(void (*) ()) output_dyn,
|
||||
+ {(void (*) (unsigned short, unsigned short)) output_dyn,
|
||||
(void (*) ()) encode_start_fix,
|
||||
(void (*) ()) encode_end_dyn},
|
||||
/* lh4, 5, 6, 7 */
|
||||
- {(void (*) ()) output_st1,
|
||||
+ {(void (*) (unsigned short, unsigned short)) output_st1,
|
||||
(void (*) ()) encode_start_st1,
|
||||
(void (*) ()) encode_end_st1}
|
||||
#else
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 19 10:28:23 UTC 2025 - pgajdos@suse.com
|
||||
|
||||
- added patches
|
||||
fix build with gcc15
|
||||
+ lha-gcc15.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 20 07:58:07 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
|
||||
|
||||
|
||||
4
lha.spec
4
lha.spec
@@ -23,6 +23,8 @@ Summary: Pack Program
|
||||
License: SUSE-Public-Domain
|
||||
URL: http://lha.sourceforge.jp/
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
# fix build with gcc15
|
||||
Patch0: lha-gcc15.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
# Conflict with another lha implementation:
|
||||
@@ -34,7 +36,7 @@ included for compatibility reasons only. Use GZIP for general archiving
|
||||
purposes, because it is the standard for Linux.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
|
||||
Reference in New Issue
Block a user