|
|
@@ -0,0 +1,47 @@
|
|
|
+--- mesa-26.1.5.orig/meson.build 2026-07-15 22:03:19.000000000 +0200
|
|
|
++++ mesa-26.1.5/meson.build 2026-07-26 19:14:07.877439518 +0200
|
|
|
+@@ -1055,31 +1055,6 @@ foreach p : python_exec_list
|
|
|
+ continue
|
|
|
+ endif
|
|
|
+
|
|
|
+- has_mako = run_command(
|
|
|
+- prog_python, '-c',
|
|
|
+- '''
|
|
|
+-import sys
|
|
|
+-
|
|
|
+-try:
|
|
|
+- try:
|
|
|
+- from packaging.version import Version
|
|
|
+- except:
|
|
|
+- from distutils.version import StrictVersion as Version
|
|
|
+-except:
|
|
|
+- sys.exit(2)
|
|
|
+-
|
|
|
+-try:
|
|
|
+- import mako
|
|
|
+-except:
|
|
|
+- sys.exit(1)
|
|
|
+-
|
|
|
+-if Version(mako.__version__) < Version("0.8.0"):
|
|
|
+- sys.exit(1)
|
|
|
+-''', check: false)
|
|
|
+- if has_mako.returncode() != 0
|
|
|
+- continue
|
|
|
+- endif
|
|
|
+-
|
|
|
+ has_yaml = run_command(prog_python, '-c', 'import yaml', check: false)
|
|
|
+ if has_yaml.returncode() != 0
|
|
|
+ continue
|
|
|
+@@ -1092,12 +1067,6 @@ if not prog_python.found()
|
|
|
+ error('Python ' + python_version_req + ' not found')
|
|
|
+ endif
|
|
|
+
|
|
|
+-if has_mako.returncode() == 1
|
|
|
+- error('Python (3.x) mako module >= 0.8.0 required to build mesa.')
|
|
|
+-elif has_mako.returncode() == 2
|
|
|
+- error('One of Python (3.x) packaging or distutils module is required.')
|
|
|
+-endif
|
|
|
+-
|
|
|
+ if has_yaml.returncode() != 0
|
|
|
+ error('Python (3.x) yaml module (PyYAML) required to build mesa.')
|
|
|
+ endif
|