From 60b939028a106fc860da796976ab5978b8b6aadc Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Mon, 11 May 2020 09:35:25 +0300 Subject: [PATCH] Disable python byte compiling to avoid dealing with that python2 tries to byte compile python3 code in rosa2019.05, conditional files in spec and other problems --- kernel.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel.spec b/kernel.spec index 7e0284e..edd64b2 100644 --- a/kernel.spec +++ b/kernel.spec @@ -5,6 +5,12 @@ # we strip binaries manually in %%build %define __strip %(which true) +# brp-python-bytecompile uses /usr/bin/python, +# but it is a different python version in different ROSA +# releases; there is no good way to tell brp-python-bytecompile +# which iterpreter to use; so just disable it to avoid problems +%define _python_bytecompile_build 0 + %define kernelversion 5 %define patchlevel 4 # sublevel is used for stable-based kernels