[MacPorts] #69832: phonon-qt5: please update the port so that it builds on Sonoma

MacPorts noreply at macports.org
Fri Apr 26 13:43:13 UTC 2024


#69832: phonon-qt5: please update the port so that it builds on Sonoma
--------------------------------------------------+-----------------------
  Reporter:  barracuda156                         |      Owner:  michaelld
      Type:  defect                               |     Status:  assigned
  Priority:  Normal                               |  Milestone:
 Component:  ports                                |    Version:  2.9.3
Resolution:                                       |   Keywords:  sonoma
      Port:  phonon-qt5, kde-extra-cmake-modules  |
--------------------------------------------------+-----------------------

Comment (by RJVB):

 Indeed, it uses the system compiler, which apparently has a builtin
 `-Werror=enum-constexpr-conversion` because neither phonon nor the current
 ECM set any flag that has that effect.

 Could you try adding `-Wno-error=enum-constexpr-conversion` (e.g. building
 with `configure.optflags=-Wno-error=enum-constexpr-conversion` and see if
 that leads to a working Phonon install? If that works the flag can be
 added in the Portfile, but it will need to be clang-specific. If you're
 adventurous you could even see if the port builds "as is" using GCC 12
 (sic) and `cxx_stdlib=libc++` ;)

 I see that the errors occur during the "moc" compilation step. It's not
 impossible that the compiler is in fact raising false alarms about
 improperly initialised variables *during that step*, while those values
 never occur at runtime. If they did and it was an actual problem we should
 see it on older systems too.

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


More information about the macports-tickets mailing list