Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6348413

Solaris JDK build fails when run from under bash (echo -e issue)

XMLWordPrintable

    • b63
    • generic
    • solaris

      Solaris builds rely on the ability of 'echo' command to interpret escape chars like \n. On Solaris, /bin/echo interprets escapes, but the 'echo' built into bash does not. In Defs-utils.gmk, ECHO is first defined as /bin/echo (line 71), then for Solaris it is redefined as just 'echo' (line 167) which means the builtin version. Build fails
      under bash because this echo emits "\n" instead of the line feed character.

      System details (this is not the only system i can reproduce the problem on, just an example):
      # uname -a
      SunOS fusion 5.10 Generic sun4u sparc SUNW,Sun-Blade-1000
      # bash --version
      GNU bash, version 3.00.16(1)-release (sparc-sun-solaris2.10)
      Copyright (C) 2004 Free Software Foundation, Inc.

      Build log is attached.

            ohair Kelly Ohair (Inactive)
            peterz Peter Zhelezniakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: