Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package meson for openSUSE:Factory checked 
in at 2025-09-16 18:17:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/meson (Old)
 and      /work/SRC/openSUSE:Factory/.meson.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "meson"

Tue Sep 16 18:17:57 2025 rev:133 rq:1304978 version:1.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/meson/meson.changes      2025-09-14 
18:48:22.641575607 +0200
+++ /work/SRC/openSUSE:Factory/.meson.new.1977/meson.changes    2025-09-16 
18:17:58.930042405 +0200
@@ -12,0 +13,6 @@
+Tue Sep  2 14:37:05 UTC 2025 - Dominique Leuenberger <[email protected]>
+
+- Modify 14001.patch: allow to specify an envvar to filter out
+  unwanted deps.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ 14001.patch ++++++
--- /var/tmp/diff_new_pack.V0f84Y/_old  2025-09-16 18:17:59.686074221 +0200
+++ /var/tmp/diff_new_pack.V0f84Y/_new  2025-09-16 18:17:59.690074389 +0200
@@ -9,10 +9,10 @@
  2 files changed, 21 insertions(+)
  create mode 100644 data/mesongenbuildreq.py
 
-Index: meson-1.7.0/data/macros.meson
+Index: meson-1.9.0/data/macros.meson
 ===================================================================
---- meson-1.7.0.orig/data/macros.meson
-+++ meson-1.7.0/data/macros.meson
+--- meson-1.9.0.orig/data/macros.meson
++++ meson-1.9.0/data/macros.meson
 @@ -47,6 +47,11 @@
          %{?qemu_user_space_build: -t 10} \
          %{nil}}
@@ -25,28 +25,38 @@
  # Declarative buildsystem, requires RPM 4.20+ to work
  # https://rpm-software-management.github.io/rpm/manual/buildsystem.html
  %buildsystem_meson_conf() %meson %*
-Index: meson-1.7.0/data/mesongenbuildreq.py
+Index: meson-1.9.0/data/mesongenbuildreq.py
 ===================================================================
 --- /dev/null
-+++ meson-1.7.0/data/mesongenbuildreq.py
-@@ -0,0 +1,19 @@
++++ meson-1.9.0/data/mesongenbuildreq.py
+@@ -0,0 +1,29 @@
 +import subprocess
 +import json
 +import sys
-+deps_json = json.loads(subprocess.run([sys.argv[1], "introspect", 
"--dependencies", "meson.build"], capture_output=True).stdout)
-+unsorted_deps = dict(zip([x['name'] for x in deps_json],[x['version'] for x 
in deps_json]))
-+unsorted_deps.pop('', None)
-+deps = {}
-+for lib in list(unsorted_deps.keys()) :
-+    deps[lib] = unsorted_deps[lib]
-+for lib, versions in deps.items() :
-+     # Prepare version constraint
-+     version_str = ' ' + ' '.join(versions) if versions else ''
-+     line = []
-+     for prefix in ["cmake", "pkgconfig", "qmake"] :
-+         buildreq = (f"{prefix}({lib}){version_str}")
-+         if buildreq.split('=')[-1] == '' and '=' in buildreq :
-+             buildreq = buildreq.split('=')[0]
-+         line.append(buildreq)
-+     print(f"({' or '.join(line)})")
++import os
++
++# Read ignored dependencies from ENV
++ignore_deps = set(os.environ.get("BUILDREQ_IGNORE_DEP", "").split())
++
++# Run introspection command
++deps_json = json.loads(
++    subprocess.run([sys.argv[1], "introspect", "--dependencies", 
"meson.build"],
++                   capture_output=True, text=True).stdout
++)
++
++# Build deps dictionary while skipping ignored libraries
++deps = {entry['name']: entry['version'] for entry in deps_json if 
entry['name'] not in ignore_deps}
++
++# Output formatted build requirements
++for lib, versions in deps.items():
++    version_str = ' ' + ' '.join(versions) if versions else ''
++    line = []
++    for prefix in ["cmake", "pkgconfig", "qmake"]:
++        buildreq = f"{prefix}({lib}){version_str}"
++        # Strip trailing '=' if version was empty
++        if buildreq.split('=')[-1] == '' and '=' in buildreq:
++            buildreq = buildreq.split('=')[0]
++        line.append(buildreq)
++    print(f"({' or '.join(line)})")
++
 

Reply via email to