internal/rosa/package/strace: build from git sources
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m48s
Test / Hakurei (push) Successful in 3m59s
Test / ShareFS (push) Successful in 4m1s
Test / Sandbox (race detector) (push) Successful in 5m31s
Test / Hakurei (race detector) (push) Successful in 6m42s
Test / Flake checks (push) Successful in 1m5s
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m48s
Test / Hakurei (push) Successful in 3m59s
Test / ShareFS (push) Successful in 4m1s
Test / Sandbox (race detector) (push) Successful in 5m31s
Test / Hakurei (race detector) (push) Successful in 6m42s
Test / Flake checks (push) Successful in 1m5s
This removes xz input. This change also enables tests. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
package strace {
|
||||
description = "a diagnostic, debugging and instructional userspace utility";
|
||||
website = "https://strace.io";
|
||||
anitya = 4897;
|
||||
|
||||
version# = "7.1";
|
||||
source = remoteFile {
|
||||
url = "https://strace.io/files/"+version+"/strace-"+version+".tar.xz";
|
||||
checksum = "PR-JLYgVLyzRqRCFi2yvfip_LRP_Cksd04d7H2oAx820qt_H-vj7rbW5xyzdMTat";
|
||||
};
|
||||
|
||||
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,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package strace {
|
||||
description = "a diagnostic, debugging and instructional userspace utility";
|
||||
website = "https://strace.io";
|
||||
anitya = 4897;
|
||||
|
||||
version# = "7.1";
|
||||
source = remoteGit {
|
||||
url = "https://github.com/strace/strace.git";
|
||||
tag = "v"+version;
|
||||
checksum = "vGwgAAi_mGsoICDYHK9Vhbn2hBR0JIoUEkCKhLA2JHFg8NFvGsYEWGIafdnsN0_v";
|
||||
};
|
||||
patches = [
|
||||
"tests-musl.patch",
|
||||
"skip-broken-tests.patch",
|
||||
];
|
||||
|
||||
exec = make {
|
||||
generate = "tee .version .tarball-version <<< '"+version+"' > /dev/null && "+
|
||||
"./bootstrap";
|
||||
configure = {
|
||||
// tests broken on clang
|
||||
"disable-gcc-Werror";
|
||||
|
||||
"enable-mpers": "no";
|
||||
};
|
||||
};
|
||||
|
||||
inputs = [
|
||||
bash,
|
||||
gawk,
|
||||
automake,
|
||||
|
||||
kernel-headers,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
diff --git a/tests/attach-p-eperm-already-traced.test b/tests/attach-p-eperm-already-traced.test
|
||||
index 54428c539..a0fa049c4 100755
|
||||
--- a/tests/attach-p-eperm-already-traced.test
|
||||
+++ b/tests/attach-p-eperm-already-traced.test
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
. "${srcdir=.}/init.sh"
|
||||
|
||||
+skip_ "broken test"
|
||||
+
|
||||
$STRACE -q --trace=none --signal=none -- \
|
||||
sh -c "echo \$\$; sleep $TIMEOUT_DURATION" > "$OUT" 2>/dev/null &
|
||||
tracer_pid=$!
|
||||
diff --git a/tests/int_0x80.c b/tests/int_0x80.c
|
||||
index d46e51584..f0cb88b0f 100644
|
||||
--- a/tests/int_0x80.c
|
||||
+++ b/tests/int_0x80.c
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "tests.h"
|
||||
|
||||
-#if defined __x86_64__ || defined __i386__
|
||||
+#if 0
|
||||
|
||||
# include <stdio.h>
|
||||
# include <unistd.h>
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user