Greetings all.

One more follow up on this issue.

Attached is a patch that aims to fix this issue by altering the generated locale testing wrapper scripts to set BIN_SH to xpg4 (not xgp4 as I erroneously noted in the previous message) for the run_utils script.

--Andrew Black

Changelog:
        * GNUmakefile.bin (SHENV): Define on Compaq Tru64, for use ...
        ($(RUNTARGET)): ... Here.  Forces usage of posix compliant Bourne shell.
Index: etc/config/GNUmakefile.bin
===================================================================
--- etc/config/GNUmakefile.bin	(revision 485909)
+++ etc/config/GNUmakefile.bin	(working copy)
@@ -55,6 +55,12 @@
   LDFLAGS += $(RPATH)$(LIBDIR)
 endif
 
+# Compaq Tru64 (osf1) default /bin/sh lacks getopts builtin.  Workaround is 
+# to use posix compatible sh.
+ifeq ($(findstring osf1-,$(PLATFORM)),osf1-)
+  SHENV=BIN_SH=xpg4 
+endif
+
 ##############################################################################
 #  TARGETS
 ##############################################################################
@@ -94,9 +100,10 @@
           echo "#!/bin/sh" > $@;                                             \
           locname=`echo $@ | sed "s:^\./::g;s:\.sh$$::g"`;                   \
           if [ "$@" = "sanity_test.sh" ]; then                               \
-              echo "./run_utils -s -b $(BUILDDIR)/bin $$""*" >>$@;           \
+              echo "$(SHENV)./run_utils -s -b $(BUILDDIR)/bin $$""*" >>$@;   \
           else                                                               \
-              echo "./run_utils -f -i $(NLSDIR) -l $$locname $$""*" >> $@;   \
+              echo "$(SHENV)./run_utils -f -i $(NLSDIR) -l $$locname $$""*"  \
+				>> $@; 														 \
           fi;                                                                \
           chmod ug+x $@;)
 

Reply via email to