Skip to content

Commit 8ec1a01

Browse files
committed
fix(alsa-lib)
closes #11250
1 parent bb3fc97 commit 8ec1a01

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

projects/alsa-project.org/alsa-lib/package.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ platforms:
1313
- linux
1414

1515
build:
16+
dependencies:
17+
kernel.org/linux-headers: '>=5.9' # for close_range(), since 1.2.15
1618
script:
1719
- ./configure $ARGS
1820
- make --jobs {{ hw.concurrency }} install
@@ -26,11 +28,21 @@ build:
2628
CFLAGS:
2729
# undefined symbol errors in newer llvms prevent building shared libs
2830
- -Wl,--undefined-version
31+
# undeclared function 'close_range'
32+
- -isystem {{deps.kernel.org/linux-headers.prefix}}/include
2933

3034
provides:
3135
- bin/aserver
3236

3337
test:
34-
script:
35-
- cc test.c -lasound -o test
36-
- ./test
38+
- run: cc $FIXTURE -lasound -o test
39+
fixture:
40+
extname: c
41+
content: |
42+
#include <alsa/asoundlib.h>
43+
int main(void) {
44+
snd_ctl_card_info_t *info;
45+
snd_ctl_card_info_alloca(&info);
46+
return 0;
47+
}
48+
- ./test

projects/alsa-project.org/alsa-lib/test.c

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)