pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/archivers/bzip3
Module Name: pkgsrc
Committed By: nros
Date: Sat Dec 16 11:40:53 UTC 2023
Modified Files:
pkgsrc/archivers/bzip3: distinfo
Added Files:
pkgsrc/archivers/bzip3/patches: patch-include_common.h
Log Message:
bzip3: fix build on solaris-like systems
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/archivers/bzip3/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/archivers/bzip3/patches/patch-include_common.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/archivers/bzip3/distinfo
diff -u pkgsrc/archivers/bzip3/distinfo:1.1 pkgsrc/archivers/bzip3/distinfo:1.2
--- pkgsrc/archivers/bzip3/distinfo:1.1 Tue Nov 28 17:25:38 2023
+++ pkgsrc/archivers/bzip3/distinfo Sat Dec 16 11:40:53 2023
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2023/11/28 17:25:38 adam Exp $
+$NetBSD: distinfo,v 1.2 2023/12/16 11:40:53 nros Exp $
BLAKE2s (bzip3-1.3.2.tar.xz) = fe40f2a6908a4157678ad048a5e9a9c9744cf63209166d6d3c003f82833d4aeb
SHA512 (bzip3-1.3.2.tar.xz) = 76521377adfe737b30e77f5c3241c1c12214165492fba5acbc5ba09c8e7b91396b772f9fec936d6603413c3ef179a13597b13509df99bd8a2d56cbf14a70a84f
Size (bzip3-1.3.2.tar.xz) = 277768 bytes
+SHA1 (patch-include_common.h) = 85fb4952cdedbd5180607810950764dd90bab48b
Added files:
Index: pkgsrc/archivers/bzip3/patches/patch-include_common.h
diff -u /dev/null pkgsrc/archivers/bzip3/patches/patch-include_common.h:1.1
--- /dev/null Sat Dec 16 11:40:53 2023
+++ pkgsrc/archivers/bzip3/patches/patch-include_common.h Sat Dec 16 11:40:53 2023
@@ -0,0 +1,31 @@
+$NetBSD: patch-include_common.h,v 1.1 2023/12/16 11:40:53 nros Exp $
+
+* _*_ENDIAN is defined to nothing on solaris-like systems leading to preprocessor errors
+ when == try to compare to nothing. Use if _*_ENDIAN are defined as set in sys/isa_defs.h
+ on solaris-like systems to check for endianess instead of _BYTE_ORDER.
+
+--- include/common.h.orig 2023-12-16 12:17:00.391225325 +0000
++++ include/common.h
+@@ -93,6 +93,7 @@ static void write_neutral_s32(u8 * data,
+ #error Your compiler, configuration or platform is not supported.
+ #endif
+
++#ifndef __sun__
+ #if !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
+ #if defined(_LITTLE_ENDIAN) || (defined(BYTE_ORDER) && defined(LITTLE_ENDIAN) && BYTE_ORDER == LITTLE_ENDIAN) || \
+ (defined(_BYTE_ORDER) && defined(_LITTLE_ENDIAN) && _BYTE_ORDER == _LITTLE_ENDIAN) || \
+@@ -108,6 +109,14 @@ static void write_neutral_s32(u8 * data,
+ #define __LITTLE_ENDIAN__
+ #endif
+ #endif
++#else
++ #ifdef _LITTLE_ENDIAN
++ #define __LITTLE_ENDIAN__
++ #endif
++ #ifdef _BIG_ENDIAN
++¨ #define __BIG_ENDIAN__
++ #endif
++#endif
+
+ #if defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
+ #if defined(HAS_BUILTIN_BSWAP16)
Home |
Main Index |
Thread Index |
Old Index