forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libaio.yaml
76 lines (65 loc) · 1.62 KB
/
libaio.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package:
name: libaio
version: 0.3.113
epoch: 5
description: "Asynchronous input/output library"
copyright:
- license: LGPL-2.1-or-later
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- openssf-compiler-options
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://pagure.io/libaio.git
tag: libaio-${{package.version}}
expected-commit: 1b18bfafc6a2f7b9fa2c6be77a95afed8b7be448
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: "libaio-dev"
description: "headers for libaio"
pipeline:
- uses: split/dev
dependencies:
runtime:
- libaio
test:
environment:
contents:
packages:
- gcc
- glibc-dev
- libaio-dev
pipeline:
- name: Basic libaio function test
runs: |
cat << 'EOF' > test_libaio.c
#include <libaio.h>
#include <stdio.h>
int main() {
io_context_t ctx = 0;
if (io_setup(128, &ctx) != 0) {
fprintf(stderr, "io_setup failed\n");
return 1;
}
if (io_destroy(ctx) != 0) {
fprintf(stderr, "io_destroy failed\n");
return 1;
}
printf("libaio basic function test passed.\n");
return 0;
}
EOF
gcc -o test_libaio test_libaio.c -laio
./test_libaio
update:
enabled: true
release-monitor:
identifier: 1557