fix 'make test' for HP NonStop
This fixes the vast majority of test failures on HP NonStop.
---
v2: hardcode /usr/local rather than using ${prefix}
Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
Makefile +0 -0
@@ -1381,6 +1381,15 @@ ifeq ($(uname_S),NONSTOP_KERNEL)
MKDIR_WO_TRAILING_SLASH = YesPlease
# RFE 10-120912-4693 submitted to HP NonStop development. NO_SETITIMER = UnfortunatelyYes
+
+ # for 'make test'
+ # some test don't work with /bin/diff, some fail with /bin/tar
+ # some need bash, and some need /usr/local/bin in PATH first
+ SHELL_PATH=/usr/local/bin/bash
+ SANE_TOOL_PATH=/usr/local/bin
+ # as of H06.25/J06.14, we might better use this
+ #SHELL_PATH=/usr/coreutils/bin/bash
+ #SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin
endif
ifneq (,$(findstring MINGW,$(uname_S)))
pathsep = ;
Quoted 5 lines · Joachim Schmitz
Makefile +0
-0
Makefile ifeq ($(uname_S),NONSTOP_KERNEL) · line 1389
Quoted 9 lines
Makefile +6
-0@@ -1381,6 +1381,15 @@ ifeq ($(uname_S),NONSTOP_KERNEL) MKDIR_WO_TRAILING_SLASH = YesPlease # RFE 10-120912-4693 submitted to HP NonStop development. NO_SETITIMER = UnfortunatelyYes + + # for 'make test' + # some test don't work with /bin/diff, some fail with /bin/tar + # some need bash, and some need /usr/local/bin in PATH first + SHELL_PATH=/usr/local/bin/bash + SANE_TOOL_PATH=/usr/local/bin
I think we can drop these comments, as the reasoning really should just go in the commit message.
Makefile ifeq ($(uname_S),NONSTOP_KERNEL) · line 1392
Quoted 3 lines
Makefile +3
-0+ # as of H06.25/J06.14, we might better use this + #SHELL_PATH=/usr/coreutils/bin/bash + #SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin
Is there any reason not to put both into the default SANE_TOOL_PATH? If /usr/coreutils/bin does not exist on older versions, it will be a harmless no-op. I guess we arestuck with picking one $SHELL_PATH, though.
-Peff
Quoted 17 lines
From: Jeff King [mailto:[email protected]]
Sent: Monday, October 29, 2012 8:07 AM
To: Joachim Schmitz
Cc: [email protected]
Subject: Re: [PATCH v2] fix 'make test' for HP NonStopQuoted 9 lines · Joachim Schmitz
Makefile +1
-0@@ -1381,6 +1381,15 @@ ifeq ($(uname_S),NONSTOP_KERNEL) MKDIR_WO_TRAILING_SLASH = YesPlease # RFE 10-120912-4693 submitted to HP NonStop development. NO_SETITIMER = UnfortunatelyYes +
Quoted 8 lines
Makefile ifeq ($(uname_S),NONSTOP_KERNEL) · line 1389
Quoted 5 lines
Makefile +5
-0+ # for 'make test' + # some test don't work with /bin/diff, some fail with /bin/tar + # some need bash, and some need /usr/local/bin in PATH first + SHELL_PATH=/usr/local/bin/bash + SANE_TOOL_PATH=/usr/local/binI think we can drop these comments, as the reasoning really should just go in the commit message.
OK by me.
Quoted 8 lines
Makefile ifeq ($(uname_S),NONSTOP_KERNEL) · line 1392
Quoted 3 lines
Makefile +3
-0+ # as of H06.25/J06.14, we might better use this + #SHELL_PATH=/usr/coreutils/bin/bash + #SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/binIs there any reason not to put both into the default
SANE_TOOL_PATH? If/usr/coreutils/bindoes not exist on older versions, it will be a harmless no-op. I guess we arestuck with picking one $SHELL_PATH, though.
And because of that have to modify something anyway... But I don't really mind about an extended SANE_TOOL_PATH
Quoted 1 line
-Peff
Bye, Jojo
-- 8< --
This fixes the vast majority of test failures on HP NonStop. Some test don't work with /bin/diff, some fail with /bin/tar, so let's put /usr/local/bin in PATH first.
Some tests fail with /bin/sh (link to /bin/ksh) so use bash instead
---
Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
Makefile +0 -0
@@ -1381,6 +1381,10 @@ ifeq ($(uname_S),NONSTOP_KERNEL)
MKDIR_WO_TRAILING_SLASH = YesPlease
# RFE 10-120912-4693 submitted to HP NonStop development. NO_SETITIMER = UnfortunatelyYes
+ SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin
+ SHELL_PATH=/usr/local/bin/bash
+ # as of H06.25/J06.14, we might better use this
+ #SHELL_PATH=/usr/coreutils/bin/bash
endif
ifneq (,$(findstring MINGW,$(uname_S)))
pathsep = ;
Quoted 25 lines · Joachim Schmitz
This fixes the vast majority of test failures on HP NonStop. Some test don't work with
/bin/diff, some fail with/bin/tar, so let's put/usr/local/binin PATH first.
Some tests fail with/bin/sh(link to/bin/ksh) so use bash insteadSigned-off-by Joachim Schmitz <[email protected]>---
Makefile| 9 +++++++++1 file changed, 9 insertions(+)Makefile +4
-0@@ -1381,6 +1381,10 @@ ifeq ($(uname_S),NONSTOP_KERNEL) MKDIR_WO_TRAILING_SLASH = YesPlease # RFE 10-120912-4693 submitted to HP NonStop development. NO_SETITIMER = UnfortunatelyYes + SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin + SHELL_PATH=/usr/local/bin/bash + # as of H06.25/J06.14, we might better use this + #SHELL_PATH=/usr/coreutils/bin/bashendif
ifneq (,$(findstring MINGW,$(uname_S)))
Quoted 1 line
pathsep = ;
Your patch was whitespace damaged, but I was able to fix it up. Thanks.
-Peff