Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2021 16:37:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 253604] lang/python39: use libmpdec from ports
Message-ID:  <bug-253604-21822-U8X1TbFnyE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253604-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-253604-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253604

--- Comment #2 from Stefan Krah <skrah@bytereef.org> ---

I didn't notice that you had already opened an issue, sorry.

The _decimal.c changes are generally required because the mpdecimal.h header
has been cleaned up. There were some leftovers like the typedef of "uchar",
which collided with some system header on Solaris and broke the build.


It does not build here without the patch:

In file included from ./Include/unicodeobject.h:58,
                 from ./Include/Python.h:97,
                 from
/usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c:29:
/usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c: In function
'dec_format':
/usr/home/stefan/Python-3.9.1/Modules/_decimal/_decimal.c:3283:43: error:
'uchar' undeclared (first use in this function); did you mean 'u_char'?
 3283 |         if (n > 1 || (n =3D=3D 1 && !isascii((uchar)spec.dot[0]))) {
      |                                           ^~~~~



Would you like to close this and continue with your original issue or keep =
this
one open?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253604-21822-U8X1TbFnyE>