Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 418017 - net-misc/spice-gtk-0.12 fails to emerge if Python3 is the default interpreter
Summary: net-misc/spice-gtk-0.12 fails to emerge if Python3 is the default interpreter
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-28 18:32 UTC by Chris Mayo
Modified: 2012-05-29 05:07 UTC (History)
2 users (show)

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


Attachments
spice-gtk-0.12.ebuild.diff (file_418017.txt,238 bytes, patch)
2012-05-28 19:51 UTC, Alon Bar-Lev
Details | Diff
spice-gtk-0.12.ebuild.diff (spice-gtk-0.12.ebuild.diff,999 bytes, patch)
2012-05-28 19:52 UTC, Alon Bar-Lev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2012-05-28 18:32:42 UTC
GEN    generated_client_marshallers1.c
  File "../spice_codegen.py", line 208
    print "No changes to %s" % dest_file
                           ^
SyntaxError: invalid syntax
  File "../spice_codegen.py", line 208
    print "No changes to %s" % dest_file
                           ^
SyntaxError: invalid syntax
make[4]: *** [generated_client_demarshallers.c] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [generated_server_demarshallers.c] Error 1
  File "../spice_codegen.py", line 208
    print "No changes to %s" % dest_file
                           ^
SyntaxError: invalid syntax
make[4]: *** [generated_client_marshallers1.c] Error 1
  File "../spice_codegen.py", line 208
    print "No changes to %s" % dest_file
                           ^
SyntaxError: invalid syntax
make[4]: *** [generated_client_marshallers.c] Error 1
  File "../spice_codegen.py", line 208
    print "No changes to %s" % dest_file
                           ^
SyntaxError: invalid syntax
make[4]: *** [generated_client_demarshallers1.c] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-misc/spice-gtk-0.12/work/spice-gtk-0.12/spice-common/common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-misc/spice-gtk-0.12/work/spice-gtk-0.12/spice-common'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-misc/spice-gtk-0.12/work/spice-gtk-0.12/spice-common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/spice-gtk-0.12/work/spice-gtk-0.12'
make: *** [all] Error 2
 * ERROR: net-misc/spice-gtk-0.12 failed (compile phase):


USE="doc gstreamer gtk3 introspection policykit -pulseaudio python -sasl -smartcard -static-libs usbredir vala"


Fixed for me by adding to pkg_setup():
	python_set_active_version 2
	python_pkg_setup
Comment 1 Alon Bar-Lev 2012-05-28 19:51:40 UTC
Created attachment 313425 [details, diff]
spice-gtk-0.12.ebuild.diff
Comment 2 Alon Bar-Lev 2012-05-28 19:52:50 UTC
Created attachment 313427 [details, diff]
spice-gtk-0.12.ebuild.diff

1. build uses python, so we need DEPEND of python, but there is no option to do this in python eclass... so we add to DEPEND/RDEPEND using PYTHON_DEPEND.

2. should call python eclass in pkg_setup.

3. should fix python #! at install.
Comment 3 Alon Bar-Lev 2012-05-28 19:53:29 UTC
Comment on attachment 313427 [details, diff]
spice-gtk-0.12.ebuild.diff

1. build uses python, so we need DEPEND of python, but there is no option to do this in python eclass... so we add to DEPEND/RDEPEND using PYTHON_DEPEND.

2. should call python eclass in pkg_setup.

3. should fix python #! at install.
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2012-05-29 05:07:43 UTC
Committed, thanks!