pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/assimp assimp: adjust a portability patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c3cceeb1bce5
branches:  trunk
changeset: 444528:c3cceeb1bce5
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Sun Jan 10 05:20:00 2021 +0000

description:
assimp: adjust a portability patch

Simplify, per joerg@'s suggestion "Drop the whole block. Seems much
safer."

diffstat:

 multimedia/assimp/distinfo                            |   4 +-
 multimedia/assimp/patches/patch-contrib_zip_src_zip.h |  29 +++++++++---------
 2 files changed, 17 insertions(+), 16 deletions(-)

diffs (57 lines):

diff -r 32dfba77a233 -r c3cceeb1bce5 multimedia/assimp/distinfo
--- a/multimedia/assimp/distinfo        Sat Jan 09 21:34:25 2021 +0000
+++ b/multimedia/assimp/distinfo        Sun Jan 10 05:20:00 2021 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2021/01/07 05:15:47 gutteridge Exp $
+$NetBSD: distinfo,v 1.4 2021/01/10 05:20:00 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
+SHA1 (patch-contrib_zip_src_zip.h) = 824462e986010e705b3089f3055eecd23093cf7c
diff -r 32dfba77a233 -r c3cceeb1bce5 multimedia/assimp/patches/patch-contrib_zip_src_zip.h
--- a/multimedia/assimp/patches/patch-contrib_zip_src_zip.h     Sat Jan 09 21:34:25 2021 +0000
+++ b/multimedia/assimp/patches/patch-contrib_zip_src_zip.h     Sun Jan 10 05:20:00 2021 +0000
@@ -1,24 +1,25 @@
-$NetBSD: patch-contrib_zip_src_zip.h,v 1.1 2021/01/07 05:15:47 gutteridge Exp $
+$NetBSD: patch-contrib_zip_src_zip.h,v 1.2 2021/01/10 05:20:00 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" {
+@@ -19,18 +19,6 @@
+ extern "C" {
+ #endif
  
- #if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_DEFINED_) &&               \
-     !defined(_SSIZE_T) && !defined(_SSIZE_T_) && !defined(__ssize_t_defined)
+-#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 */
+-// 64-bit Windows is the only mainstream platform
+-// where sizeof(long) != sizeof(void*)
+-#ifdef _WIN64
+-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
+-
+ #ifndef MAX_PATH
+ #define MAX_PATH 32767 /* # chars in a path name including NULL */
  #endif
- #endif
- 



Home | Main Index | Thread Index | Old Index