public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/alsa-lib/files/, media-libs/alsa-lib/
Date: Sun, 30 Oct 2022 20:41:48 +0000 (UTC)	[thread overview]
Message-ID: <1667162493.3a7adf6acb026dd53e261d25d6de947f2314b04e.sam@gentoo> (raw)

commit:     3a7adf6acb026dd53e261d25d6de947f2314b04e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 30 18:17:40 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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 <sam@gentoo.org>
+Date: Sun, 30 Oct 2022 18:06:37 +0000
+Subject: [PATCH] utils/alsa.m4: include <stdlib.h> for exit()
+
+Clang 16 makes -Wimplicit-function-declaration an error by default
+and it's easier to just explicitly include <stdlib.h> rather
+than hope the ALSA headers always have it.
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- 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 <alsa/asoundlib.h>
++#include <stdlib.h>
+ ]], [[
+ /* 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 <alsa/asoundlib.h>
+ #include <alsa/topology.h>
++#include <stdlib.h>
+ ]], [[
+ /* ensure backward compatibility */
+ #if !defined(SND_LIB_VERSION)
+


             reply	other threads:[~2022-10-30 20:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-30 20:41 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-15 17:53 [gentoo-commits] repo/gentoo:master commit in: media-libs/alsa-lib/files/, media-libs/alsa-lib/ Sam James
2024-12-15 16:38 Sam James
2024-11-23 17:37 Sam James
2024-01-28 17:35 Matt Turner
2023-12-13  1:54 Sam James
2023-09-07 14:48 Sam James
2021-06-16 17:17 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1667162493.3a7adf6acb026dd53e261d25d6de947f2314b04e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox