app-emulation/spice: Added dev-python/six build dependency
authorChristian Affolter <christian.affolter@stepping-stone.ch>
Mon, 16 Nov 2015 22:19:00 +0000 (23:19 +0100)
committerChristian Affolter <christian.affolter@stepping-stone.ch>
Mon, 16 Nov 2015 22:19:00 +0000 (23:19 +0100)
Spice requires Six, the Python 2 and 3 compatibility library, otherwise
the build will fail with the following error:

[...]
make[4]: Entering directory '/var/tmp/portage/app-emulation/spice-0.12.6/work/spice-0.12.6/spice-common/common'
/usr/bin/python2.7 /usr/lib64/spice-protocol/spice_codegen.py --generate-demarshallers --client --include common/messages.h /usr/lib64/spice-protocol/spice.proto generated_client_demarshallers.c >/dev/null
Traceback (most recent call last):
  File "/usr/lib64/spice-protocol/spice_codegen.py", line 7, in <module>
    from python_modules import spice_parser
  File "/usr/lib64/spice-protocol/python_modules/spice_parser.py", line 1, in <module>
    import six
ImportError: No module named six
Makefile:794: recipe for target 'generated_client_demarshallers.c' failed
make[4]: *** [generated_client_demarshallers.c] Error 1
make[4]: Leaving directory '/var/tmp/portage/app-emulation/spice-0.12.6/work/spice-0.12.6/spice-common/common'
Makefile:445: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1

app-emulation/spice/spice-0.12.6.ebuild

index e108c83fd601f699963879b0920ba521149f8b8d..02b6211dd9fa4f0bd17d1fd569160beb839fb00c 100644 (file)
@@ -43,13 +43,16 @@ RDEPEND="
 DEPEND="
        >=app-emulation/spice-protocol-0.12.10
        virtual/pkgconfig
-       $(python_gen_any_dep \
-               '>=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]')
+       $(python_gen_any_dep '
+               >=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]
+               dev-python/six[${PYTHON_USEDEP}]
+       ')
        smartcard? ( app-emulation/qemu[smartcard] )
        ${RDEPEND}"
 
 python_check_deps() {
        has_version ">=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]"
+       has_version "dev-python/six[${PYTHON_USEDEP}]"
 }
 
 pkg_setup() {