From e23492ce36ff9e5b68d08d448232e1d3442bba2f Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Tue, 10 Jun 2025 23:07:35 +0200 Subject: [PATCH] media-sound/cantata: fix ODR violations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Part-of: https://github.com/gentoo/gentoo/pull/42541 Closes: https://github.com/gentoo/gentoo/pull/42541 Signed-off-by: Sam James --- media-sound/cantata/cantata-3.3.0.ebuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/media-sound/cantata/cantata-3.3.0.ebuild b/media-sound/cantata/cantata-3.3.0.ebuild index 0eead19fecd02..d0302a32da070 100644 --- a/media-sound/cantata/cantata-3.3.0.ebuild +++ b/media-sound/cantata/cantata-3.3.0.ebuild @@ -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() {