Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libuuid On macOS (Catalina, at least), python37 ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/799b0fe4f1e0
branches:  trunk
changeset: 437563:799b0fe4f1e0
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Wed Aug 26 13:47:14 2020 +0000

description:
On macOS (Catalina, at least), python37 and python38 fail in _uuid.so
with `ld: library not found for -luuid` when building with native
libuuid. Rather than trying to fix Python's detection logic, just make
this mistake impossible for anyone using macOS native libuuid. Building
with pkgsrc libuuid continues to work fine.

diffstat:

 devel/libuuid/builtin.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 778ae801d6cb -r 799b0fe4f1e0 devel/libuuid/builtin.mk
--- a/devel/libuuid/builtin.mk  Wed Aug 26 13:29:45 2020 +0000
+++ b/devel/libuuid/builtin.mk  Wed Aug 26 13:47:14 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.11 2019/11/03 10:39:19 rillig Exp $
+# $NetBSD: builtin.mk,v 1.12 2020/08/26 13:47:14 schmonz Exp $
 
 BUILTIN_PKG:=  libuuid
 
@@ -79,6 +79,10 @@
 LIBUUID_LDADD=                 -L/lib
 .    endif
 
+.    if ${OPSYS} == "Darwin"
+BUILDLINK_TRANSFORM+=          rm:-luuid
+.    endif
+
 libuuid-fake-pc:
        ${RUN}                                          \
        ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig;        \



Home | Main Index | Thread Index | Old Index