pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-ICU py-ICU: fix SunOS build
details: https://anonhg.NetBSD.org/pkgsrc/rev/a31b69df2c70
branches: trunk
changeset: 414080:a31b69df2c70
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Tue Mar 24 04:08:55 2020 +0000
description:
py-ICU: fix SunOS build
The code should perhaps just refer to fcntl.h not sys/fcntl.h, but I've
special-cased SunOS for the chance "sys" is intended for portability to
an OS I'm not familiar with, for "simplicity".
diffstat:
textproc/py-ICU/Makefile | 4 ++--
textproc/py-ICU/distinfo | 3 ++-
textproc/py-ICU/patches/patch-locale.cpp | 19 +++++++++++++++++++
3 files changed, 23 insertions(+), 3 deletions(-)
diffs (49 lines):
diff -r fc40cdf7fce3 -r a31b69df2c70 textproc/py-ICU/Makefile
--- a/textproc/py-ICU/Makefile Tue Mar 24 00:35:22 2020 +0000
+++ b/textproc/py-ICU/Makefile Tue Mar 24 04:08:55 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2020/03/21 17:02:14 gutteridge Exp $
+# $NetBSD: Makefile,v 1.5 2020/03/24 04:08:55 gutteridge Exp $
DISTNAME= PyICU-2.4.3
-PKGREVISION= 1
+PKGREVISION= 2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/PyICU/ICU/}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=P/PyICU/}
diff -r fc40cdf7fce3 -r a31b69df2c70 textproc/py-ICU/distinfo
--- a/textproc/py-ICU/distinfo Tue Mar 24 00:35:22 2020 +0000
+++ b/textproc/py-ICU/distinfo Tue Mar 24 04:08:55 2020 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2020/03/21 17:02:14 gutteridge Exp $
+$NetBSD: distinfo,v 1.4 2020/03/24 04:08:55 gutteridge Exp $
SHA1 (PyICU-2.4.3.tar.gz) = 594c97ce83744f4173d20b7d465e9149ba83cc09
RMD160 (PyICU-2.4.3.tar.gz) = b2b7a4a739f081193865795be156e338637524ec
SHA512 (PyICU-2.4.3.tar.gz) = 77b81b0e9a17972696967ebc0421d05c1119a43c7e853f8d939390dddefa4a2a35dd316e08c10c10a283472bb64738016e47c5f45c7c6191d9dba296057740a0
Size (PyICU-2.4.3.tar.gz) = 219819 bytes
+SHA1 (patch-locale.cpp) = 4e259f3130e94bd8114d7781e36e21236c13d5b6
SHA1 (patch-setup.py) = 8a9c83d128c2cf95f3094abaeb0d9f85b2eb4840
diff -r fc40cdf7fce3 -r a31b69df2c70 textproc/py-ICU/patches/patch-locale.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-ICU/patches/patch-locale.cpp Tue Mar 24 04:08:55 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-locale.cpp,v 1.1 2020/03/24 04:08:55 gutteridge Exp $
+
+Fix SunOS build.
+
+--- locale.cpp.orig 1970-01-01 00:00:00.000000000 +0000
++++ locale.cpp
+@@ -27,7 +27,11 @@
+ #if defined(_MSC_VER) || defined(__WIN32)
+ #include <windows.h>
+ #else
+-#include <sys/fcntl.h>
++# ifdef __sun
++# include <fcntl.h>
++# else
++# include <sys/fcntl.h>
++# endif
+ #include <sys/stat.h>
+ #include <sys/mman.h>
+ #endif
Home |
Main Index |
Thread Index |
Old Index