[MacPorts] #63462: glib2 @2.62.6_1: ERROR: Value "gnu89" (of type "string") for combo option "C language standard to use" is not one of the choices
MacPorts
noreply at macports.org
Wed Sep 8 16:23:34 UTC 2021
#63462: glib2 @2.62.6_1: ERROR: Value "gnu89" (of type "string") for combo option
"C language standard to use" is not one of the choices
---------------------------+--------------------
Reporter: snarkhunter | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: glib2, meson |
---------------------------+--------------------
Comment (by kencu):
OK, it look like the issue is here in
{{{
mesonbuild/compilers/objc.py
}}}
they have (incorrectly I believe) excluded gnu89 from the available
options for the C std.
If we can verify somehow to them that gnu89 should be an accepted option
for Obj-C, then perhaps they can add it.
Or we can patch it in as an accepted option ourselves, as it was
(apparently) previously accepted.
{{{
def get_options(self) -> 'coredata.KeyedOptionDictType':
opts = super().get_options()
opts.update({
OptionKey('std', machine=self.for_machine, lang='c'):
coredata.UserComboOption(
'C language standard to use',
['none', 'c89', 'c99', 'c11', 'c17', 'gnu99', 'gnu11'],
'none',
)
})
return opts
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63462#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list