[MacPorts] #54346: glib2 @2.52.2 fails to build on macOS <= 10.8
MacPorts
noreply at macports.org
Mon Jun 19 00:20:57 UTC 2017
#54346: glib2 @2.52.2 fails to build on macOS <= 10.8
----------------------+------------------------
Reporter: rlhamil | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Resolution: | Keywords:
Port: glib2 |
----------------------+------------------------
Comment (by kencu):
Looks like it might be not too difficult to fix for older systems. In the
file of note `gio/giomodule.c`, they now have this:
{{{
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
extern GType g_cocoa_notification_backend_get_type (void);
#endif
}}}
so I tried just disabling the patch completely
{{{
if {[vercmp ${macosx_deployment_target} 10.9] < 0} {
# gcocoanotificationbackend requires OS X 10.9 or later.
# patchfiles-append remove-gcocoanotificationbackend.patch
} else {
# gcocoanotificationbackend.c:115:52: error: array subscript is not an
integer
compiler.blacklist-append {clang < 600}
}
}}}
and it installed without issue:
{{{
$ port -v installed glib2
The following ports are currently installed:
glib2 @2.50.3_0+universal platform='darwin 10' archs='i386 x86_64'
date='2017-02-15T12:56:54-0800'
glib2 @2.52.2_1+universal+x11 (active) platform='darwin 10' archs='i386
x86_64' date='2017-06-18T17:12:39-0700'
}}}
I don't know about the +quartz variant, all my glib2 stuff is not
installed that way. Someone want to try?
I assume we still will need to set the compiler blacklisting for systems
10.9 or later. My 10.6 system is building with clang-3.9 so I don't know
exactly what the minimum compiler would need to be.
--
Ticket URL: <https://trac.macports.org/ticket/54346#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list