Skip to content

Commit

Permalink
aedi: update 7zip to 23.01
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jul 20, 2023
1 parent e4fd95e commit e658e06
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 45 deletions.
4 changes: 2 additions & 2 deletions aedi/target/tool_tier2.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def __init__(self, name='7zip'):

def prepare_source(self, state: BuildState):
state.download_source(
'https://www.7-zip.org/a/7z2201-src.tar.xz',
'393098730c70042392af808917e765945dc2437dee7aae3cfcc4966eb920fbc5',
'https://7-zip.org/a/7z2301-src.tar.xz',
'356071007360e5a1824d9904993e8b2480b51b570e8c9faf7c0f58ebe4bf9f74',
patches='7zip-fix-errors')

def detect(self, state: BuildState) -> bool:
Expand Down
67 changes: 24 additions & 43 deletions patch/7zip-fix-errors.diff
Original file line number Diff line number Diff line change
@@ -1,46 +1,27 @@
--- a/CPP/7zip/7zip_gcc.mak
+++ b/CPP/7zip/7zip_gcc.mak
@@ -17,10 +17,6 @@
PROGPATH_STATIC = $(O)/$(PROG)s
--- a/C/Threads.c
+++ b/C/Threads.c
@@ -371,10 +371,11 @@

WRes Event_Set(CEvent *p)
{
+ int res1, res2;
RINOK(pthread_mutex_lock(&p->_mutex))
p->_state = True;
- int res1 = pthread_cond_broadcast(&p->_cond);
- int res2 = pthread_mutex_unlock(&p->_mutex);
+ res1 = pthread_cond_broadcast(&p->_cond);
+ res2 = pthread_mutex_unlock(&p->_mutex);
return (res2 ? res2 : res1);
}

-ifneq ($(CC), xlc)
-CFLAGS_WARN_WALL = -Wall -Werror -Wextra
-endif
-
# for object file
CFLAGS_BASE_LIST = -c
# CFLAGS_BASE_LIST = -S
--- a/CPP/7zip/Archive/ApfsHandler.cpp
+++ b/CPP/7zip/Archive/ApfsHandler.cpp
@@ -983,7 +983,7 @@
INODE_ALLOCATION_SPILLEDOVER = 0x00010000,
INODE_FAST_PROMOTE = 0x00020000,
*/
-INODE_HAS_UNCOMPRESSED_SIZE = 0x00040000,
+INODE_HAS_UNCOMPRESSED_SIZE = 0x00040000
/*
INODE_IS_PURGEABLE = 0x00080000,
INODE_WANTS_TO_BE_PURGEABLE = 0x00100000,
--- a/CPP/7zip/Common/FileStreams.cpp
+++ b/CPP/7zip/Common/FileStreams.cpp
@@ -12,7 +12,7 @@
#include <pwd.h>
--- a/CPP/7zip/UI/Common/EnumDirItems.cpp
+++ b/CPP/7zip/UI/Common/EnumDirItems.cpp
@@ -287,7 +287,7 @@

CObjectVector<NFind::CDirEntry> entries;

// for major()/minor():
-#if defined(__FreeBSD__) || defined(BSD)
+#if 1
#include <sys/types.h>
#else
#include <sys/sysmacros.h>
--- a/CPP/7zip/UI/Common/UpdateCallback.cpp
+++ b/CPP/7zip/UI/Common/UpdateCallback.cpp
@@ -9,7 +9,7 @@
// #include <pwd.h>

// for major()/minor():
-#if defined(__FreeBSD__) || defined(BSD)
+#if 1
#include <sys/types.h>
#else
#include <sys/sysmacros.h>
- for (unsigned ttt = 0; ; ttt++)
+ for (;;)
{
bool found;
NFind::CDirEntry de;

0 comments on commit e658e06

Please sign in to comment.