Uploaded image for project: 'BuildTools'
  1. BuildTools
  2. BUILDTOOLS-598

CB's applyPatches.sh script not working on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • OS = macOS 11.4
      Java = openjdk version "16.0.1" 2021-04-20

    • n/a
    • n/a
    • Yes

      When using the applyPatches.sh script on Mac, the results are not working.
      They did previously up until the changes to that script back in March 2021

      1) When I run "./applyPatches.sh" I should get this warning:
      ""Please run this script again with the clean decompile sources as an argument. In most cases this will be ../work/decompile-XXXX""

      but I get:
      ""./applyPatches.sh: line 5: $1: unbound variable""

      2) When I run "./applyPatches.sh (path to decompile source)"
      I get this error:
      ""find: -printf: unknown primary or operator""

      Did some digging, hope this helps:
      https://unix.stackexchange.com/questions/272491/bash-error-find-printf-unknown-primary-or-operator

      ""The -printf option is not in POSIX find. It is a feature of GNU find, e.g., on Linux.""
      Seems like the printf option isn't on macOS

            Unassigned Unassigned
            ShaneBee Shane Bee
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: