Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 356579

Summary: net-libs/gupnp-igd-0.1.7 fails to emerge with Python3
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: New packagesAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED FIXED    
Severity: normal CC: arfrever
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix to Python 2
Fix to Python 2

Description Chris Mayo 2011-02-26 15:43:02 UTC
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....
Comment 1 Chris Mayo 2011-02-26 15:43:24 UTC
Created attachment 263919 [details, diff]
Fix to Python 2

Patch to the ebuild that fixes this for me.
Comment 2 Chris Mayo 2011-02-26 15:49:42 UTC
Created attachment 263921 [details, diff]
Fix to Python 2

Perhaps the python_set_active_version should have been dependent of USE="python"
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-26 19:31:13 UTC
Fixed.