This time the flag switches build params, so it's a major issue. For now, I have removed the flag and turned off mxdatetime support completely.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4eeca29c1cbeec279c6cb5d572bc0518162f237e commit 4eeca29c1cbeec279c6cb5d572bc0518162f237e Author: Aaron W. Swenson <titanofold@gentoo.org> AuthorDate: 2018-01-12 21:01:04 +0000 Commit: Aaron W. Swenson <titanofold@gentoo.org> CommitDate: 2018-01-12 21:01:04 +0000 dev-python/psycopg: Bump to 2.7.3.2 and many fixes Apply a couple patches. One for building documentation (634730) and another to avoid building against mxdatetime from the antiquated dev-python/egenix-mx-base (452028, 629430). This version knows how to parse the new PostgreSQL version scheme (625540). Docs build again (540996). Bug: https://bugs.gentoo.org/452028 Bug: https://bugs.gentoo.org/540996 Bug: https://bugs.gentoo.org/625540 Bug: https://bugs.gentoo.org/629430 Bug: https://bugs.gentoo.org/634730 Package-Manager: Portage-2.3.13, Repoman-2.3.3 dev-python/psycopg/Manifest | 1 + .../files/psycopg-2.7.3-avoid-mxdatetime.patch | 40 ++++++++++++ .../psycopg/files/psycopg-2.7.3-sphinx-1.6.patch | 29 +++++++++ dev-python/psycopg/psycopg-2.7.3.2.ebuild | 72 ++++++++++++++++++++++ 4 files changed, 142 insertions(+)}