Created attachment 491142 [details] psycopg-2.4.2-setup.py.patch.out * Failed Patch: psycopg-2.4.2-setup.py.patch ! * ( /var/tmp/portage/dev-python/psycopg-2.7.3/files/psycopg-2.4.2-setup.py.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/dev-python/psycopg-2.7.3/temp/psycopg-2.4.2-setup.py.patch.out * ERROR: dev-python/psycopg-2.7.3::gentoo failed (prepare phase): * Failed Patch: psycopg-2.4.2-setup.py.patch! * * Call stack: * ebuild.sh, line 115: Called src_prepare * environment, line 4046: Called distutils-r1_src_prepare * environment, line 1175: Called python_prepare_all * environment, line 3782: Called distutils-r1_python_prepare_all * environment, line 1082: Called epatch '/var/tmp/portage/dev-python/psycopg-2.7.3/files/psycopg-2.4.2-setup.py.patch' * environment, line 1555: Called die * The specific snippet of code: * die "Failed Patch: ${patchname}!";
Created attachment 491152 [details] ebuild applying psycopg-2.7.3-setup.py.patch Same issue here. Reason is that the patched line has changed (from 'if os.path.exists(mxincludedir)' to 'if mxincludedir.strip() and os.path.exists(mxincludedir)'). Attached please find an updated patch and ebuild.
Created attachment 491154 [details, diff] Updated patch psycopg-2.7.3-setup.py.patch
Thank you for the patches
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(+)}