-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
wxmac: disable monolithic build; erlang: build with wx support #26982
Conversation
10.9 build error here is unrelated and known. |
I need this too. I have to manually edit some makefile under wx in the erlang git source tree to get it to build. re-build wxmac takes very long time. |
Getting an Erlang build failure on Lion; possibly due to a race condition in install? The install is deparallelized so I'm not sure what's going on here. |
@BrewTestBot test this please |
Erlang built this time, but not last time, so it would appear that the build step still has a (potentially rare) race condition, and should be reported upstream and run under This is sad, though, since building Erlang takes a very long time even with full use of cores. |
I've updated this with a wxMac bottle. Now would be a good time to put some eyes on the code changes. |
Using the provided wxmac bottle, the wxpython bindings build and pass |
# need to enable universal binary build in order to build all x86_64 headers | ||
# need to specify x86_64 and i386 or will try to build for ppc arch and fail on newer OSes | ||
# need to enable universal binary build in order to build all x86_64 | ||
# headers need to specify x86_64 and i386 or will try to build for ppc arch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the first two lines were supposed to be separate thoughts.
This looks good to me. |
Should the wxmac patches still be included? |
Which patches? I haven't pushed anything yet. |
Might have happened when you rebased my older wxmac branch (which is from before the patch was added) - the current wxmac formula has a patch that's removed in your version of my commit. |
Oh right, good catch! |
Rebuilding the bottle with the patch. |
Thanks! |
Tested with a wxpython app (Twine, not via app bundle) and it works, BTW! |
Erlang passed a wx smoke test as well. |
I seem to be stuck, the uploaded wxmac bottle may not match the most recently built one |
Looks correct locally though:
|
@adamv Weird intermittent SF issue with new bottles. It only seems to happen in the first e.g. 24H. Perhaps I should tell the bot to always use a particular mirror or something. I'll SSH in and do a fetch. Also, can someone remind me why we're splitting these up? |
|
||
depends_on :python | ||
depends_on FrameworkPython | ||
depends_on 'wxmac' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use double-quotes everywhere now.
We're splitting them explicitly so we can bottle wxmac. |
@adamv I realise I should have said this earlier but we might want to hold-off on this. This applies to a bunch of widely-used packages like e.g. |
I think we want to split the wxPython build out anyway, since many things depend on wx without needing the Python bindings, which themselves also take a long time to compile. |
A note on the change of wx to build --disable-monolithic: MacPorts seems to get saga to build with this option, though it may be applying a patch. I can't build saga locally though due to:
|
@MikeMcQuaid if you think a Python bottling solution is coming "soon", I can hold off on this, otherwise I'd rather see this start to go in. |
@adamv I think it is. I'll create an issue. |
I'll pull the wxpython/bottle changes out of here and just test the wx/erlang ones. |
More software requires non-monolithic builds than the other way around Closes #26624.
@MikeMcQuaid I changed this originally because the wxpython bindings take a good fifteen minutes to build and 60MB of space on disk. There's no reason to ask users who don't want wxpython to use them just because we think they should come in the same package. (They don't come in the same package upstream, and it was always a weird decision on our part to forcibly bundle them together.) I'd been testing rebuilding both wxmac and wxpython independently of each other, and being forced to rebuild wxmac (30-40 minutes) just to test changes to wxpython was really, really painful. Even if we have a python bottling solution coming soon, I would still want us to make this change - we'd just end up bottling wxpython as its own formula. |
@mistydemeo If they don't come in the same upstream package I'm OK with them being separated. Apologies for the unnecessary intervention. |
Continuing in #27116. |
No description provided.