[MacPorts] #64677: libass fix for PowerPC (please close the ticket, fix unneeded) (was: libass fix for PowerPC)

MacPorts noreply at macports.org
Wed Feb 16 17:08:13 UTC 2022


#64677: libass fix for PowerPC (please close the ticket, fix unneeded)
---------------------------+-----------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  enhancement   |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  PowerPC, ppc, Leopard
      Port:  libass        |
---------------------------+-----------------------------------
Description changed by barracuda156:

Old description:

> 1. Portfile must invoke `macports-gcc-7`, as `gcc-4.2` fails to build it.
> Adding this works:
>
> {{{
> compiler.whitelist macports-gcc-7
> }}}
>
> Otherwise (and perhaps better) we can just ban `gcc-4.0` and `gcc-4.2`.
>
> 2. There is one problem with the source in `ass_coretext.c`:
>
> {{{
> static bool is_postscript_font_format(CFNumberRef cfformat)
> {
>     bool ret = false;
>     int format;
>     if (CFNumberGetValue(cfformat, kCFNumberIntType, &format)) {
>         ret = format == kCTFontFormatOpenTypePostScript ||
>               format == kCTFontFormatPostScript;
>     }
>     return ret;
> }
> }}}
>
> Once kCTFontFormatOpenTypePostScript is removed, libass builds. I am not
> sure it is an optimal fix though.
> Opened a ticket here: https://github.com/libass/libass/issues/595

New description:

 UPD. Sorry, it failed before due to unrelated problem, it seems. It does
 build with gcc7:


 {{{
 36-47:~ svacchanda$ port -v installed libass
 The following ports are currently installed:
   libass @0.15.2_0 (active) requested_variants='-universal'
 platform='darwin 9' archs='ppc' date='2022-02-17T01:04:05+0800'
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/64677#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list