git: 65906cb5ed42 - main - audio/alsa-plugins: Fix build with JACK option: use of undeclared identifier 'program_invocation_short_name'
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Oct 2024 22:32:36 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=65906cb5ed4261a7cb92f3fd08e75ee08ef159a1
commit 65906cb5ed4261a7cb92f3fd08e75ee08ef159a1
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:32:14 +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
---
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();