git: b85357e6f391 - main - archivers/7-zip: fix build on big-endian
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Dec 2024 12:05:26 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=b85357e6f39148c592b005f3d1780299a4002f84 commit b85357e6f39148c592b005f3d1780299a4002f84 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-12-18 16:08:37 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-12-20 12:04:57 +0000 archivers/7-zip: fix build on big-endian Checking for _LITTLE_ENDIAN causes: ../../Archive/../Compress/../../../C/CpuArch.h:280:4: error: Stop_Compiling_Bad_Endian 280 | #error Stop_Compiling_Bad_Endian | ^ This is because sys/_endian.h defines _LITTLE_ENDIAN. --- archivers/7-zip/Makefile | 1 + archivers/7-zip/files/patch-C_CpuArch.h | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/archivers/7-zip/Makefile b/archivers/7-zip/Makefile index b8f567a0154f..c29fc22842f1 100644 --- a/archivers/7-zip/Makefile +++ b/archivers/7-zip/Makefile @@ -30,6 +30,7 @@ CFLAGS_aarch64?= -march=armv8-a+crc+crypto NO_WRKSUBDIR= yes BUILD_WRKSRC= ${WRKSRC}/CPP/7zip/Bundles/Alone2 DOS2UNIX_FILES= C/CpuArch.c \ + C/CpuArch.h \ C/7zCrc.c \ C/Aes.c \ C/AesOpt.c \ diff --git a/archivers/7-zip/files/patch-C_CpuArch.h b/archivers/7-zip/files/patch-C_CpuArch.h new file mode 100644 index 000000000000..25c68eba8966 --- /dev/null +++ b/archivers/7-zip/files/patch-C_CpuArch.h @@ -0,0 +1,10 @@ +--- C/CpuArch.h.orig 2024-12-18 16:06:28 UTC ++++ C/CpuArch.h +@@ -247,7 +247,6 @@ MY_CPU_64BIT means that processor can work with 64-bit + || defined(MY_CPU_ARM_LE) \ + || defined(MY_CPU_ARM64_LE) \ + || defined(MY_CPU_IA64_LE) \ +- || defined(_LITTLE_ENDIAN) \ + || defined(__LITTLE_ENDIAN__) \ + || defined(__ARMEL__) \ + || defined(__THUMBEL__) \