From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6456D1581EE for ; Sun, 23 Mar 2025 14:30:39 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 515CA343467 for ; Sun, 23 Mar 2025 14:30:39 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8B7281104B1; Sun, 23 Mar 2025 14:30:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 84CED1104B1 for ; Sun, 23 Mar 2025 14:30:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 306543433E5 for ; Sun, 23 Mar 2025 14:30:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5B2032865 for ; Sun, 23 Mar 2025 14:30:27 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1742740203.c3606034c797c49e4b4d844e44cea8a655449f68.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/gwenview/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/gwenview/files/gwenview-24.08.0-odr.patch X-VCS-Directories: kde-apps/gwenview/files/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: c3606034c797c49e4b4d844e44cea8a655449f68 X-VCS-Branch: master Date: Sun, 23 Mar 2025 14:30:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 08ab5940-bc3d-4ae9-8e04-c9f3bd4521c2 X-Archives-Hash: 8e78797abd76aac0097bc530f3c1ac1d commit: c3606034c797c49e4b4d844e44cea8a655449f68 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Wed Mar 12 07:22:37 2025 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Mar 23 14:30:03 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3606034 kde-apps/gwenview: remove unused patch(es) Signed-off-by: Michael Mair-Keimberger levelnine.at> Signed-off-by: Conrad Kostecki gentoo.org> kde-apps/gwenview/files/gwenview-24.08.0-odr.patch | 58 ---------------------- 1 file changed, 58 deletions(-) diff --git a/kde-apps/gwenview/files/gwenview-24.08.0-odr.patch b/kde-apps/gwenview/files/gwenview-24.08.0-odr.patch deleted file mode 100644 index 148921f18169..000000000000 --- a/kde-apps/gwenview/files/gwenview-24.08.0-odr.patch +++ /dev/null @@ -1,58 +0,0 @@ -From b5cc214574eeb62f469a058daf52cd92270e4aa9 Mon Sep 17 00:00:00 2001 -From: Eli Schwartz -Date: Tue, 3 Sep 2024 00:40:11 -0400 -Subject: [PATCH] fix ODR violation: many files had the wrong definition of - Enum -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -This enum has a different number of values, depending on whether -gwenview is configured with the semanticinfo backend "none" or -fake/baloo. - -In order to avoid Undefined Behavior, every file that includes sorting.h -also has to include config-gwenview.h *before* sorting.h, which was not -true. Solve this by including the config header inside the sorting.h -header. - -Fixes link failures when LTO is enabled, since LTO allows the compiler -to do whole-program optimization and type-check across the entire -program: - -``` -/var/tmp/portage/kde-apps/gwenview-24.08.0/work/gwenview-24.08.0/app/../lib/sorting.h:37:6: error: type ‘Gwenview::Sorting::Enum’ violates the C++ One Definition Rule [-Werror=odr] - 37 | enum Enum { - | ^ -/var/tmp/portage/kde-apps/gwenview-24.08.0/work/gwenview-24.08.0/app/../lib/sorting.h:37:6: note: an enum with different number of values is defined in another translation unit - 37 | enum Enum { - | ^ -lto1: some warnings being treated as errors -lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status -compilation terminated. -/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: error: lto-wrapper failed -collect2: error: ld returned 1 exit status -``` - -Fixes: https://bugs.gentoo.org/921649 ---- - lib/sorting.h | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/lib/sorting.h b/lib/sorting.h -index 529ea6fc9..c008865cf 100644 ---- a/lib/sorting.h -+++ b/lib/sorting.h -@@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA - #ifndef SORTING_H - #define SORTING_H - -+// Do not assume every file that includes this one, includes the config.h -+#include -+ - // Qt - - // KF --- -GitLab -