[fink:package-submissions] #5019 fix qt4-base-mac-4.8.7-2 build for 10.13 and Xcode 9

Hanspeter Niederstrasser via Fink-tracker <[email protected]>
Newsgroups gmane.os.apple.fink.tracker
Message-ID </p/fink/package-submissions/5019/ee5be7ee0ce0fabce74ec2113f5c52aecb2b9c01.package-submissions@fink.p.sourceforge.net>
- **status**: open --> closed-fixed
- **Group**: Undergoing_Validation --> Added_to_Fink



---

** [package-submissions:#5019] fix qt4-base-mac-4.8.7-2 build for 10.13 and Xcode 9**

**Status:** closed-fixed
**Group:** Added_to_Fink
**Labels:** libs 
**Created:** Mon Sep 25, 2017 12:32 AM UTC by Jack Howarth
**Last Updated:** Mon Sep 25, 2017 09:33 PM UTC
**Owner:** nobody


The following Info file change and new qt4-base-mac-darwin17.patch fix the build for 10.13 as well as Xcode 9. 

~~~
Index: qt4-base-mac.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/libs/qt4-base-mac.info,v
retrieving revision 1.2
diff -u -r1.2 qt4-base-mac.info
--- qt4-base-mac.info	13 Oct 2015 11:51:26 -0000	1.2
+++ qt4-base-mac.info	25 Sep 2017 00:30:57 -0000
@@ -87,6 +87,8 @@
 ### PatchFile5 puts the frameworks into $(qt-prefix)/lib
 PatchFile5: %N-no_library-frameworks.patch
 PatchFile5-MD5: 4336c5c44fbf1d0e958e986c362d3120
+PatchFile6: %N-darwin17.patch
+PatchFile6-MD5: b912a2703d72d925d5499dca8bf71f7f
 PatchScript: <<
 	#!/bin/sh -ev
 	. %p/sbin/fink-buildenv-helper.sh
@@ -114,6 +116,13 @@
 	# Fails similarly to ccache usage in MacPorts (so don't activate for now):
 	# https://trac.macports.org/ticket/34856
 	#perl -pi -e 's|CC \= gcc|CC = gcc -MD|g; s|CXX \= g\+\+|CXX = g++ -MD|g' mkspecs/common/g++-base.conf
+	if [[ $OSX_MAJOR_VERSION > 10.12 ]]; then
+		patch -p1 < %{PatchFile6}
+	fi
+	# Xcode 9 fix
+	perl -pi -e 's,comment\(\)\) \>\= 0,comment\(\)\),g' tools/linguist/linguist/messagemodel.cpp
+	perl -pi -e 's,optionalHeight \> 0,optionalHeight,' src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp
+
 <<
 
 NoSetCPPFLAGS: true
~~~

Tested on 10.13 with 'fink -m'.


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/fink/package-submissions/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/fink/admin/package-submissions/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Fink-tracker mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.tracker
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.