$ grep python kernel-2.eclass -5 DEBLOB_CHECK_URI="mirror://gentoo/${DEBLOB_CHECK_A}" fi DEBLOB_URI="${DEBLOB_HOMEPAGE}/${DEBLOB_URI_PATH}/${DEBLOB_A}" HOMEPAGE="${HOMEPAGE} ${DEBLOB_HOMEPAGE}" DEPEND+=" deblob? ( =dev-lang/python-2* )" KERNEL_URI="${KERNEL_URI} deblob? ( ${DEBLOB_URI} ${DEBLOB_CHECK_URI} )" -- cd "${S}" [[ ${ETYPE} == headers ]] && compile_headers if [[ $K_DEBLOB_AVAILABLE == 1 ]] && use deblob ; then echo ">>> Running deblob script ..." EPYTHON="python2" sh "${T}/${DEBLOB_A}" --force || die "Deblob script failed to run!!!" fi } # if you leave it to the default src_test, it will run make to # find whether test/check targets are present; since "make test"
+ 17 Jan 2014; Michael Pagano <mpagano@gentoo.org> kernel-2.eclass: + Fix kernel-2.eclass to use python.eclass for it's python needs. (deblob + script). See bug #497966 +
I would recommend migrating to python-any-r1.eclass; python.eclass is being phased out.
Mike is right. please migrate to python-any.r1.eclass instead of using the old one.
Also, the current usage of python.eclass is a bit broken. PYTHON_DEPEND must be set before inherit, and there is no call to python_set_active_version. If you would like me to work on a patch to improve this, I would be happy to do so.
(In reply to Mike Gilbert from comment #4) > Also, the current usage of python.eclass is a bit broken. PYTHON_DEPEND must > be set before inherit, and there is no call to python_set_active_version. > > If you would like me to work on a patch to improve this, I would be happy to > do so. That would be great. Thanks.
Created attachment 368066 [details, diff] deblob-check-3.12-python-3.patch This patch makes deblob-check compatible with Python 3. This patch applies cleanly for deblob-check-3.12. This patch applies with some offsets to other versions. I verified versions from 3.0 to 3.12.
Created attachment 368068 [details, diff] Convert to python-any-r1 Here's a patch to convert to python-any-r1. If you also apply Arfrever's patch, you could add python{3_2,3_3} to PYTHON_COMPAT.
Created attachment 368070 [details, diff] Corrected python-any-r1 patch
I went ahead and committed my patch to kernel-2.eclass. What would be the best way to get Arfrever's python3-compatibility patch applied? Is there an upstream you/we can appeal to?
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #6) > Created attachment 368066 [details, diff] [details, diff] > deblob-check-3.12-python-3.patch > > This patch makes deblob-check compatible with Python 3. > > This patch applies cleanly for deblob-check-3.12. This patch applies with > some offsets to other versions. I verified versions from 3.0 to 3.12. Thanks. Feel free to submit upstream.
libre-linux: http://www.fsfla.org/ikiwiki/selibre/linux-libre/index.en.html
seems to be fixed.