glib: update to 2.82.5 and backport shebangs patch
Fixes Meson 1.8 and higher's detection of the shebang for glib-mkenums and glib-genmarshal. See https://github.com/mesonbuild/meson/issues/14896 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9561>
This commit is contained in:
parent
c8db458ce9
commit
2dd28e36e6
@ -1,10 +1,11 @@
|
||||
[wrap-file]
|
||||
directory = glib-2.82.4
|
||||
source_url = https://download.gnome.org/sources/glib/2.82/glib-2.82.4.tar.xz
|
||||
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/glib_2.82.4-1/glib-2.82.4.tar.xz
|
||||
source_filename = glib-2.82.4.tar.xz
|
||||
source_hash = 37dd0877fe964cd15e9a2710b044a1830fb1bd93652a6d0cb6b8b2dff187c709
|
||||
wrapdb_version = 2.82.4-1
|
||||
directory = glib-2.82.5
|
||||
source_url = https://download.gnome.org/sources/glib/2.82/glib-2.82.5.tar.xz
|
||||
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/glib_2.82.5-1/glib-2.82.5.tar.xz
|
||||
source_filename = glib-2.82.5.tar.xz
|
||||
source_hash = 05c2031f9bdf6b5aba7a06ca84f0b4aced28b19bf1b50c6ab25cc675277cbc3f
|
||||
wrapdb_version = 2.82.5-1
|
||||
diff_files = glib-2.82.5/0001-Windows-fix-Python-path-cannot-contain-spaces.patch
|
||||
|
||||
[provide]
|
||||
dependency_names = gthread-2.0, gobject-2.0, gmodule-no-export-2.0, gmodule-export-2.0, gmodule-2.0, glib-2.0, gio-2.0, gio-windows-2.0, gio-unix-2.0
|
||||
|
@ -0,0 +1,78 @@
|
||||
From 15304efa27fe3cb848997c1c33f2b230bd17020c Mon Sep 17 00:00:00 2001
|
||||
From: Dan Yeaw <dan@yeaw.me>
|
||||
Date: Sat, 9 Nov 2024 17:05:17 -0500
|
||||
Subject: [PATCH] Windows: fix Python path cannot contain spaces
|
||||
|
||||
Move the shebang line from the full Python path of the build
|
||||
machine to the first Python on the path during runtime. Set
|
||||
the shebang in the main meson.build file so that it can be
|
||||
overridden in one place if needed.
|
||||
|
||||
Fixes: #3331
|
||||
(cherry picked from commit 160e55575e2183464dbf5aa733d6c2df3c674c4c)
|
||||
---
|
||||
gio/gdbus-2.0/codegen/meson.build | 2 +-
|
||||
glib/meson.build | 2 +-
|
||||
gobject/meson.build | 2 +-
|
||||
meson.build | 6 ++++++
|
||||
4 files changed, 9 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/gio/gdbus-2.0/codegen/meson.build b/gio/gdbus-2.0/codegen/meson.build
|
||||
index 67ea9f2ee..246ad4f3f 100644
|
||||
--- a/gio/gdbus-2.0/codegen/meson.build
|
||||
+++ b/gio/gdbus-2.0/codegen/meson.build
|
||||
@@ -31,7 +31,7 @@ gdbus_codegen_conf = configuration_data()
|
||||
gdbus_codegen_conf.set('VERSION', glib_version)
|
||||
gdbus_codegen_conf.set('MAJOR_VERSION', major_version)
|
||||
gdbus_codegen_conf.set('MINOR_VERSION', minor_version)
|
||||
-gdbus_codegen_conf.set('PYTHON', python.full_path())
|
||||
+gdbus_codegen_conf.set('PYTHON', python_shebang)
|
||||
gdbus_codegen_conf.set('DATADIR', glib_datadir)
|
||||
|
||||
# Install gdbus-codegen executable
|
||||
diff --git a/glib/meson.build b/glib/meson.build
|
||||
index 9f1515b82..6b98ef6ce 100644
|
||||
--- a/glib/meson.build
|
||||
+++ b/glib/meson.build
|
||||
@@ -505,7 +505,7 @@ endif
|
||||
|
||||
report_conf = configuration_data()
|
||||
report_conf.set('GLIB_VERSION', glib_version)
|
||||
-report_conf.set('PYTHON', python.full_path())
|
||||
+report_conf.set('PYTHON', python_shebang)
|
||||
configure_file(
|
||||
input: 'gtester-report.in',
|
||||
output: 'gtester-report',
|
||||
diff --git a/gobject/meson.build b/gobject/meson.build
|
||||
index 78b732bf3..32c90de1a 100644
|
||||
--- a/gobject/meson.build
|
||||
+++ b/gobject/meson.build
|
||||
@@ -87,7 +87,7 @@ python_tools = [
|
||||
|
||||
python_tools_conf = configuration_data()
|
||||
python_tools_conf.set('VERSION', glib_version)
|
||||
-python_tools_conf.set('PYTHON', python.full_path())
|
||||
+python_tools_conf.set('PYTHON', python_shebang)
|
||||
|
||||
foreach tool: python_tools
|
||||
tool_bin = configure_file(
|
||||
diff --git a/meson.build b/meson.build
|
||||
index a99804441..429d50282 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -2460,6 +2460,12 @@ glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline)
|
||||
|
||||
python = import('python').find_installation()
|
||||
|
||||
+# Sets the shebang on script files. This has been changed many times including
|
||||
+# using env, the absolute path to the Python executable, and using both python
|
||||
+# and python3 names. Please review the history here, prior to suggesting
|
||||
+# further changes: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/439
|
||||
+python_shebang = '/usr/bin/env python3'
|
||||
+
|
||||
python_version = python.language_version()
|
||||
python_version_req = '>=3.7'
|
||||
if not python_version.version_compare(python_version_req)
|
||||
--
|
||||
2.50.1.windows.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user