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

build/linux/makefiles/buildtree.make thinks there's /bin/ksh on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • hs10
    • 6
    • hotspot
    • None
    • b02
    • generic
    • linux

        In

            build/linux/makefiles/buildtree.make

        it generates the test_gamma script with

            test_gamma: $(BUILDTREE_MAKE)
                @echo Creating $@ ...
                $(QUIETLY) ( \
                echo '#!/bin/ksh'; \
            ....

        which makes the test_gamma script fail with, e.g.,

            cd linux_i486_compiler2/product && ./test_gamma
            /bin/sh: ./test_gamma: /bin/ksh: bad interpreter: No such file or directory
            make: *** [product] Error 126

        because Linuxes *don't have* a /bin/ksh (for good
        reasons)! The obvious fix is to remove the "k" from
        "/bin/ksh". Doing that the sleazy way shows:

            $ JAVA_HOME=$Deployed/JDK-1.7.0 /bin/sh test_gamma
             1. A1 B5 C8 D6 E3 F7 G2 H4
             2. A1 B6 C8 D3 E7 F4 G2 H5
             3. A1 B7 C4 D6 E8 F2 G5 H3
            ....

              pbk Peter Kessler
              pbk Peter Kessler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: