pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python36 python36: Fix _decimal build on Darwin/a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a267c399836c
branches:  trunk
changeset: 456008:a267c399836c
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Jul 16 09:48:45 2021 +0000

description:
python36: Fix _decimal build on Darwin/aarch64.

diffstat:

 lang/python36/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 0e3c32be9d8d -r a267c399836c lang/python36/Makefile
--- a/lang/python36/Makefile    Fri Jul 16 09:16:27 2021 +0000
+++ b/lang/python36/Makefile    Fri Jul 16 09:48:45 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2021/02/16 19:39:53 adam Exp $
+# $NetBSD: Makefile,v 1.32 2021/07/16 09:48:45 jperkin Exp $
 
 .include "dist.mk"
 
@@ -76,6 +76,11 @@
 CFLAGS+=               -I${OSX_SDK_PATH:Q}/usr/include
 .endif
 
+# Avoid universal build on macOS/aarch64, _decimal fails.
+.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
+MAKE_ENV+=     PYTHON_DECIMAL_WITH_MACHINE=uint128
+.endif
+
 PLIST_VARS+=   nis
 .for incdir in ${_OPSYS_INCLUDE_DIRS}
 .  if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h))



Home | Main Index | Thread Index | Old Index