From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A0BA15800A for ; Sat, 22 Jul 2023 06:38:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9ADC7E0849; Sat, 22 Jul 2023 06:38:02 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 81742E0849 for ; Sat, 22 Jul 2023 06:38:02 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 78A34340BC1 for ; Sat, 22 Jul 2023 06:38:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B76EBA74 for ; Sat, 22 Jul 2023 06:37:59 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1690007871.84011e51778257bb65cfce4adde9833f64ed596c.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/audacious/, media-sound/audacious/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/audacious/audacious-4.3.1.ebuild media-sound/audacious/files/audacious-enum-backporting.patch X-VCS-Directories: media-sound/audacious/files/ media-sound/audacious/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 84011e51778257bb65cfce4adde9833f64ed596c X-VCS-Branch: master Date: Sat, 22 Jul 2023 06:37:59 +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: 959b397a-b28a-4d51-89ec-af8fa2a29e0a X-Archives-Hash: c52811bf2333e60350fb1b3b2e7467f9 commit: 84011e51778257bb65cfce4adde9833f64ed596c Author: x7upLime andrewdomain com> AuthorDate: Thu Jul 20 23:09:47 2023 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Sat Jul 22 06:37:51 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84011e51 media-sound/audacious: VFS_SEEK enum backporting backported from: https://github.com/audacious-media-player/audacious/pull/64 Closes: https://bugs.gentoo.org/896412 Signed-off-by: Andrei Corduneanu andrewdomain.com> Closes: https://github.com/gentoo/gentoo/pull/31980 Signed-off-by: Miroslav Šulc gentoo.org> media-sound/audacious/audacious-4.3.1.ebuild | 4 +++ .../files/audacious-enum-backporting.patch | 35 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/media-sound/audacious/audacious-4.3.1.ebuild b/media-sound/audacious/audacious-4.3.1.ebuild index ee999ce83200..591c2b60ab94 100644 --- a/media-sound/audacious/audacious-4.3.1.ebuild +++ b/media-sound/audacious/audacious-4.3.1.ebuild @@ -33,6 +33,10 @@ PDEPEND="~media-plugins/audacious-plugins-${PV}" S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}"/${PN}-enum-backporting.patch +) + src_prepare() { default if ! use nls; then diff --git a/media-sound/audacious/files/audacious-enum-backporting.patch b/media-sound/audacious/files/audacious-enum-backporting.patch new file mode 100644 index 000000000000..66bb959f737e --- /dev/null +++ b/media-sound/audacious/files/audacious-enum-backporting.patch @@ -0,0 +1,35 @@ +From 3989bafcb7a8843cef4e25875cd6c0e72680ad80 Mon Sep 17 00:00:00 2001 +From: Guido Falsi +Date: Wed, 28 Jun 2023 15:42:37 +0200 +Subject: [PATCH] Add missing enum value. + +New versions of the clang compiler have strict checks for enum values. + +The value "-1" is returned as a last resort from to_vfs_seek_type() as a VFSSeekType. + +Replace usage of `-1` with the new enum name. +--- + src/libaudcore/vfs.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/libaudcore/vfs.h b/src/libaudcore/vfs.h +index 33c5a65c97..f6a1dd3f23 100644 +--- a/src/libaudcore/vfs.h ++++ b/src/libaudcore/vfs.h +@@ -51,6 +51,7 @@ enum VFSReadOptions + + enum VFSSeekType + { ++ VFS_SEEK_INVALID = -1, + VFS_SEEK_SET = 0, + VFS_SEEK_CUR = 1, + VFS_SEEK_END = 2 +@@ -75,7 +76,7 @@ constexpr VFSSeekType to_vfs_seek_type(int whence) + ? VFS_SEEK_SET + : (whence == SEEK_CUR) + ? VFS_SEEK_CUR +- : (whence == SEEK_END) ? VFS_SEEK_END : (VFSSeekType)-1; ++ : (whence == SEEK_END) ? VFS_SEEK_END : VFS_SEEK_INVALID; + } + + #endif // WANT_VFS_STDIO_COMPAT