[Bug 208486] lang/python27 lang/python33 lang/python34 lang/python35: correct __FreeBSD_version check for ctype UTF-8 bug workaround
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Apr 23 12:23:20 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208486
--- Comment #9 from Dimitry Andric <dim at FreeBSD.org> ---
(In reply to Antoine Brodin from comment #8)
> (In reply to Antoine Brodin from comment #7)
> The failure seems to be because osreldate.h is no longer included,
Hmm, indeed; psycopg2-2.6.1/psycopg/config.h has this fragment:
#if (defined(__FreeBSD__) && __FreeBSD_version < 503000) \
|| (defined(_WIN32) && !defined(__GNUC__)) \
|| (defined(sun) || defined(__sun__)) \
&& (defined(__SunOS_5_8) || defined(__SunOS_5_9))
/* what's this, we have no round function either? */
static double round(double num)
{
return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5);
}
#endif
but it doesn't include <osreldate.h> by itself. Apparently such python modules
simply assume the existence of __FreeBSD_version, since it was always there.
> so the
> previous patch may be less intrusive
Ok, let's go for that one then. I'll update it with revision bumps.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-python
mailing list