Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24352 - [pypy] Include files are not installed.

Attached to Project: Community Packages
Opened by David H. Bronke (whitelynx) - Thursday, 19 May 2011, 19:27 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 28 May 2011, 20:50 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The headers for pypy are not installed by the package. This in turn can cause other packages (e.g. twisted) to fail to build against PyPy.

Additional info:
* package version: 1.5


Steps to reproduce:
* pacman -S pypy
* ls /opt/pypy # There should be an "include" directory here, but currently there isn't.
* sudo /opt/pypy/bin/pip install twisted # This will fail due to a missing Python.h.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 28 May 2011, 20:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in -2.
Comment by David H. Bronke (whitelynx) - Sunday, 22 May 2011, 02:24 GMT
I just tried this on a different computer, which has also been freshly upgraded, and which didn't have pypy installed previously. I confirmed that the headers aren't installed by checking the contents of the package:

pacman -Ql pypy | grep '.*\.h$'
pypy /opt/pypy/lib_pypy/testcapi_long.h

It should at least contain Python.h as well, though there are probably several other headers which should also be included.
Comment by David H. Bronke (whitelynx) - Tuesday, 24 May 2011, 19:33 GMT
Adding one line to the PKGBUILD fixes this for me:

--- PKGBUILD.orig 2011-05-24 14:04:28.712697426 -0500
+++ PKGBUILD 2011-05-24 14:05:19.312010596 -0500
@@ -31,6 +31,7 @@
cp -r ${srcdir}/${pkgname}-${pkgver}-src/lib-python/2.7 ${pkgdir}/opt/pypy/lib-python/
cp -r ${srcdir}/${pkgname}-${pkgver}-src/lib-python/modified-2.7 ${pkgdir}/opt/pypy/lib-python/
cp -r ${srcdir}/${pkgname}-${pkgver}-src/lib_pypy ${pkgdir}/opt/pypy/
+ cp -r ${srcdir}/${pkgname}-${pkgver}-src/include ${pkgdir}/opt/pypy/
mkdir -p ${pkgdir}/usr/bin
ln -s /opt/pypy/pypy-c ${pkgdir}/usr/bin/pypy
   PKGBUILD (1.5 KiB)

Loading...