SHA256
1
0
forked from pool/mawk
mawk/mawk-1.3.4-fix-make-check-path-handling.patch
OBS User autobuild e25a29c77c Accepting request 33796 from Base:System
Copy from Base:System/mawk based on submit request 33796 from user gberh

OBS-URL: https://build.opensuse.org/request/show/33796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mawk?expand=0&rev=1
2010-03-05 11:15:05 +00:00

63 lines
1.9 KiB
Diff

diff -urN mawk-1.3.4.orig/Makefile.in mawk-1.3.4/Makefile.in
--- mawk-1.3.4.orig/Makefile.in 2009-12-18 00:14:20.000000000 +0100
+++ mawk-1.3.4/Makefile.in 2010-02-16 11:44:18.000000000 +0100
@@ -67,13 +67,11 @@
$(PROG) : $(OBJS)
@ECHO_LD@$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-TESTPATH= PATH=`pwd`:`cd $(srcdir);pwd`/test:/bin:/usr/bin; export PATH
-
mawk_test : $(PROG) # test that we have a sane mawk
- @sh -c '$(TESTPATH); SRCDIR=`cd $(srcdir);pwd`; cd $(srcdir)/test ; echo "** mawktest $$SRCDIR"; mawktest $$SRCDIR'
+ @sh -c 'cd $(srcdir)/test ; echo "** mawktest"; ./mawktest'
fpe_test : $(PROG) # test FPEs are handled OK
- @sh -c '$(TESTPATH); cd $(srcdir)/test ; echo "** fpe_test"; fpe_test'
+ @sh -c 'cd $(srcdir)/test ; echo "** fpe_test"; ./fpe_test'
parse.c : parse.y
@echo expect 4 shift/reduce conflicts
diff -urN mawk-1.3.4.orig/test/fpe_test mawk-1.3.4/test/fpe_test
--- mawk-1.3.4.orig/test/fpe_test 2009-12-19 17:18:19.000000000 +0100
+++ mawk-1.3.4/test/fpe_test 2010-02-16 11:45:16.000000000 +0100
@@ -12,11 +12,12 @@
# recognize NAN printed as ? for hpux
#
-PROG=mawk
+PROG="${MAWK:-../mawk}"
-echo "testing floating point exception handling"
+PATH=/bin:/usr/bin
+export PATH
-PATH=.:$PATH
+echo "testing floating point exception handling"
STDOUT=${TMPDIR-/tmp}/mawktest$$
diff -urN mawk-1.3.4.orig/test/mawktest mawk-1.3.4/test/mawktest
--- mawk-1.3.4.orig/test/mawktest 2009-12-17 01:21:50.000000000 +0100
+++ mawk-1.3.4/test/mawktest 2010-02-16 11:45:47.000000000 +0100
@@ -9,7 +9,10 @@
# It needs to be run from mawk/test
# and mawk needs to be in mawk/test or in PATH
-PROG=mawk
+PROG="${MAWK:-../mawk}"
+
+PATH=/bin:/usr/bin
+export PATH
MAWKBINMODE=7
export MAWKBINMODE
@@ -27,8 +30,6 @@
trap 'echo mawk_test failed ; rm -f $STDOUT ; exit 1' 0
-PATH=.:$PATH
-
# find out which mawk we're testing
$PROG -W version