[packages/bcachefs-tools] bindgen built for host arch hence use x86_64 clang-devel on x32

atler atler at pld-linux.org
Mon Jan 22 02:23:58 CET 2024


commit 70c8abda551b12727c44bbeec1217b6b8024355f
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jan 22 00:27:41 2024 +0100

    bindgen built for host arch hence use x86_64 clang-devel on x32

 bcachefs-tools.spec | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/bcachefs-tools.spec b/bcachefs-tools.spec
index cb6ead1..ceaeada 100644
--- a/bcachefs-tools.spec
+++ b/bcachefs-tools.spec
@@ -9,7 +9,11 @@ Source0:	https://evilpiepirate.org/bcachefs-tools/%{name}-vendored-%{version}.ta
 Patch0:		rust-target.patch
 URL:		https://bcachefs.org/
 BuildRequires:	cargo
+%ifnarch x32
 BuildRequires:	clang-devel
+%else
+BuildRequires:	clang-devel(x86-64)
+%endif
 BuildRequires:	keyutils-devel
 BuildRequires:	libaio-devel
 BuildRequires:	libblkid-devel
@@ -46,7 +50,11 @@ This package contains userspace tools to manage bcachefs.
 export RUSTFLAGS="%{rpmrustflags}"
 export PKG_CONFIG_ALLOW_CROSS=1
 export BINDGEN_EXTRA_CLANG_ARGS="%{rpmcflags} %{rpmcppflags}"
+%ifnarch x32
 export LIBCLANG_PATH="%{_libdir}"
+%else
+export LIBCLANG_PATH=/usr/lib64
+%endif
 %{__make} \
 	V=1 \
 	PREFIX="%{_prefix}" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bcachefs-tools.git/commitdiff/70c8abda551b12727c44bbeec1217b6b8024355f



More information about the pld-cvs-commit mailing list