aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/strace.az
blob: fa10a7490b831ed7e3460e7b5c03e9c6440d805d (plain)
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
package strace {
	description = "a diagnostic, debugging and instructional userspace utility";
	website = "https://strace.io";
	anitya = 4897;

	version* = "6.19";
	source = remoteFile {
		url = "https://strace.io/files/"+version+"/strace-"+version+".tar.xz";
		checksum = "XJFJJ9XLh_1rHS3m_QNjLKzkkBAooE-QT9p9lJNNWowAmd54IJop_fI4-IFtjeeL";
	};

	early = `
sed -i 's/off64_t/off_t/g' \
	tests/readahead.c \
	tests/sync_file_range.c \
	tests/sync_file_range2.c
sed -i 's/unsigned int msg_len;$/uint32_t msg_len;/g' \
	tests/nlattr.c
`;

	exec = make {
		configure = {
			// tests broken on clang
			"disable-gcc-Werror";

			"enable-mpers": "no";
		};

		// does not compile on musl
		skipCheck = true;
	};

	inputs = [
		xz,

		kernel-headers,
	];
}