File: 0004-dssi.h-include-asoundlib.h.patch

package info (click to toggle)
dssi 1.1.1~dfsg0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,164 kB
  • sloc: sh: 11,006; ansic: 3,887; cpp: 1,364; perl: 191; makefile: 164
file content (35 lines) | stat: -rw-r--r-- 1,520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Andreas Henriksson <andreas@fatal.se>
Date: Tue, 15 Apr 2025 20:03:42 +0200
Subject: dssi.h: include asoundlib.h

```
make[3]: Entering directory '/<<PKGBUILDDIR>>/tests'
gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -DDEFAULT_DSSI_PATH=\"/usr/local/lib/dssi:/usr/lib/x86_64-linux-gnu/dssi:/usr/lib/dssi\" -Wall -Werror -I../dssi  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -c -o controller-controller.o `test -f 'controller.c' || echo './'`controller.c
In file included from ../dssi/dssi.h:28,
                 from controller.c:18:
/usr/include/alsa/seq_event.h:30:2: error: #warning "use #include <alsa/asoundlib.h>, <alsa/seq_event.h> should not be used directly" [-Werror=cpp]
   30 | #warning "use #include <alsa/asoundlib.h>, <alsa/seq_event.h> should not be used directly"
      |  ^~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:612: controller-controller.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
```

See https://bugs.debian.org/1103187
---
 dssi/dssi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dssi/dssi.h b/dssi/dssi.h
index fe4a20b..d8a8aee 100644
--- a/dssi/dssi.h
+++ b/dssi/dssi.h
@@ -25,7 +25,7 @@
 #define DSSI_INCLUDED
 
 #include <ladspa.h>
-#include <alsa/seq_event.h>
+#include <alsa/asoundlib.h>
 
 #define DSSI_VERSION "1.0"
 #define DSSI_VERSION_MAJOR 1