This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [JAVA] /bin/sh portability issues in gen-classlist.sh.in
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 7 Jul 2006 17:57:26 -0700
- Subject: Re: [JAVA] /bin/sh portability issues in gen-classlist.sh.in
- References: <Pine.LNX.4.44.0607062201340.25035-100000@www.eyesopen.com>
On Jul 6, 2006, at 9:10 PM, Roger Sayle wrote:
The first pair of issues is in libjava/classpath/lib/gen-
classlist.sh.in
which uses test's "-ef" and "-e" operators which aren't available on
Solaris. Many thanks to Ian Lance Taylor for recommending the more
portable idiom used below.
Actually they are available on Solaris, just not with the builtin
inside /bin/sh.
This is just one reason why /bin/sh should not be used. We do
document that we
require a real POSIX shell and /bin/sh is not complaint in other
ways, this is
just one. In fact Sun has said many times, they are not going to
change /bin/sh
to be a POSIX shell.
After building you should try to install the compiler, it will not
work as some
substitutions are not done correctly. I can point you to the bug
reports that
were reported.
Also this really should be sent upstream and not to GCC patches.
-- Pinski