Emerge fails with USE="python" if Python3 is the default: /bin/sh ../libtool --silent --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -DDATADIR=\""/usr/share"\" -pthread -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python3.1 -I/usr/include/python3.1 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gupnp-1.0 -I/usr/include/gssdp-1.0 -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -march=core2 -msse4.1 -ftree-vectorize -O2 -pipe -c -o pygupnp-igd-module.lo pygupnp-igd-module.c pygupnp-igd-module.c: In function 'DL_EXPORT': pygupnp-igd-module.c:8: error: expected declaration specifiers before 'initigd' pygupnp-igd-module.c:9: error: storage class specified for parameter 'igd_functions' pygupnp-igd-module.c:11: error: expected declaration specifiers before 'DL_EXPORT' pygupnp-igd-module.c:8: error: old-style parameter declarations in prototyped function definition pygupnp-igd-module.c:31: error: expected '{' at end of input make[3]: *** [pygupnp-igd-module.lo] Error 1 make[3]: *** Waiting for unfinished jobs....
Created attachment 263919 [details, diff] Fix to Python 2 Patch to the ebuild that fixes this for me.
Created attachment 263921 [details, diff] Fix to Python 2 Perhaps the python_set_active_version should have been dependent of USE="python"
Fixed.