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 C4EC8158020 for ; Sun, 30 Oct 2022 20:41:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EAA3AE0817; Sun, 30 Oct 2022 20:41:50 +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 pigeon.gentoo.org (Postfix) with ESMTPS id BA16BE07EA for ; Sun, 30 Oct 2022 20:41:50 +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 BF6FA340DDF for ; Sun, 30 Oct 2022 20:41:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D14A622 for ; Sun, 30 Oct 2022 20:41:48 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1667162493.3a7adf6acb026dd53e261d25d6de947f2314b04e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/alsa-lib/files/, media-libs/alsa-lib/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/alsa-lib/alsa-lib-1.2.8-r1.ebuild media-libs/alsa-lib/alsa-lib-1.2.8.ebuild media-libs/alsa-lib/files/alsa-lib-1.2.8-clang16-macro.patch X-VCS-Directories: media-libs/alsa-lib/files/ media-libs/alsa-lib/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3a7adf6acb026dd53e261d25d6de947f2314b04e X-VCS-Branch: master Date: Sun, 30 Oct 2022 20:41:48 +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: f097cb46-fab5-4495-be10-4be5e7557330 X-Archives-Hash: 8826509fa066385c8a5ee00c6fbd6bee commit: 3a7adf6acb026dd53e261d25d6de947f2314b04e Author: Sam James gentoo org> AuthorDate: Sun Oct 30 18:17:40 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Oct 30 20:41:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a7adf6a media-libs/alsa-lib: fix alsa.m4 for clang 16 Signed-off-by: Sam James gentoo.org> ...a-lib-1.2.8.ebuild => alsa-lib-1.2.8-r1.ebuild} | 1 + .../files/alsa-lib-1.2.8-clang16-macro.patch | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/media-libs/alsa-lib/alsa-lib-1.2.8.ebuild b/media-libs/alsa-lib/alsa-lib-1.2.8-r1.ebuild similarity index 98% rename from media-libs/alsa-lib/alsa-lib-1.2.8.ebuild rename to media-libs/alsa-lib/alsa-lib-1.2.8-r1.ebuild index ea97e535b5f7..60c8f343db4e 100644 --- a/media-libs/alsa-lib/alsa-lib-1.2.8.ebuild +++ b/media-libs/alsa-lib/alsa-lib-1.2.8-r1.ebuild @@ -34,6 +34,7 @@ BDEPEND="doc? ( >=app-doc/doxygen-1.2.6 )" PATCHES=( "${FILESDIR}/${PN}-1.1.6-missing_files.patch" # bug #652422 + "${FILESDIR}/${PN}-1.2.8-clang16-macro.patch" ) pkg_setup() { diff --git a/media-libs/alsa-lib/files/alsa-lib-1.2.8-clang16-macro.patch b/media-libs/alsa-lib/files/alsa-lib-1.2.8-clang16-macro.patch new file mode 100644 index 000000000000..c74a7cc73e26 --- /dev/null +++ b/media-libs/alsa-lib/files/alsa-lib-1.2.8-clang16-macro.patch @@ -0,0 +1,31 @@ +https://github.com/alsa-project/alsa-lib/pull/278 + +From 68a233404279366f7c7e34afb6197bcc70f4b7d7 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 30 Oct 2022 18:06:37 +0000 +Subject: [PATCH] utils/alsa.m4: include for exit() + +Clang 16 makes -Wimplicit-function-declaration an error by default +and it's easier to just explicitly include rather +than hope the ALSA headers always have it. + +Signed-off-by: Sam James +--- a/utils/alsa.m4 ++++ b/utils/alsa.m4 +@@ -85,6 +85,7 @@ AC_LANG_PUSH([C]) + AC_MSG_CHECKING([for libasound headers version >= $alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version ($min_alsa_version)]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include ++#include + ]], [[ + /* ensure backward compatibility */ + #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) +@@ -130,6 +131,7 @@ AC_MSG_CHECKING([for libatopology (sound headers version > 1.1.9)]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include + #include ++#include + ]], [[ + /* ensure backward compatibility */ + #if !defined(SND_LIB_VERSION) +