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/, media-libs/alsa-lib/files/
Date: Thu, 06 Feb 2025 22:11:00 +0000 (UTC)	[thread overview]
Message-ID: <1738879823.653518e17eb50cd761d04f3974209af9ec2c1358.sam@gentoo> (raw)

commit:     653518e17eb50cd761d04f3974209af9ec2c1358
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  6 22:10:23 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb  6 22:10:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=653518e1

media-libs/alsa-lib: further test/header fixes

Closes: https://bugs.gentoo.org/944447
Closes: https://bugs.gentoo.org/946562
Closes: https://bugs.gentoo.org/949127
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...-1.2.13-r1.ebuild => alsa-lib-1.2.13-r2.ebuild} |  8 +++--
 .../files/alsa-lib-1.2.13-headers-again.patch      | 40 ++++++++++++++++++++++
 2 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/media-libs/alsa-lib/alsa-lib-1.2.13-r1.ebuild b/media-libs/alsa-lib/alsa-lib-1.2.13-r2.ebuild
similarity index 92%
rename from media-libs/alsa-lib/alsa-lib-1.2.13-r1.ebuild
rename to media-libs/alsa-lib/alsa-lib-1.2.13-r2.ebuild
index 8b47c423b17e..9248789746ba 100644
--- a/media-libs/alsa-lib/alsa-lib-1.2.13-r1.ebuild
+++ b/media-libs/alsa-lib/alsa-lib-1.2.13-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -35,7 +35,8 @@ BDEPEND="doc? ( >=app-text/doxygen-1.2.6 )"
 PATCHES=(
 	"${FILESDIR}/${PN}-1.1.6-missing_files.patch" # bug #652422
 	"${FILESDIR}/${PN}-1.2.13-update-symbol-name.patch" # bug #943399
-	"${FILESDIR}/${PN}-1.2.13-seq-ump-headers.patch" # bug #943696
+	"${FILESDIR}/${P}-seq-ump-headers.patch" # bug #943696
+	"${FILESDIR}/${P}-headers-again.patch"
 )
 
 pkg_setup() {
@@ -53,6 +54,9 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+	# Tests fail to build w/ C23 (bug #944447)
+	append-cflags -std=gnu17
+
 	# Broken upstream. Could in theory work with -flto-partitions=none
 	# but it's a hack to workaround the real problem and not strictly safe.
 	# bug #616108, bug #669086, and https://github.com/alsa-project/alsa-lib/issues/6.

diff --git a/media-libs/alsa-lib/files/alsa-lib-1.2.13-headers-again.patch b/media-libs/alsa-lib/files/alsa-lib-1.2.13-headers-again.patch
new file mode 100644
index 000000000000..ee666cd56fe7
--- /dev/null
+++ b/media-libs/alsa-lib/files/alsa-lib-1.2.13-headers-again.patch
@@ -0,0 +1,40 @@
+https://bugs.gentoo.org/949127
+https://bugs.gentoo.org/946562
+https://bugs.gentoo.org/944447
+https://github.com/alsa-project/alsa-lib/issues/430
+https://github.com/alsa-project/alsa-lib/issues/436
+https://github.com/alsa-project/alsa-lib/commit/c8bc54a9cae3d5080dc7a298aee573b10f2bbf62
+
+From c8bc54a9cae3d5080dc7a298aee573b10f2bbf62 Mon Sep 17 00:00:00 2001
+From: Jaroslav Kysela <perex@perex.cz>
+Date: Sun, 2 Feb 2025 19:18:25 +0100
+Subject: [PATCH] test/playmidi1: fix compilation caused by conflict between
+ midifile.h and ump_msg.h
+
+It's a fast fix. The better way is to fix midifile.h or remote this example
+(we have already some
+
+Closes: https://github.com/alsa-project/alsa-lib/issues/436
+Signed-off-by: Jaroslav Kysela <perex@perex.cz>
+---
+ test/playmidi1.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/test/playmidi1.c b/test/playmidi1.c
+index 831e95783..286aaa86e 100644
+--- a/test/playmidi1.c
++++ b/test/playmidi1.c
+@@ -45,10 +45,11 @@
+ #include <errno.h>
+ #include <string.h>
+ 
++#include "../include/asoundlib.h"
++
+ #include "midifile.h"		/* SMF library header */
+ #include "midifile.c"		/* SMF library code */
+ 
+-#include "../include/asoundlib.h"
+ 
+ /* send the real-time time stamps (instead of midi ticks) to the ALSA sequencer */
+ static int use_realtime = 0;
+


             reply	other threads:[~2025-02-06 22:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-06 22:11 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-04 17:37 [gentoo-commits] repo/gentoo:master commit in: media-libs/alsa-lib/, media-libs/alsa-lib/files/ Andreas Sturmlechner
2024-02-17  6:40 Sam James
2023-09-15  4:33 Sam James
2023-09-07 14:48 Sam James
2022-06-01  7:21 Lars Wendler
2021-05-28  1:41 Sam James
2020-05-02 17:12 Andreas Sturmlechner
2020-02-20 15:49 Lars Wendler
2019-11-25 21:14 Lars Wendler
2018-04-05 11:50 Lars Wendler
2017-05-18 11:44 Lars Wendler
2015-10-08 17:16 Mike Frysinger

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=1738879823.653518e17eb50cd761d04f3974209af9ec2c1358.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