aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/strace/tests-musl.patch
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-07-25 01:40:47 +0900
committerOphestra <cat@gensokyo.uk>2026-07-25 01:40:47 +0900
commitb647170d0ccb4652dab914f641d21110581d7d12 (patch)
treeaf6967ed693d2c3893d50f1248331c4c628b6a87 /internal/rosa/package/strace/tests-musl.patch
parent5e655a0bf6eb8234ee57eec08e1b3ecf089b7606 (diff)
internal/rosa/package/strace: build from git sources
This removes xz input. This change also enables tests. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/strace/tests-musl.patch')
-rw-r--r--internal/rosa/package/strace/tests-musl.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/internal/rosa/package/strace/tests-musl.patch b/internal/rosa/package/strace/tests-musl.patch
new file mode 100644
index 00000000..2ca7c633
--- /dev/null
+++ b/internal/rosa/package/strace/tests-musl.patch
@@ -0,0 +1,65 @@
+diff --git a/tests/nlattr.c b/tests/nlattr.c
+index 7e47f4e8f..3eb9c53da 100644
+--- a/tests/nlattr.c
++++ b/tests/nlattr.c
+@@ -43,7 +43,7 @@ test_nlattr(const int fd)
+ };
+ struct msg *msg;
+ struct nlattr *nla;
+- unsigned int msg_len;
++ uint32_t msg_len;
+ long rc;
+
+ /* fetch fail: len < sizeof(struct nlattr) */
+@@ -250,7 +250,7 @@ test_nla_type(const int fd)
+ };
+ struct msg *msg;
+ struct nlattr *nla;
+- unsigned int msg_len;
++ uint32_t msg_len;
+ long rc;
+
+ msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla);
+diff --git a/tests/readahead.c b/tests/readahead.c
+index 10723785c..b9597e697 100644
+--- a/tests/readahead.c
++++ b/tests/readahead.c
+@@ -42,7 +42,7 @@ static const int fds[] = {
+ 0x7fffffff,
+ };
+
+-static const off64_t offsets[] = {
++static const off_t offsets[] = {
+ -0x8000000000000000LL,
+ -0x5060708090a0b0c0LL,
+ -1LL,
+diff --git a/tests/sync_file_range.c b/tests/sync_file_range.c
+index e93ab6cf0..dc76865af 100644
+--- a/tests/sync_file_range.c
++++ b/tests/sync_file_range.c
+@@ -20,8 +20,8 @@ int
+ main(void)
+ {
+ const int fd = -1;
+- const off64_t offset = 0xdeadbeefbadc0dedULL;
+- const off64_t nbytes = 0xfacefeedcafef00dULL;
++ const off_t offset = 0xdeadbeefbadc0dedULL;
++ const off_t nbytes = 0xfacefeedcafef00dULL;
+ const unsigned int flags = -1;
+
+ int rc = sync_file_range(fd, offset, nbytes, flags);
+diff --git a/tests/sync_file_range2.c b/tests/sync_file_range2.c
+index b8dc71219..e4b003c4d 100644
+--- a/tests/sync_file_range2.c
++++ b/tests/sync_file_range2.c
+@@ -20,8 +20,8 @@ int
+ main(void)
+ {
+ const int fd = -1;
+- const off64_t offset = 0xdeadbeefbadc0ded;
+- const off64_t nbytes = 0xfacefeedcafef00d;
++ const off_t offset = 0xdeadbeefbadc0ded;
++ const off_t nbytes = 0xfacefeedcafef00d;
+ const unsigned int flags = -1;
+
+ int rc = sync_file_range(fd, offset, nbytes, flags);