pkgsrc-Users archive

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

Re: lang/python37 and libuuid

I wrote:
>Can we make lang/python37 only use devel/libuuid/ on
>platforms that really need it ?
>I'm guessing that this would be Linux that would require it.
>The python37 package builds fine on NetBSD without including libuuid
>but would fail if libuuid was installed as will find. Maybe
>need some changes to the patch to change the logic around
>uuid detection.
>A NetBSD-8 build host would probably have installed libuuid as a
>dependency of fonts/fontconfig.

I looked into this a bit more, python37 doesn't need libuuid at all
on NetBSD, it can use the UUID functions in libc.

I have been using this patch:

Index: Makefile
RCS file: /cvsroot/pkgsrc/lang/python37/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile    9 Jul 2019 07:46:37 -0000       1.10
+++ Makefile    17 Jul 2019 22:57:26 -0000
@@ -176,7 +176,9 @@
 .include "../../archivers/xz/"
 .include "../../devel/gettext-lib/"
 .include "../../devel/libffi/"
+.if ${OPSYS} != "NetBSD"
 .include "../../devel/libuuid/"
 .include "../../devel/readline/"
 .include "../../devel/zlib/"
 BUILDLINK_API_DEPENDS.openssl+=        openssl>=1.0.2

Home | Main Index | Thread Index | Old Index