]> git.pld-linux.org Git - packages/bcachefs-tools.git/commitdiff
bindgen built for host arch hence use x86_64 clang-devel on x32 master
authorJan Palus <atler@pld-linux.org>
Sun, 21 Jan 2024 23:27:41 +0000 (00:27 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 21 Jan 2024 23:27:41 +0000 (00:27 +0100)
bcachefs-tools.spec

index cb6ead1ef9e8e494372654b2026324fadec5edaf..ceaeada15f93fc439289b3a57f83b8fed11bc3b5 100644 (file)
@@ -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}" \
This page took 0.100679 seconds and 4 git commands to generate.