pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/assimp assimp: build fix for 32-bit archite...
details: https://anonhg.NetBSD.org/pkgsrc/rev/fcb7850855b0
branches: trunk
changeset: 444416:fcb7850855b0
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Thu Jan 07 05:15:47 2021 +0000
description:
assimp: build fix for 32-bit architectures
Rather than add to the ifdef stew that's already there, simply don't
try to second-guess the host platform. Otherwise, we'd need more macro
checks added for, at least, NetBSD, FreeBSD, and musl, but including
sys/types.h should "just work".
(There's seemingly another unrelated portability issue directly below
that code block, but it won't break builds, and would require different
means of correction.)
diffstat:
multimedia/assimp/distinfo | 3 +-
multimedia/assimp/patches/patch-contrib_zip_src_zip.h | 24 +++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 7c217004baf6 -r fcb7850855b0 multimedia/assimp/distinfo
--- a/multimedia/assimp/distinfo Wed Jan 06 20:11:54 2021 +0000
+++ b/multimedia/assimp/distinfo Thu Jan 07 05:15:47 2021 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2021/01/05 04:50:53 gutteridge Exp $
+$NetBSD: distinfo,v 1.3 2021/01/07 05:15:47 gutteridge Exp $
SHA1 (assimp-5.0.1.tar.gz) = f148ba31dc1e7e00e59cc09b25535af997dc1998
RMD160 (assimp-5.0.1.tar.gz) = 1c8311f5a1e2943f786c5385128a934274a4230d
SHA512 (assimp-5.0.1.tar.gz) = 51b704ffea778638b9e228578650f62691c56ee1a90337f8bbbee37e807455466d818234be24852334e5806260e5690932c9bd8e00f055c5c26782e0636538f0
Size (assimp-5.0.1.tar.gz) = 46607553 bytes
SHA1 (patch-contrib_irrXML_CMakeLists.txt) = 0c2dd457cfacf7be1b9c64068848b3e3bb476afa
+SHA1 (patch-contrib_zip_src_zip.h) = e324a0c5c9a09d6c273a41aa2fa02483673fc15b
diff -r 7c217004baf6 -r fcb7850855b0 multimedia/assimp/patches/patch-contrib_zip_src_zip.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/assimp/patches/patch-contrib_zip_src_zip.h Thu Jan 07 05:15:47 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-contrib_zip_src_zip.h,v 1.1 2021/01/07 05:15:47 gutteridge Exp $
+
+Fix builds on some 32-bit architectures.
+
+--- contrib/zip/src/zip.h.orig 2020-01-12 11:56:40.000000000 +0000
++++ contrib/zip/src/zip.h
+@@ -21,13 +21,14 @@ extern "C" {
+
+ #if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_DEFINED_) && \
+ !defined(_SSIZE_T) && !defined(_SSIZE_T_) && !defined(__ssize_t_defined)
+-#define _SSIZE_T
++//#define _SSIZE_T
+ // 64-bit Windows is the only mainstream platform
+ // where sizeof(long) != sizeof(void*)
+ #ifdef _WIN64
++#define _SSIZE_T
+ typedef long long ssize_t; /* byte count or error */
+-#else
+-typedef long ssize_t; /* byte count or error */
++//#else
++//typedef long ssize_t; /* byte count or error */
+ #endif
+ #endif
+
Home |
Main Index |
Thread Index |
Old Index