This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/9901] New: Testsuite assumes SHELL is set and fails if not


env -i make check fails with:
Testing command not found:

while make check works.

This is due to the assumption SHELL is set:
    <original env>: SHELL unset
        $(MAKE) check: SHELL defined by make
            $(SHELL) SHELL is a regular var, not env
                $(SHELL) SHELL unset (new shell)
                    $(SHELL) fails

This patch against CVS fixes it:
Index: iconvdata/
RCS file: /cvs/glibc/libc/iconvdata/,v
retrieving revision 1.34
diff -u -r1.34
--- iconvdata/     12 Dec 2007 07:58:54 -0000      1.34
+++ iconvdata/     25 Feb 2009 16:57:03 -0000
@@ -25,6 +25,9 @@
+if test "$SHELL" = ""; then SHELL=/bin/sh; fi
+export SHELL
 cat <<EOF |

BTW, This is with /bin/sh == bash, but my shell in passwd (getent passwd `id
-u`) is set to zsh which results in bash -c 'echo $SHELL' => /bin/zsh which
might be one reason it fails.


           Summary: Testsuite assumes SHELL is set and fails if not
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: lool+redhat at via dot ecp dot fr
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]