rPackages.trajeR: fix build (#457912)

This commit is contained in:
Justin Bedő
2026-02-19 13:00:35 +11:00
committed by GitHub
2 changed files with 17 additions and 0 deletions
+4
View File
@@ -1899,6 +1899,10 @@ let
];
});
trajeR = old.trajeR.overrideAttrs (attrs: {
patches = [ ./patches/trajeR.patch ];
});
arcpbf = old.arcpbf.overrideAttrs (attrs: {
postPatch = "patchShebangs configure";
});
@@ -0,0 +1,13 @@
diff --git a/src/Makevars b/src/Makevars
index d147226..a79380e 100755
--- a/src/Makevars
+++ b/src/Makevars
@@ -19,7 +19,7 @@ PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
# strip debug symbols for smaller Linux binaries
strippedLib: $(SHLIB)
- if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]] ; \
+ @if [[ -e "/usr/bin/strip" && -e "/bin/uname" && $(shell uname) == "Linux" ]] ; \
then /usr/bin/strip --strip-debug $(SHLIB); fi
.phony: strippedLib