Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414587 - gnome-extra/libgsf should have *-pypy-* in RESTRICT_PYTHON_ABIS
Summary: gnome-extra/libgsf should have *-pypy-* in RESTRICT_PYTHON_ABIS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2012-05-04 12:20 UTC by Marien Zwart (RETIRED)
Modified: 2012-05-05 02:16 UTC (History)
0 users

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


Attachments
build.log (libgsf-1.14.22, .23 fails similarly). (build.log,20.85 KB, text/plain)
2012-05-04 12:20 UTC, Marien Zwart (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart (RETIRED) gentoo-dev 2012-05-04 12:20:09 UTC
Created attachment 310779 [details]
build.log (libgsf-1.14.22, .23 fails similarly).

libgsf's python bindings are pygobject-based, and pygobject currently is not built for pypy. This causes libgsf with USE=python and 2.7-pypy-1.8 in USE_PYTHON to fail confusingly, as the configure phase tries to use pypy as python. config.log:

configure:15195: checking for headers required to compile python extensions
configure:15210: x86_64-pc-linux-gnu-gcc -E  -I/usr/lib64/pypy1.8/include/python2.7 conftest.c
conftest.c:49:20: fatal error: Python.h: No such file or directory

but this does not cause configure to actually fail. The build does later on though:

 * Building of gnome-extra/libgsf-1.14.22 with CPython 2.7...
make -j4 PYTHON_INCLUDES=-I/usr/include/python2.7 pyexecdir=/usr/lib64/python2.7/site-packages pythondir=/usr/lib64/python2.7/site-packages 
(cd . \
 &&  \
    --load-types gsf-arg-types.py \
    --override gsf.override \
    --prefix pygsf gsf.defs) > gen-gsf.c \
&& cp gen-gsf.c gsf.c \
&& rm -f gen-gsf.c
  CC     _gsfmodule_la-gsfmodule.lo
/bin/sh: line 2: --load-types: command not found
make: *** [gsf.c] Error 127
make: *** Waiting for unfinished jobs....
gsfmodule.c:25:23: fatal error: pygobject.h: No such file or directory
compilation terminated.
make: *** [_gsfmodule_la-gsfmodule.lo] Error 1


The way the build fails is a bit messy (there might be some improvements possible there), but the right thing to do seems to be just adding *-pypy-* to RESTRICT_PYTHON_ABIS, as there's no way this will work without pygobject built for pypy. The package builds fine with that change.
Comment 1 Pacho Ramos gentoo-dev 2012-05-04 20:23:38 UTC
Feel free to commit it yourself if you have time
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-05 02:16:50 UTC
Fixed, thanks for reporting.

>  05 May 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  libgsf-1.14.21.ebuild, libgsf-1.14.22.ebuild, libgsf-1.14.23.ebuild:
>  Restrict pypy python ABI (bug #414587, thanks to Marien Zwart). Update to
>  virtual/pkgconfig.