media-sound/cantata: fix ODR violations

fix multiple ODR violations with cddb or udisks enabled.
Move enums into class scope in headers.

> online/podcastsearchdialog.cpp:67:6:
> error: type ‘Roles’ violates the C++ One Definition Rule
> devices/albumdetailsdialog.cpp:311:6:
> note: an enum with different value name is defined in another translation unit
> gui/initialsettingswizard.cpp:44:6:
> error: type ‘Pages’ violates the C++ One Definition Rule
> devices/actiondialog.cpp:68:6:
> note: an enum with different value name is defined in another translation unit

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/42541
Closes: https://github.com/gentoo/gentoo/pull/42541
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-06-12 12:08:42 +01:00
committed by Sam James
parent ec2f88274c
commit e23492ce36
+3
View File
@@ -58,6 +58,9 @@ PATCHES=(
"${FILESDIR}"/${PN}-3.3.0-rm-vendor.patch
# https://github.com/nullobsi/cantata/pull/51.patch
"${FILESDIR}"/${PN}-3.3.0-cdparanoia.patch
# Fix ODR violations with cddb or udisks enabled
# https://github.com/nullobsi/cantata/pull/71.patch
"${FILESDIR}"/${PN}-3.3.0-fix_odr.patch
)
src_prepare() {