Merge lp:~metacollin/kicad/yosemite_fix into lp:kicad/product

Proposed by metacollin
Status: Rejected
Rejected by: Chris Pavlina
Proposed branch: lp:~metacollin/kicad/yosemite_fix
Merge into: lp:kicad/product
Diff against target: 46 lines (+16/-10)
3 files modified
patches/wxwidgets-3.0.0_macosx_yosemite.patch (+15/-0)
patches/wxwidgets-3.0.2_macosx_yosemite.patch (+0/-10)
scripts/osx_build_wx.sh (+1/-0)
To merge this branch: bzr merge lp:~metacollin/kicad/yosemite_fix
Reviewer Review Type Date Requested Status
Chris Pavlina Needs Information
Review via email: mp+245369@code.launchpad.net

Description of the change

Building wx with the osx_build_wx.sh script fails if using the 10.10 OS X SDK, and while there was a patch for this, it was unsafe and would cause wx to build against the 10.10 SDK but fail against any previous versions. I removed that patch and replaced it with one that is safe and will build correctly against any SDK and can be applied automatically. I also added it to the osx_build_wx.sh script so it is applied, making a total of 4 patches instead of 3.

To post a comment you must log in.
lp:~metacollin/kicad/yosemite_fix updated
5340. By metacollin

Fixed permissions of the osx_build_wx.sh script

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Would one of the OSX developers please verify this merge request before I merge this into the product branch?

lp:~metacollin/kicad/yosemite_fix updated
5341. By metacollin

merged with latest revision

Revision history for this message
metacollin (metacollin) wrote :

I know this is a tiny tiny merge request patch, but I wanted to do something modest and small since I am very new to the project. I did test this against the 10.6-10.10 SDKs, as well as within a virtualized 10.8 environment and my own 10.10.2 system, using wx 3.0.0, 3.0.1.1, and 3.0.2.

It's not particularly sexy and rebuilding wx is probably not exactly an appealing proposition to the other OS X developers, but it should be noted that without this patch, one can only build kicad against the OS X 10.9 or earlier SDKs and there is no documentation included on dealing with this issue, so its definitely a very small fix, but pretty important.

Here ( http://trac.wxwidgets.org/ticket/16329 ) is more documentation about the issue. It's been fixed in the development branch of wx, but that release is a ways off, and introduces a ton of changes (like the addition of iOS support).

Also, apologies if such a small merge request like this is too small and kind of wasting everyone's time. I am new to collaborative development so I may unintentionally make a few faux pas until I figure things out.

I've also created a homebrew --HEAD only tap for kicad, and I'm currently pulling in the patch via gist,

> On Dec 30, 2014, at 9:17 AM, Wayne Stambaugh <email address hidden> wrote:
>
> Would one of the OSX developers please verify this merge request before I merge this into the product branch?
> --
> https://code.launchpad.net/~metacollin/kicad/yosemite_fix/+merge/245369
> You are the owner of lp:~metacollin/kicad/yosemite_fix.

Revision history for this message
Chris Pavlina (pavlina-chris) wrote :

Collin, is this still relevant, or should I close it?

review: Needs Information

Unmerged revisions

5341. By metacollin

merged with latest revision

5340. By metacollin

Fixed permissions of the osx_build_wx.sh script

5339. By metacollin

Added patch that safely patches wx to build regardless of which OS X SDK is being linked (including yosemite) and added this to the osx_build_wx.sh script.

5338. By metacollin

Added patch that safely patches wx to build regardless of which OS X SDK is being linked (including yosemite) and added this to the osx_build_wx.sh script.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'patches/wxwidgets-3.0.0_macosx_yosemite.patch'
2--- patches/wxwidgets-3.0.0_macosx_yosemite.patch 1970-01-01 00:00:00 +0000
3+++ patches/wxwidgets-3.0.0_macosx_yosemite.patch 2015-01-03 23:57:37 +0000
4@@ -0,0 +1,15 @@
5+--- src/osx/webview_webkit.mm.orig 2014-12-20 00:23:39.000000000 -0700
6++++ src/osx/webview_webkit.mm 2014-12-20 00:35:03.000000000 -0700
7+@@ -28,7 +28,12 @@
8+ #include "wx/hashmap.h"
9+ #include "wx/filesys.h"
10+
11++#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101000
12++#include <WebKit/WebKitLegacy.h>
13++#else
14+ #include <WebKit/WebKit.h>
15++#endif
16++
17+ #include <WebKit/HIWebView.h>
18+ #include <WebKit/CarbonUtils.h>
19+
20
21=== removed file 'patches/wxwidgets-3.0.2_macosx_yosemite.patch'
22--- patches/wxwidgets-3.0.2_macosx_yosemite.patch 2014-12-08 17:40:38 +0000
23+++ patches/wxwidgets-3.0.2_macosx_yosemite.patch 1970-01-01 00:00:00 +0000
24@@ -1,10 +0,0 @@
25---- src/osx/webview_webkit.mm.orig 2014-09-16 07:27:52.000000000 -0600
26-+++ src/osx/webview_webkit.mm 2014-09-16 07:28:12.000000000 -0600
27-@@ -28,7 +28,7 @@
28- #include "wx/hashmap.h"
29- #include "wx/filesys.h"
30-
31--#include <WebKit/WebKit.h>
32-+#include <WebKit/WebKitLegacy.h>
33- #include <WebKit/HIWebView.h>
34- #include <WebKit/CarbonUtils.h>
35
36=== modified file 'scripts/osx_build_wx.sh' (properties changed: -x to +x)
37--- scripts/osx_build_wx.sh 2014-11-28 17:34:00 +0000
38+++ scripts/osx_build_wx.sh 2015-01-03 23:57:37 +0000
39@@ -140,6 +140,7 @@
40 doPatch "$1" "$3/patches/wxwidgets-3.0.0_macosx.patch"
41 doPatch "$1" "$3/patches/wxwidgets-3.0.0_macosx_bug_15908.patch"
42 doPatch "$1" "$3/patches/wxwidgets-3.0.0_macosx_soname.patch"
43+doPatch "$1" "$3/patches/wxwidgets-3.0.0_macosx_yosemite.patch"
44
45 # configure and build wxWidgets
46 wxWidgets_configure "$1" "$2" "$4"