Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404039 - dev-python/pygit2-0.16.0 fails to build with py 2.5
Summary: dev-python/pygit2-0.16.0 fails to build with py 2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-16 05:46 UTC by Patrick Lauer
Modified: 2012-02-21 03:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2012-02-16 05:46:29 UTC
* Building of dev-python/pygit2-0.16.0 with CPython 2.5...
python2.5 setup.py build -b build-2.5
running build
running build_ext
building 'pygit2' extension
creating build-2.5
creating build-2.5/temp.linux-x86_64-2.5
x86_64-pc-linux-gnu-gcc -pthread -DNDEBUG -O2 -pipe -fPIC -I/usr/local/include -I/usr/include/python2.5 -c -I/usr/local/include -I/usr/include/python2.5 -c pygit2.c -o build-2.5/temp.linux-x86_64-2.5/pygit2.o
pygit2.c: In function ‘py_str_to_git_oid’:
pygit2.c:330:33: error: invalid type argument of ‘->’ (have ‘int’)
pygit2.c: In function ‘py_str_to_c_str’:
pygit2.c:378:32: error: invalid type argument of ‘->’ (have ‘int’)
pygit2.c: At top level:
pygit2.c:987:5: error: initializer element is not constant
pygit2.c:987:5: error: (near initialization for ‘RepositoryType.ob_refcnt’)
pygit2.c:987:5: error: expected ‘}’ before string constant
pygit2.c:1102:5: error: initializer element is not constant
pygit2.c:1102:5: error: (near initialization for ‘ObjectType.ob_refcnt’)
pygit2.c:1102:5: error: expected ‘}’ before string constant
pygit2.c:1272:5: error: initializer element is not constant
pygit2.c:1272:5: error: (near initialization for ‘CommitType.ob_refcnt’)
pygit2.c:1272:5: error: expected ‘}’ before string constant
pygit2.c:1370:5: error: initializer element is not constant
pygit2.c:1370:5: error: (near initialization for ‘TreeEntryType.ob_refcnt’)
pygit2.c:1370:5: error: expected ‘}’ before string constant
pygit2.c:1544:5: error: initializer element is not constant
pygit2.c:1544:5: error: (near initialization for ‘TreeType.ob_refcnt’)
pygit2.c:1544:5: error: expected ‘}’ before string constant
pygit2.c:1605:5: error: initializer element is not constant
pygit2.c:1605:5: error: (near initialization for ‘TreeIterType.ob_refcnt’)
pygit2.c:1605:5: error: expected ‘}’ before string constant
pygit2.c:1641:5: error: initializer element is not constant
pygit2.c:1641:5: error: (near initialization for ‘BlobType.ob_refcnt’)
pygit2.c:1641:5: error: expected ‘}’ before string constant
pygit2.c:1732:5: error: initializer element is not constant
pygit2.c:1732:5: error: (near initialization for ‘TagType.ob_refcnt’)
pygit2.c:1732:5: error: expected ‘}’ before string constant
pygit2.c:2081:5: error: initializer element is not constant
pygit2.c:2081:5: error: (near initialization for ‘IndexType.ob_refcnt’)
pygit2.c:2081:5: error: expected ‘}’ before string constant
pygit2.c:2145:5: error: initializer element is not constant
pygit2.c:2145:5: error: (near initialization for ‘IndexIterType.ob_refcnt’)
pygit2.c:2145:5: error: expected ‘}’ before string constant
pygit2.c:2214:5: error: initializer element is not constant
pygit2.c:2214:5: error: (near initialization for ‘IndexEntryType.ob_refcnt’)
pygit2.c:2214:5: error: expected ‘}’ before string constant
pygit2.c:2366:5: error: initializer element is not constant
pygit2.c:2366:5: error: (near initialization for ‘WalkerType.ob_refcnt’)
pygit2.c:2366:5: error: expected ‘}’ before string constant
pygit2.c:2643:5: error: initializer element is not constant
pygit2.c:2643:5: error: (near initialization for ‘ReferenceType.ob_refcnt’)
pygit2.c:2643:5: error: expected ‘}’ before string constant
pygit2.c: In function ‘Signature_dealloc’:
pygit2.c:2733:18: error: invalid type argument of ‘->’ (have ‘int’)
pygit2.c: At top level:
pygit2.c:2797:5: error: initializer element is not constant
pygit2.c:2797:5: error: (near initialization for ‘SignatureType.ob_refcnt’)
pygit2.c:2797:5: error: expected ‘}’ before string constant
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: dev-python/pygit2-0.16.0 failed (compile phase):
 *   Building failed with CPython 2.5 in distutils_building() function
Comment 1 Juan David Ibáñez Palomar 2012-02-19 18:45:51 UTC
Hello, I am the (upstream) maintainer of pygit2.

Python 2.5 is not supported by pyfit2, so one option is to resolve this issue as
"won't fix".

If you really want pygit2 to compile with 2.5 there is a simple patch that will
likely still work, see commit eafcef38f6424c690db96241d9a44cd4360ef80a. However,
the unit tests will not pass, and it is a lot of work to fix them.

So, my personal opinion is that resolving this as "won't fix" is better than
giving the user the impression that it works. Unless you do have the resources
and the motivation to maintain a Python 2.5 version.

(By the way Python 2.5 is not maintained anymore upstream, even for security
issues.)
Comment 2 Patrick Lauer gentoo-dev 2012-02-21 03:41:27 UTC
fixed