From d2b59c7384255f91d4cc850aaff3b8d65ee39d80 Mon Sep 17 00:00:00 2001 From: Christian Affolter Date: Mon, 16 Nov 2015 23:19:00 +0100 Subject: [PATCH 1/3] app-emulation/spice: Added dev-python/six build dependency 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 from python_modules import spice_parser File "/usr/lib64/spice-protocol/python_modules/spice_parser.py", line 1, in 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app-emulation/spice/spice-0.12.6.ebuild b/app-emulation/spice/spice-0.12.6.ebuild index e108c83fd601f..02b6211dd9fa4 100644 --- a/app-emulation/spice/spice-0.12.6.ebuild +++ b/app-emulation/spice/spice-0.12.6.ebuild @@ -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() { From 51b46cb2eb5e1952b233b015ed45f60775979dfb Mon Sep 17 00:00:00 2001 From: Christian Affolter Date: Tue, 17 Nov 2015 13:27:56 +0100 Subject: [PATCH 2/3] app-emulation/spice: Revbump to app-emulation/spice-0.12.6-r1 As requested by @monsieurp --- .../spice/{spice-0.12.6.ebuild => spice-0.12.6-r1.ebuild} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app-emulation/spice/{spice-0.12.6.ebuild => spice-0.12.6-r1.ebuild} (100%) diff --git a/app-emulation/spice/spice-0.12.6.ebuild b/app-emulation/spice/spice-0.12.6-r1.ebuild similarity index 100% rename from app-emulation/spice/spice-0.12.6.ebuild rename to app-emulation/spice/spice-0.12.6-r1.ebuild From 1e75c4123caa356c1889c94a94cef2d06d00dc1c Mon Sep 17 00:00:00 2001 From: Mike Pagano Date: Tue, 17 Nov 2015 08:33:02 -0500 Subject: [PATCH 3/3] kernel-2.eclass: Fixes for comparison code. Thanks to mgorny for review and suggestion. --- eclass/kernel-2.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 5a9ea9f607813..1a508f119aafd 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1079,7 +1079,8 @@ unipatch() { # https://bugs.gentoo.org/show_bug.cgi?id=507656 # #################################################################### if [[ ${PN} == "git-sources" ]] ; then - if [[ ${KV_MAJOR}.${KV_PATCH} > 3.15 && ${RELEASETYPE} == -rc ]] ; then + if [[ ${KV_MAJOR} -gt 3 || ( ${KV_MAJOR} -eq 3 && ${KV_PATCH} -gt 15 ) && + ${RELEASETYPE} == -rc ]] ; then ebegin "Applying ${i/*\//} (-p1)" if [ $(patch -p1 --no-backup-if-mismatch -f < ${i} >> ${STDERR_T}) "$?" -le 2 ]; then eend 0