pkgsrc/lang/STk/patches/patch-aa
dholland 20d64e25ec Fix broken build caused by invalid shell syntax in a configure script.
While here, patch a couple 64-bit issues and add destdir support. The
latter involved making some absolute symlinks relative, which changes
the binary package, and someone might have built this revision with a
version of bash accepting the invalid script syntax, so PKGREVISION++.
2008-09-07 00:23:57 +00:00

25 lines
801 B
Text

$NetBSD: patch-aa,v 1.2 2008/09/07 00:23:58 dholland Exp $
Don't delete any previous directory, just in case.
And *definitely* make it non-interactive.
--- Makefile.in.orig 1999-09-03 16:21:32.000000000 -0400
+++ Makefile.in 2008-09-06 19:39:24.000000000 -0400
@@ -18,6 +18,8 @@
# Last file update: 3-Sep-1999 20:03 (eg)
#
+root=$(DESTDIR)
+
SHELL = /bin/sh
CP = /bin/cp
STRIP = strip
@@ -175,7 +177,7 @@ clean-before:
echo "*** This STk version ($(VERSION)) has already been installed "; \
echo "*** on this machine. Should I clean this directory before "; \
echo "*** starting installation of STk-$(VERSION)? [no] " ; \
- read a; \
+ a=n; \
case $$a in \
y*|Y*) echo "Deleting previous installation"; \
/bin/rm -rf $(stkdir)/$(VERSION);; \