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

[Mac] Modifying m4 file makes configure to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 8
    • infrastructure
    • generic
    • os_x

      Modifying an m4 file on a mac, something as simple as a changing the copyright year makes the common/autoconf/autogen.sh to fail making configure to fail completely.

      Here is my output from an email thread:
      ==

      $ bash common/autoconf/autogen.sh
      Generating generated-configure.sh
      /usr/bin/gm4:stdin:185: bad expression in eval: 32 > <dynamic>
      autom4te: /usr/bin/gm4 failed with exit status: 1
      Generating custom generated-configure.sh
      /usr/bin/gm4:stdin:185: bad expression in eval: 32 > <dynamic>
      autom4te: /usr/bin/gm4 failed with exit status: 1
      $


      Also, as a proof of concept, all I changed was the copyright year from 2013 to 2014 in the comments and it fails.

      $ hg diff autoconf/custom-hook.m4
      diff --git a/autoconf/custom-hook.m4 b/autoconf/custom-hook.m4
      --- a/autoconf/custom-hook.m4
      +++ b/autoconf/custom-hook.m4
      @@ -1,5 +1,5 @@
      #
      -# Copyright (c) 2012, 2013 Oracle and/or its affiliates. All rights reserved.
      +# Copyright (c) 2012, 2014 Oracle and/or its affiliates. All rights reserved.
      # ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
      #

            Unassigned Unassigned
            pbhat Pranav Bhat (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: