[MacPorts] #66151: vte-0.56.4 fails to compile on macOS 13 arm64
MacPorts
noreply at macports.org
Mon Feb 13 08:34:09 UTC 2023
#66151: vte-0.56.4 fails to compile on macOS 13 arm64
-------------------------+----------------------
Reporter: miklosakos | Owner: dbevans
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: vte |
-------------------------+----------------------
Comment (by hexane360):
I've found a solution. The following patch fixes the problem in
src/vtetypebuiltins.cc.template:
{{{
--- src/vtetypebuiltins.cc.template 2023-02-13 03:29:03
+++ src/vtetypebuiltins.cc.template.orig 2023-02-13 03:28:48
@@ -11,7 +11,7 @@
GType
@enum_name at _get_type (void)
{
- static gsize g_define_type_id__volatile = 0;
+ static volatile gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile)) {
static const G at Type@Value values[] = {
}}}
All it needs is logic to patch only on Ventura and higher, and then it can
be merged.
The root cause is Apple changed the calling convention of __atomic_load.
Gstreamer had the same problem with the Ventura update.
--
Ticket URL: <https://trac.macports.org/ticket/66151#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list