[packages/niri] deps and config for bindgen

atler atler at pld-linux.org
Sat Mar 1 02:16:26 CET 2025


commit 3bcc694489a80000e78282ba12fa77ca8aebfedb
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Mar 1 00:22:28 2025 +0100

    deps and config for bindgen

 niri.spec | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
---
diff --git a/niri.spec b/niri.spec
index 068d9cf..e02ca85 100644
--- a/niri.spec
+++ b/niri.spec
@@ -13,6 +13,12 @@ BuildRequires:	Mesa-libgbm-devel
 BuildRequires:	cairo-devel
 BuildRequires:	cairo-gobject-devel
 BuildRequires:	cargo
+BuildRequires:	clang
+%ifnarch x32
+BuildRequires:	clang-devel
+%else
+BuildRequires:	clang-devel(x86-64)
+%endif
 BuildRequires:	libdisplay-info-devel >= 0.2
 BuildRequires:	libinput-devel >= 1.21.0
 BuildRequires:	libseat-devel
@@ -32,6 +38,8 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_enable_debug_packages	0
 
+%define		filterout_c	-fvar-tracking-assignments
+
 %description
 niri is a scrollable-tiling Wayland compositor. Windows are arranged
 in columns on an infinite strip going to the right. Opening a new
@@ -71,12 +79,24 @@ EOF
 
 %build
 export CARGO_HOME="$(pwd)/.cargo"
+export BINDGEN_EXTRA_CLANG_ARGS="%{rpmcflags} %{rpmcppflags}"
+%ifnarch x32
+export LIBCLANG_PATH="%{_libdir}"
+%else
+export LIBCLANG_PATH=/usr/lib64
+%endif
 
 %cargo_build --frozen
 
 %install
 rm -rf $RPM_BUILD_ROOT
 export CARGO_HOME="$(pwd)/.cargo"
+export BINDGEN_EXTRA_CLANG_ARGS="%{rpmcflags} %{rpmcppflags}"
+%ifnarch x32
+export LIBCLANG_PATH="%{_libdir}"
+%else
+export LIBCLANG_PATH=/usr/lib64
+%endif
 
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/wayland-sessions,%{_datadir}/xdg-desktop-portal,%{systemduserunitdir}}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/niri.git/commitdiff/3bcc694489a80000e78282ba12fa77ca8aebfedb



More information about the pld-cvs-commit mailing list