Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2019 19:11:47 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r519233 - in head/lang: python35 python36
Message-ID:  <201912071911.xB7JBlfj089110@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Sat Dec  7 19:11:47 2019
New Revision: 519233
URL: https://svnweb.freebsd.org/changeset/ports/519233

Log:
  Fix namespace pollution in python3.5 and python3.6 (upstreamed fix)
  
  The standard math library (libm) may follow IEEE-754 recommendation to
  include an implementation of sinPi(), i.e. sinPi(x):=sin(pi*x).
  And this triggers a name clash, found by FreeBSD developer
  Steve Kargl, who worked on putting sinpi into libm used on FreeBSD
  (it has to be named "sinpi", not "sinPi", cf. e.g.
  https://en.cppreference.com/w/c/experimental/fpext4).
  
  - python2.7 and > 3.6 are already fixed
  
  PR:		232792
  Submitted by:	Steve Kargl <sgk@troutmask.apl.washington.edu>, Dima Pasechnik <dimpase+freebsd@gmail.com>
  Approved by:	python (maintainer timeout)
  Obtained from:	https://github.com/python/cpython/commit/b545ba0a508a5980ab147ed2641a42be3b31a2db

Modified:
  head/lang/python35/Makefile
  head/lang/python35/distinfo
  head/lang/python36/Makefile
  head/lang/python36/distinfo

Modified: head/lang/python35/Makefile
==============================================================================
--- head/lang/python35/Makefile	Sat Dec  7 18:53:06 2019	(r519232)
+++ head/lang/python35/Makefile	Sat Dec  7 19:11:47 2019	(r519233)
@@ -3,7 +3,7 @@
 
 PORTNAME=	python
 PORTVERSION=	${PYTHON_PORTVERSION}
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	lang python
 MASTER_SITES=	PYTHON/ftp/python/${PORTVERSION}
 PKGNAMESUFFIX=	${PYTHON_SUFFIX}
@@ -14,6 +14,10 @@ MAINTAINER=	python@FreeBSD.org
 COMMENT=	Interpreted object-oriented programming language
 
 LICENSE=	PSFL
+
+# Resolve sinpi name clash with libm (IEEE-754 violation)
+PATCH_SITES=	https://github.com/python/cpython/commit/
+PATCHFILES=	f57cd8288dbe6aba99c057f37ad6d58f8db75350.patch:-p1
 
 USES=		cpe ncurses pathfix pkgconfig readline:port shebangfix ssl tar:xz
 USE_CSTD=	c99

Modified: head/lang/python35/distinfo
==============================================================================
--- head/lang/python35/distinfo	Sat Dec  7 18:53:06 2019	(r519232)
+++ head/lang/python35/distinfo	Sat Dec  7 19:11:47 2019	(r519233)
@@ -1,3 +1,5 @@
-TIMESTAMP = 1572662762
+TIMESTAMP = 1575745214
 SHA256 (python/Python-3.5.9.tar.xz) = c24a37c63a67f53bdd09c5f287b5cff8e8b98f857bf348c577d454d3f74db049
 SIZE (python/Python-3.5.9.tar.xz) = 15388876
+SHA256 (python/f57cd8288dbe6aba99c057f37ad6d58f8db75350.patch) = 44340896504b297bbab06db0bb0a71ddf9f25bbe02ab3dcdfeec2772c957b69f
+SIZE (python/f57cd8288dbe6aba99c057f37ad6d58f8db75350.patch) = 2542

Modified: head/lang/python36/Makefile
==============================================================================
--- head/lang/python36/Makefile	Sat Dec  7 18:53:06 2019	(r519232)
+++ head/lang/python36/Makefile	Sat Dec  7 19:11:47 2019	(r519233)
@@ -3,7 +3,7 @@
 
 PORTNAME=	python
 PORTVERSION=	${PYTHON_PORTVERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang python
 MASTER_SITES=	PYTHON/ftp/python/${PORTVERSION}
 PKGNAMESUFFIX=	${PYTHON_SUFFIX}
@@ -14,6 +14,10 @@ MAINTAINER=	python@FreeBSD.org
 COMMENT=	Interpreted object-oriented programming language
 
 LICENSE=	PSFL
+
+# Resolve sinpi name clash with libm (IEEE-754 violation)
+PATCH_SITES=	https://github.com/python/cpython/commit/
+PATCHFILES=	f57cd8288dbe6aba99c057f37ad6d58f8db75350.patch:-p1
 
 USES=		cpe ncurses pathfix pkgconfig readline:port shebangfix ssl tar:xz
 PATHFIX_MAKEFILEIN=	Makefile.pre.in

Modified: head/lang/python36/distinfo
==============================================================================
--- head/lang/python36/distinfo	Sat Dec  7 18:53:06 2019	(r519232)
+++ head/lang/python36/distinfo	Sat Dec  7 19:11:47 2019	(r519233)
@@ -1,3 +1,5 @@
-TIMESTAMP = 1562110897
+TIMESTAMP = 1575745326
 SHA256 (python/Python-3.6.9.tar.xz) = 5e2f5f554e3f8f7f0296f7e73d8600c4e9acbaee6b2555b83206edf5153870da
 SIZE (python/Python-3.6.9.tar.xz) = 17212164
+SHA256 (python/f57cd8288dbe6aba99c057f37ad6d58f8db75350.patch) = 44340896504b297bbab06db0bb0a71ddf9f25bbe02ab3dcdfeec2772c957b69f
+SIZE (python/f57cd8288dbe6aba99c057f37ad6d58f8db75350.patch) = 2542



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912071911.xB7JBlfj089110>