[PATCH] lang/python27 -- Fix namespace collision

dimpase+freebsd at gmail.com dimpase+freebsd at gmail.com
Mon Feb 25 13:41:24 UTC 2019


On 6/20/17 Kubilay Kosak wrote:
> On 6/19/17 4:31 AM, Steve Kargl wrote:
> On Sun, Jun 18, 2017 at 11:29:05AM -0700, Steve Kargl wrote:
>> Both IEEE-754 2008 and ISO/IEC TS 18661-4 define the half-cycle
>> trignometric functions cospi, sinpi, and tanpi.  When libm (aka
>> math.h) grows support for sinpi(x), lang/python27 has a namespace
>> collision.  The attached patch fixes the problem.
>>
> Is this issue relevant only for particular (and/or future) FreeBSD
> versions ('where libm grows supports for x, y') or independent of base
> entirely?

> Also, could you open an upstream issue regarding this please, as a
> long-term target for all local (Python port) patches is that they are
> included upstream.

I've created a Python PR to fix this:

https://github.com/python/cpython/pull/12027

Dima

> This also ensures we can document all patches with their relevant
> upstream issue/commit references for our future selves and others.

> ./koobs


More information about the freebsd-ports mailing list