An attempt to build xvba-video-0.8.0-r1 on the system with python 3.2 leads to compile failure CODE: checking for GL/gl.h... yes checking for GL/glext.h... yes checking for GL/glx.h... yes checking for glXCreateContext in -lGL... yes checking for LIBVA_DEPS... yes checking for LIBVA_X11_DEPS... yes checking for LIBVA_GLX_DEPS... yes checking for VA-API... yes checking for VA-API (GLX extensions)... yes checking for VA drivers path... /usr/lib64/va/drivers checking for XvBA... yes checking for DRM_DEPS... yes checking for VALGRIND_DEPS... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating debian.upstream/Makefile config.status: creating src/Makefile config.status: creating src/shaders/Makefile config.status: creating src/config.h config.status: executing depfiles commands config.status: executing libtool commands xvba-video configuration summary: VA-API version ................... : 0.33.0 GLX support ...................... : yes Cg compiler ...................... : no Enable debugging information ..... : no Enable XvBA tracer ............... : yes >>> Source configured. >>> Compiling source in /tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0 ... make -j7 Making all in debian.upstream make[1]: Wejście do katalogu `/tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0/debian.upstream' sed \ -e 's|\@PACKAGE_VERSION\@|0.8.0|' \ -e 's|\@LIBVA_SDS_PACKAGE_VERSION\@|0.31.0-1+sds1|' \ -e 's|\@DATE\@|'"`LC_ALL=C date +'%a, %d %b %Y %X %z'`"'|' \ changelog.in > changelog sed \ -e 's|\@PACKAGE_VERSION\@|0.8.0|' \ -e 's|\@LIBVA_SDS_PACKAGE_VERSION\@|0.31.0-1+sds1|' \ -e 's|\@DATE\@|'"`LC_ALL=C date +'%a, %d %b %Y %X %z'`"'|' \ control.in > control make[1]: Opuszczenie katalogu `/tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0/debian.upstream' Making all in src make[1]: Wejście do katalogu `/tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0/src' make all-recursive make[2]: Wejście do katalogu `/tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0/src' Making all in shaders make[3]: Wejście do katalogu `/tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0/src/shaders' python pso2h.py -n Bicubic_fp -o Bicubic.h Bicubic.pso python pso2h.py -n NV12_fp -o NV12.h NV12.pso python pso2h.py -n YV12_fp -o YV12.h YV12.pso python pso2h.py -n ProcAmp_fp -o ProcAmp.h ProcAmp.pso python pso2h.py -n Evergreen_mix_1_fp -o Evergreen_mix_1.h Evergreen_mix_1.pso python pso2h.py -n Evergreen_mix_2_fp -o Evergreen_mix_2.h Evergreen_mix_2.pso python pso2h.py -n Evergreen_mix_3_fp -o Evergreen_mix_3.h Evergreen_mix_3.pso File "pso2h.py", line 82 print __doc__ ^ SyntaxError: invalid syntax File "pso2h.py", line 82 print __doc__ ^ SyntaxError: invalid syntax File "pso2h.py", line 82 print __doc__ make[3]: ^ *** [NV12.h] Błąd 1SyntaxError: invalid syntax make[3]: *** Oczekiwanie na niezakończone zadania.... make[3]: *** [ProcAmp.h] Błąd 1 make[3]: *** [Evergreen_mix_1.h] Błąd 1 File "pso2h.py", line 82 print __doc__ ^ SyntaxError: invalid syntax File "pso2h.py", line 82 print __doc__ ^ SyntaxError: invalid syntax make[3]: *** [Bicubic.h] Błąd 1 make[3]: *** [YV12.h] Błąd 1 File "pso2h.py", line 82 print __doc__ ^ SyntaxError: invalid syntax make[3]: *** [Evergreen_mix_2.h] Błąd 1 File "pso2h.py", line 82 print __doc__ ^ SyntaxError: invalid syntax make[3]: *** [Evergreen_mix_3.h] Błąd 1 make[3]: Opuszczenie katalogu `/tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0/src/shaders' make[2]: *** [all-recursive] Błąd 1 make[2]: Opuszczenie katalogu `/tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0/src' make[1]: *** [all] Błąd 2 make[1]: Opuszczenie katalogu `/tmp/portage/x11-libs/xvba-video-0.8.0-r1/work/xvba-driver-0.8.0/src' make: *** [all-recursive] Błąd 1 * ERROR: x11-libs/xvba-video-0.8.0-r1 failed (compile phase): * emake failed /CODE my simple fix was to add in the ebuild pkg_setup() { python_set_active_version 2 python_pkg_setup } I added this for a good measure too, but I am not sure if it is required PYTHON_DEPEND="2:2.7" Adding "python" to the inherit line was obviously also required
Created attachment 336166 [details] xvba-video-0.8.0-r1.ebuild Exact ebuild I used
Created attachment 337374 [details] Proposed patch to convert python2 code to python3 Ran into the same issue (see http://bugs.funtoo.org/browse/FL-383). Attached a patch that converts the python2-compatible script to python3.
Created attachment 337376 [details] python2 to python3 patch for xvba-video Sorry, wrong attachment, that was the ebuild. Here is the right one.
------------------------------------------------------------------------------ Fix bug#453036 by using python-any-r1 eclass. (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8) ------------------------------------------------------------------------------