[MacPorts] #52200: Xcode 8 deprecation of xcrun breaks qt5 build

MacPorts noreply at macports.org
Fri Sep 9 22:48:05 CEST 2016


#52200: Xcode 8 deprecation of xcrun breaks qt5 build
-----------------------------------+--------------------------------
 Reporter:  howarth.at.macports@…  |      Owner:  macports-tickets@…
     Type:  defect                 |     Status:  new
 Priority:  Normal                 |  Milestone:
Component:  ports                  |    Version:  2.3.4
 Keywords:                         |       Port:  qt5
-----------------------------------+--------------------------------
 The current qt5 Portfile fails to build against Xcode 8 due to its
 deprecation of xcrun in favor of the system copy....

    Xcode not set up properly. You may need to confirm the license
    agreement by running /usr/bin/xcodebuild without arguments.

 This can be fixed with the following change...


 {{{
 --- Portfile.orig       2016-09-09 16:23:31.000000000 -0400
 +++ Portfile    2016-09-09 16:28:08.000000000 -0400
 @@ -1026,6 +1026,10 @@
 "s|__MACPORTS_DEPLOYMENT_TARGET__|${macosx_deployment_target}|g" \
                      ${worksrcpath}/mkspecs/${spec}/qmake.conf
              }
 +           # Xcode 8 deprecates xcrun in favor of system copy
 +          reinplace \
 +                    "s|find xcrun|find /usr/bin/xcrun|g" \
 +                    ${worksrcpath}/configure
 ${worksrcpath}/mkspecs/features/mac/default_pre.prf
          }

          # return modified spec files to the default values
 }}}

 which is verified to work on Xcode 6.3 for 10.9 and Xcode 7.3 for 10.10.

-- 
Ticket URL: <https://trac.macports.org/ticket/52200>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list