mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
libzip: fix the gcc2 patch so that it also compiles with gcc13
This commit is contained in:
@@ -20,7 +20,7 @@ PROVIDES="
|
||||
lib:libzip$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
PROVIDES+="
|
||||
cmd:zipcmp
|
||||
cmd:zipmerge
|
||||
cmd:ziptool
|
||||
|
||||
@@ -55,7 +55,7 @@ index b79873b..dda5da0 100644
|
||||
2.50.1
|
||||
|
||||
|
||||
From a4e23756bf9c98a5fa3abab6cfe733d469dcf58e Mon Sep 17 00:00:00 2001
|
||||
From 4c593c933d4b3cf347b933911f0f97bfb08dd09d Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
||||
Date: Tue, 26 Aug 2025 18:05:10 +0200
|
||||
Subject: gcc2 fixes
|
||||
@@ -216,14 +216,14 @@ index ed1704a..212a194 100644
|
||||
fprintf(stderr, "failed to add file to archive: %s\n", zip_strerror(archive));
|
||||
zip_discard(archive);
|
||||
diff --git a/src/zipcmp.c b/src/zipcmp.c
|
||||
index 536e9b2..6ee5d5f 100644
|
||||
index 536e9b2..fe72679 100644
|
||||
--- a/src/zipcmp.c
|
||||
+++ b/src/zipcmp.c
|
||||
@@ -411,6 +411,7 @@ list_directory(const char *name, struct archive *a) {
|
||||
size_t prefix_length;
|
||||
size_t name_length;
|
||||
char* normalized_name;
|
||||
+ char *const names[2] = {NULL, NULL};
|
||||
+ char* names[2] = {NULL, NULL};
|
||||
|
||||
name_length = strlen(name);
|
||||
if (name_length == 0) {
|
||||
@@ -292,7 +292,7 @@ index 6666ecb..53f5fc1 100644
|
||||
2.50.1
|
||||
|
||||
|
||||
From 32213250c5f3fb7d7fd5d7db0edace6488243845 Mon Sep 17 00:00:00 2001
|
||||
From a02a2fae20cbc6998469e2b5cf4400f45de31cad Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
||||
Date: Tue, 26 Aug 2025 18:06:03 +0200
|
||||
Subject: disable rpath
|
||||
|
||||
Reference in New Issue
Block a user