nixpkgs/pkgs/applications/science/math/sage/spkg-git.patch

19 lines
529 B
Diff
Raw Normal View History

diff --git a/build/pkgs/git/spkg-install b/build/pkgs/git/spkg-install
index 87874de3d8..b0906245fa 100644
--- a/build/pkgs/git/spkg-install
+++ b/build/pkgs/git/spkg-install
@@ -33,6 +33,13 @@ fi
2015-09-18 13:56:05 +00:00
cd src
+# Fix hardcoded paths, while making sure to only update timestamps of actually
+# changed files (otherwise confuses make)
+grep -rlF '/usr/bin/perl' . | while read file
+do
+ sed -e 's@/usr/bin/perl@perl@g' -i "$file"
+done
2015-09-18 13:56:05 +00:00
+
# We don't want to think about Fink or Macports
export NO_FINK=1
export NO_DARWIN_PORTS=1