pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkgsrc python default version -> 3.7
On Fri, 3 May 2019 10:17:03 +0000
coypu%sdf.org@localhost wrote:
> On Fri, May 03, 2019 at 07:30:54AM +0100, Sad Clouds wrote:
> > This totally fails on SPARC Solaris 11.3, due to util-linux where
> > random_get_bytes() conflicts with Solaris own function. Why does
> > Python depend on all these Linux packages? Not that I care that
> > much about Python, but it seems you can't build anything without
> > installing Perl and Python as well.
>
> it can handle non libuuid-uuid implementation, too.
> but it will try to link libuuid if it's available.
>
> maybe we want:
>
> Index: Makefile
> ===================================================================
> RCS file: /cvsroot/pkgsrc/lang/python37/Makefile,v
> retrieving revision 1.8
> diff -u -r1.8 Makefile
> --- Makefile 30 Apr 2019 04:49:38 -0000 1.8
> +++ Makefile 3 May 2019 10:15:08 -0000
> @@ -4,6 +4,7 @@
>
> PKGNAME= python37-${PY_DISTVERSION}
> CATEGORIES= lang python
> +PKGREVISION= 1
>
> MAINTAINER= pkgsrc-users%NetBSD.org@localhost
> HOMEPAGE= https://www.python.org/
> @@ -170,13 +171,22 @@
> ${DESTDIR}${PREFIX}/lib/libpython3.7.sl.1.0
> .endif
>
> +.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" ||
> \
> + ${OPSYS} == "DragonFly" || ${OPSYS} == "SunOS" || \
> + ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin"
> || \
> + ${OPSYS} == "AIX"
> +# uuid functionality in libc, avoid detecting libuuid if installed
> +BUILDLINK_TRANSFORM+= rm:-luuid
> +.else
> +.include "../../devel/libuuid/buildlink3.mk"
> +.endif
> +
> BUILDLINK_DEPMETHOD.readline= build
>
> .include "../../archivers/bzip2/buildlink3.mk"
> .include "../../archivers/xz/buildlink3.mk"
> .include "../../devel/gettext-lib/buildlink3.mk"
> .include "../../devel/libffi/buildlink3.mk"
> -.include "../../devel/libuuid/buildlink3.mk"
> .include "../../devel/readline/buildlink3.mk"
> .include "../../devel/zlib/buildlink3.mk"
> BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0.2
>
OK if there is no hard requirement for libuuid, let me try without it
and I'll let you know how far I get.
Home |
Main Index |
Thread Index |
Old Index