Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629430 - dev-python/psycopg-2.7.3 fail in src_prepare
Summary: dev-python/psycopg-2.7.3 fail in src_prepare
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-08-31 08:36 UTC by Francesco Riosa
Modified: 2018-08-14 15:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
psycopg-2.4.2-setup.py.patch.out (psycopg-2.4.2-setup.py.patch.out,3.40 KB, text/plain)
2017-08-31 08:36 UTC, Francesco Riosa
Details
ebuild applying psycopg-2.7.3-setup.py.patch (psycopg-2.7.3.ebuild,1.92 KB, text/plain)
2017-08-31 13:36 UTC, Bernd Feige
Details
Updated patch psycopg-2.7.3-setup.py.patch (psycopg-2.7.3-setup.py.patch,1.79 KB, patch)
2017-08-31 13:37 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2017-08-31 08:36:42 UTC
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}!";
Comment 1 Bernd Feige 2017-08-31 13:36:30 UTC
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.
Comment 2 Bernd Feige 2017-08-31 13:37:13 UTC
Created attachment 491154 [details, diff]
Updated patch psycopg-2.7.3-setup.py.patch
Comment 3 Jonas Stein gentoo-dev 2017-08-31 19:06:15 UTC
Thank you for the patches
Comment 4 Larry the Git Cow gentoo-dev 2018-01-12 21:01:20 UTC
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(+)}