[Fink-devel] xcode 8 fix for fink-buildenv-modules

2016-09-09 Thread Jack Howarth
Hanspeter,
  The current fink-buildenv-modules package is not savvy to the SDK
changes in Xcode8 and requires the following change...

--- /sw/lib/fink-buildenv-modules/base.sh 2016-08-09 17:49:45.0
-0400
+++ /sw/lib/fink-buildenv-modules/base.sh.new 2016-09-09 12:40:57.0
-0400
@@ -47,9 +47,12 @@
  if [ `dpkg --compare-versions $XCODE_VERSION lt 7` ]; then
  export SDK_PATH=`xcodebuild -version -sdk macosx${OSX_MAJOR_VERSION} Path`
  export SDK_VERSION=`xcodebuild -version -sdk macosx${OSX_MAJOR_VERSION}
SDKVersion`
- else
+ elif [ `dpkg --compare-versions $XCODE_VERSION lt 8` ]; then
  export SDK_PATH=`xcodebuild -version -sdk macosx10.11 Path`
  export SDK_VERSION=`xcodebuild -version -sdk macosx10.11 SDKVersion`
+ else
+ export SDK_PATH=`xcodebuild -version -sdk macosx10.12 Path`
+ export SDK_VERSION=`xcodebuild -version -sdk macosx10.12 SDKVersion`
  fi
 fi

to the fink-buildenv-modules/base.sh script so that SDK_PATH and
SDK_VERSION are populated with the correct values for Xcode 8 on 10.11.
   Jack
--
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Xcode8 build breakage for qt5

2016-09-09 Thread Jack Howarth
Hanspeter,
Building through the qt5 dependencies for wireshark, only qt5-base
requires this fix. I also compared...

ls /Applications/Xcode.app/Contents/Developer/usr/bin/xc*

for Xcode 7.3 which shows...

xcdevice xcrun xcsbuildd xcsdeviced xcsgenerator xctest
xcodebuild xcsbridge xcscontrol xcsdiagnose xcssecurity

to Xcode 8 GM which only shows

xcdevice xcodebuild xcsbridge xcscontrol xcsdiagnose xcsgenerator
xcssecurity xctest

so xcrun has definitely been deprecated out of the app itself in favor to
the system copy in /usr/bin .
 Jack


On Fri, Sep 9, 2016 at 12:18 PM, Jack Howarth 
wrote:

> Hanspeter,
> I seem to have stumbled across a behavioral change in xcrun for
> Xcode 8 on 10.10 which breaks the qt5-mac-qtbase-5.6.0-1 build.
>
> $ /usr/bin/xcrun -find xcrun
> xcrun: error: unable to find utility "xcrun", not a developer tool or in
> PATH
>
> fortunately this can be fixed with...
>
> diff -u -r1.7 qt5-qtbase.info
> --- qt5-qtbase.info 18 Apr 2016 14:30:16 - 1.7
> +++ qt5-qtbase.info 9 Sep 2016 16:02:37 -
> @@ -55,6 +55,7 @@
>  PatchScript: <<
>   #!/bin/sh -ev
>   . %p/sbin/fink-buildenv-helper.sh
> + perl -pi -e 's|find xcrun|find /usr/bin/xcrun|g' configure
> mkspecs/features/mac/default_pre.prf
>   unset X11_BASE_DIR
>   unset X11_INCLUDE_DIR
>   unset X11_LIBRARY_DIR
>
> since...
>
> $ /usr/bin/xcrun -find /usr/bin/xcrun
> /usr/bin/xcrun
>
> still works. I would note that I am using Xcode 8 GM with Xcode GM beta 6
> on 10.10 (since Apple has failed to post the GM for the CLI).
>
>   Jack
>
--
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel