rPackages.trajeR: fix build

This commit is contained in:
László Kupcsik
2025-11-02 22:39:39 +01:00
parent da4fc2743b
commit be4de6bbc8
2 changed files with 17 additions and 0 deletions
+4
View File
@@ -1870,6 +1870,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