On Solaris 11.4, the "gmake check" command in automake-1.16j appears to hang.
Using 'truss', I found that it invokes
  /usr/bin/lex --version
and that command reads from standard input:

  $ /usr/bin/lex --version
  lex: Software Generation Utilities (SGU) Solaris-ELF (4.0)
  _

The attached proposed patch fixes it.

>From ec1b65eb0e1bef42d1dbfe27b2dd957626890598 Mon Sep 17 00:00:00 2001
From: Bruno Haible <br...@clisp.org>
Date: Sun, 31 Dec 2023 09:19:46 +0100
Subject: [PATCH] tests: Don't hang on Solaris when flex is not installed.

* t/get-sysconf.sh: Don't let $LEX read from stdin.
---
 t/get-sysconf.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/get-sysconf.sh b/t/get-sysconf.sh
index f448e8585..e2d8bb5f9 100644
--- a/t/get-sysconf.sh
+++ b/t/get-sysconf.sh
@@ -56,7 +56,7 @@ libtoolize --help || :
 # It's OK if the selected Lex and Yacc programs don't know how to print
 # the version number or the help screen; those are usually available only
 # for Flex and Bison.
-$LEX --version || :
+$LEX --version < /dev/null || :
 $LEX --help || :
 $YACC --version || :
 $YACC --help || :
-- 
2.34.1

Reply via email to