Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2024 22:34:04 GMT
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 74ae766765f2 - 2024Q4 - audio/alsa-plugins: Fix build with JACK option: use of undeclared identifier 'program_invocation_short_name'
Message-ID:  <202410172234.49HMY42I050597@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2024Q4 has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=74ae766765f218beaee33a4dac47413d58efdf21

commit 74ae766765f218beaee33a4dac47413d58efdf21
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-10-17 22:27:28 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-10-17 22:33:38 +0000

    audio/alsa-plugins: Fix build with JACK option: use of undeclared identifier 'program_invocation_short_name'
    
    pcm_jack.c:606:23: error: use of undeclared identifier 'program_invocation_short_name'
      606 |                 const char *pname = program_invocation_short_name;
          |                                     ^
    1 error generated.
    
    Upstream broke build on FreeBSD in commit:
    https://github.com/alsa-project/alsa-plugins/commit/13a645e55a740dfa43bb3518da3f580c90be7eac
    Pool request:
    https://github.com/alsa-project/alsa-plugins/pull/48
    
    PR:             280144
    Reported by:    Peter Much <pmc@citylink.dinoex.sub.org>
    Tested by:      Peter Much <pmc@citylink.dinoex.sub.org>
    Fixes:          1a782b315786 (update 1.2.7.1 → 1.2.12)
    MFH:            2024Q4
    
    (cherry picked from commit 65906cb5ed4261a7cb92f3fd08e75ee08ef159a1)
---
 audio/alsa-plugins/files/patch-jack_pcm__jack.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/audio/alsa-plugins/files/patch-jack_pcm__jack.c b/audio/alsa-plugins/files/patch-jack_pcm__jack.c
new file mode 100644
index 000000000000..fbe4dc2f06bd
--- /dev/null
+++ b/audio/alsa-plugins/files/patch-jack_pcm__jack.c
@@ -0,0 +1,11 @@
+--- jack/pcm_jack.c.orig	2024-06-10 09:18:39 UTC
++++ jack/pcm_jack.c
+@@ -602,7 +602,7 @@ static int snd_pcm_jack_open(snd_pcm_t **pcmp, const c
+ 	}
+ 
+ 	if (client_name == NULL) {
+-#if defined(_GNU_SOURCE)
++#if defined(_GNU_SOURCE) && defined(__linux__)
+ 		const char *pname = program_invocation_short_name;
+ #else
+ 		const char *pname = getprogname();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410172234.49HMY42I050597>