This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [JAVA] /bin/sh portability issues in gen-classlist.sh.in



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



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