[packages/bcachefs-tools] - avoid rebuilding on install

qboosh qboosh at pld-linux.org
Fri May 24 20:16:37 CEST 2024


commit 95bfbd667d4a2e907985ce77229ed595fef3f19d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 24 20:00:33 2024 +0200

    - avoid rebuilding on install

 bcachefs-tools.spec | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/bcachefs-tools.spec b/bcachefs-tools.spec
index ec41eb0..fcf42df 100644
--- a/bcachefs-tools.spec
+++ b/bcachefs-tools.spec
@@ -81,6 +81,15 @@ export LIBCLANG_PATH=/usr/lib64
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
 
+# keep build env settings to avoid rebuilds ("dirty")
+export RUSTFLAGS="%{rpmrustflags}"
+export BINDGEN_EXTRA_CLANG_ARGS="%{rpmcflags} %{rpmcppflags}"
+%ifnarch x32
+export LIBCLANG_PATH="%{_libdir}"
+%else
+export LIBCLANG_PATH=/usr/lib64
+%endif
+
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT \
 	V=1 \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bcachefs-tools.git/commitdiff/95bfbd667d4a2e907985ce77229ed595fef3f19d



More information about the pld-cvs-commit mailing list