Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356579 - net-libs/gupnp-igd-0.1.7 fails to emerge with Python3
Summary: net-libs/gupnp-igd-0.1.7 fails to emerge with Python3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-26 15:43 UTC by Chris Mayo
Modified: 2011-02-26 19:31 UTC (History)
1 user (show)

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


Attachments
Fix to Python 2 (gupnp-igd-0.1.7-python.patch,585 bytes, patch)
2011-02-26 15:43 UTC, Chris Mayo
Details | Diff
Fix to Python 2 (gupnp-igd-0.1.7-python.patch,613 bytes, patch)
2011-02-26 15:49 UTC, Chris Mayo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.