[packages/meson] adjust proc macro patch for recent meson; rel 2

atler atler at pld-linux.org
Tue Dec 1 17:03:05 CET 2026


commit f2bd89c7b193f9c10e30ecbf61084bd70f6ba7dd
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Dec 1 16:58:32 2026 +0100

    adjust proc macro patch for recent meson; rel 2
    
    meson no longer uses BUILD target for proc-macro crate but HOST instead
    (although it's completely wrong). I'm too lazy to browse through the mess
    called meson and figure what caused this regression so let's just
    additionally verify crate type.

 meson.spec                              | 2 +-
 rust-proc-macro-filter-out-target.patch | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.spec b/meson.spec
index 28c77c2..924688c 100644
--- a/meson.spec
+++ b/meson.spec
@@ -2,7 +2,7 @@ Summary:	High productivity build system
 Summary(pl.UTF-8):	System budowania o dużej produktywności
 Name:		meson
 Version:	1.12.1
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Development/Tools
 #Source0Download: https://github.com/mesonbuild/meson/releases/
diff --git a/rust-proc-macro-filter-out-target.patch b/rust-proc-macro-filter-out-target.patch
index f047623..a76b8ef 100644
--- a/rust-proc-macro-filter-out-target.patch
+++ b/rust-proc-macro-filter-out-target.patch
@@ -29,7 +29,7 @@ diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
                  priv_dir = self.get_target_private_dir(lt)
                  commands += compiler.get_include_args(priv_dir, False)
 +        # filter out --target arguments for host only proc-macro crate
-+        if compiler.language == 'rust' and hasattr(target, 'for_machine') and target.for_machine == MachineChoice.BUILD:
++        if compiler.language == 'rust' and (hasattr(target, 'for_machine') and target.for_machine == MachineChoice.BUILD or hasattr(target, 'rust_crate_type') and target.rust_crate_type == 'proc-macro'):
 +            target_commands = []
 +            target_arg = False
 +            for (i, v) in enumerate(commands):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/meson.git/commitdiff/f2bd89c7b193f9c10e30ecbf61084bd70f6ba7dd



More information about the pld-cvs-commit mailing list