aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-04-10 23:43:51 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-04-10 23:43:51 +0800
commit99ad4f5c59f520743bb3a171adc02f1093175851 (patch)
treecae1ca8d72959f63fb808594fd013734db937e62
parentf327894c1b874eed0fa9dbb06a2535fe617147be (diff)
downloadalicelinux-99ad4f5c59f520743bb3a171adc02f1093175851.tar.gz
alicelinux-99ad4f5c59f520743bb3a171adc02f1093175851.zip
p7zip: fix build with clang
-rw-r--r--repos/extra/p7zip/.checksum1
-rw-r--r--repos/extra/p7zip/abuild3
-rw-r--r--repos/extra/p7zip/fix-uintxx_t-redefined.patch23
3 files changed, 26 insertions, 1 deletions
diff --git a/repos/extra/p7zip/.checksum b/repos/extra/p7zip/.checksum
index ebd9eb11..09aa4e3c 100644
--- a/repos/extra/p7zip/.checksum
+++ b/repos/extra/p7zip/.checksum
@@ -1 +1,2 @@
+baca2c2259e5f18b33e92aa0ad05e7f201a69e1360bc95d0e6405447df417b83 fix-uintxx_t-redefined.patch
650225789fbf2c33981dcbfa11fd6e880b714eca9b4934e24fcf6dd49a3df3b8 p7zip-17.06.tar.gz
diff --git a/repos/extra/p7zip/abuild b/repos/extra/p7zip/abuild
index 20f63583..3cb5cdef 100644
--- a/repos/extra/p7zip/abuild
+++ b/repos/extra/p7zip/abuild
@@ -1,7 +1,8 @@
name=p7zip
version=17.06
release=1
-source="https://github.com/$name-project/$name/archive/v$version/$name-$version.tar.gz"
+source="https://github.com/$name-project/$name/archive/v$version/$name-$version.tar.gz
+ fix-uintxx_t-redefined.patch"
build() {
sed '/^gzip/d' -i install.sh
diff --git a/repos/extra/p7zip/fix-uintxx_t-redefined.patch b/repos/extra/p7zip/fix-uintxx_t-redefined.patch
new file mode 100644
index 00000000..d5d802da
--- /dev/null
+++ b/repos/extra/p7zip/fix-uintxx_t-redefined.patch
@@ -0,0 +1,23 @@
+diff --git a/C/hashes/hash.h b/C/hashes/hash.h
+index 3abf275..5084b25 100644
+--- a/C/hashes/hash.h
++++ b/C/hashes/hash.h
+@@ -42,17 +42,7 @@
+
+ #include "../7zTypes.h"
+
+-#ifndef _UINT32_T_DECLARED
+-typedef UInt32 uint32_t;
+-#define _UINT32_T_DECLARED
+-#endif
+-
+-#ifndef _UINT64_T_DECLARED
+-typedef UInt64 uint64_t;
+-#define _UINT64_T_DECLARED
+-#endif
+-
+-//#include <stdint.h>
++#include <stdint.h>
+
+ #ifndef min
+ #define min(a,b) (((a)>(b))?(b):(a))