Skip to content

Commit afd70f5

Browse files
rnpnrmichaelforney
authored andcommitted
strace: bump to 6.12
1 parent 76323eb commit afd70f5

9 files changed

Lines changed: 43 additions & 47 deletions

pkg/strace/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/src
2-
/strace-6.8.tar.xz
2+
/strace-6.12.tar.xz
33
/tools.ninja

pkg/strace/config.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@
233233
#define HAVE_STRUCT_SIGCONTEXT 1
234234
#define HAVE_STRUCT_SOCKADDR_ALG_NEW 1
235235
/* #undef HAVE_STRUCT_SOCKADDR_HCI_HCI_CHANNEL */
236+
/* #undef HAVE_STRUCT_SOCKADDR_IPX */
237+
/* #undef HAVE_STRUCT_SOCKADDR_IPX_IN_LINUX_IPX_H */
238+
/* #undef HAVE_STRUCT_SOCKADDR_IPX_IN_NETIPX_IPX_H */
236239
/* #undef HAVE_STRUCT_SOCKADDR_L2_L2_BDADDR_TYPE */
237240
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
238241
#define HAVE_STRUCT_SOCKADDR_VM 1
@@ -374,6 +377,8 @@
374377
#define HAVE_UNION_BPF_ATTR_QUERY_PROG_IDS 1
375378
#define HAVE_UNION_BPF_ATTR_QUERY_QUERY_FLAGS 1
376379
#define HAVE_UNION_BPF_ATTR_QUERY_TARGET_FD 1
380+
#define HAVE_UNION_BPF_ATTR_RAW_TRACEPOINT_COOKIE 1
381+
/* #undef HAVE_UNION_BPF_ATTR_RAW_TRACEPOINT_DUMMY */
377382
#define HAVE_UNION_BPF_ATTR_RAW_TRACEPOINT_NAME 1
378383
#define HAVE_UNION_BPF_ATTR_RAW_TRACEPOINT_PROG_FD 1
379384
#define HAVE_UNION_BPF_ATTR_REPLACE_BPF_FD 1
@@ -403,6 +408,8 @@
403408
#define HAVE_UNION_BPF_ATTR_TEST_PROG_FD 1
404409
#define HAVE_UNION_BPF_ATTR_TEST_REPEAT 1
405410
#define HAVE_UNION_BPF_ATTR_TEST_RETVAL 1
411+
#define HAVE_UNION_BPF_ATTR_TOKEN_CREATE_BPFFS_FD 1
412+
#define HAVE_UNION_BPF_ATTR_TOKEN_CREATE_FLAGS 1
406413
#define HAVE_UNION_BPF_ATTR_VALUE 1
407414
#define HAVE_UNION_BPF_ATTR_VALUE_SIZE 1
408415
#define HAVE_UNISTD_H 1
@@ -434,10 +441,10 @@
434441
#define PACKAGE "strace"
435442
#define PACKAGE_BUGREPORT "strace-devel@lists.strace.io"
436443
#define PACKAGE_NAME "strace"
437-
#define PACKAGE_STRING "strace 6.8"
444+
#define PACKAGE_STRING "strace 6.12"
438445
#define PACKAGE_TARNAME "strace"
439446
#define PACKAGE_URL "https://strace.io"
440-
#define PACKAGE_VERSION "6.8"
447+
#define PACKAGE_VERSION "6.12"
441448
/* #undef POWERPC */
442449
/* #undef POWERPC64 */
443450
/* #undef POWERPC64LE */
@@ -456,7 +463,7 @@
456463
/* #undef SPARC */
457464
/* #undef SPARC64 */
458465
#define STDC_HEADERS 1
459-
#define STRACE_MANPAGE_DATE "2024-03-13"
466+
#define STRACE_MANPAGE_DATE "2024-06-30"
460467
/* #undef TILE */
461468
/* #undef USE_DEMANGLE */
462469
/* #undef USE_LIBDW */
@@ -522,7 +529,7 @@
522529
/* # undef _XOPEN_SOURCE */
523530
#endif
524531
/* #undef USE_UNWINDER */
525-
#define VERSION "6.8"
532+
#define VERSION "6.12"
526533
#if defined AC_APPLE_UNIVERSAL_BUILD
527534
# if defined __BIG_ENDIAN__
528535
# define WORDS_BIGENDIAN 1

pkg/strace/gen.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ local srcs = paths[[src/(
115115
dup.c
116116
dyxlat.c
117117
epoll.c
118+
epoll_ioctl.c
118119
error_prints.c
119120
evdev.c
120121
evdev_mpers.c
@@ -212,10 +213,12 @@ local srcs = paths[[src/(
212213
net.c
213214
netlink.c
214215
netlink_crypto.c
216+
netlink_generic.c
215217
netlink_inet_diag.c
216218
netlink_kobject_uevent.c
217219
netlink_netfilter.c
218220
netlink_netlink_diag.c
221+
netlink_nlctrl.c
219222
netlink_packet_diag.c
220223
netlink_route.c
221224
netlink_selinux.c
@@ -387,8 +390,8 @@ file('bin/strace', '755', '$outdir/strace')
387390

388391
build('sed', '$outdir/strace.1', '$srcdir/doc/strace.1.in', {
389392
expr={
390-
[[-e 's,@STRACE_MANPAGE_DATE@,2024-03-13,']],
391-
[[-e 's,@VERSION@,6.8,']],
393+
[[-e 's,@STRACE_MANPAGE_DATE@,2024-06-30,']],
394+
[[-e 's,@VERSION@,6.12,']],
392395
[[-e 's,@ENABLE_STACKTRACE_TRUE@,#,']],
393396
[[-e 's,@ENABLE_STACKTRACE_FALSE@,,']],
394397
[[-e 's,@ENABLE_SECONTEXT_TRUE@,#,']],

pkg/strace/patch/0005-Don-t-omit-second-operand-to-operator.patch

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
1-
From 586b8d1808d18149a872f0ee1dc8903b9f9e8750 Mon Sep 17 00:00:00 2001
1+
From e245f2d71d44d2a858517321a01d3ca71147042f Mon Sep 17 00:00:00 2001
22
From: Michael Forney <mforney@mforney.org>
33
Date: Sun, 7 Jul 2019 21:53:16 -0700
44
Subject: [PATCH] Don't omit second operand to '?' operator
55

66
---
7-
src/kd_ioctl.c | 2 +-
8-
src/open.c | 5 +++--
9-
src/prctl.c | 8 ++++----
10-
src/strace.c | 8 ++++----
11-
src/strauss.c | 4 +++-
12-
src/util.c | 2 +-
13-
6 files changed, 16 insertions(+), 13 deletions(-)
7+
src/open.c | 5 +++--
8+
src/prctl.c | 8 ++++----
9+
src/strace.c | 8 ++++----
10+
src/strauss.c | 4 +++-
11+
src/util.c | 2 +-
12+
5 files changed, 15 insertions(+), 12 deletions(-)
1413

15-
diff --git a/src/kd_ioctl.c b/src/kd_ioctl.c
16-
index ada23d536..fddbd38fb 100644
17-
--- a/src/kd_ioctl.c
18-
+++ b/src/kd_ioctl.c
19-
@@ -457,7 +457,7 @@ kd_kbd_str_entry(struct tcb *const tcp, const kernel_ulong_t arg,
20-
21-
if (print_quoted_string((char *) val.kb_string,
22-
MIN(max_strlen,
23-
- (unsigned int) ret ?: sizeof(val.kb_string)),
24-
+ ret ? (unsigned int) ret : sizeof(val.kb_string)),
25-
QUOTE_OMIT_TRAILING_0))
26-
tprint_more_data_follows();
27-
2814
diff --git a/src/open.c b/src/open.c
2915
index 6356c5831..df59ea999 100644
3016
--- a/src/open.c
@@ -42,10 +28,10 @@ index 6356c5831..df59ea999 100644
4228

4329
const char *
4430
diff --git a/src/prctl.c b/src/prctl.c
45-
index f6b4dd741..951133a83 100644
31+
index dbabb3a18..712715b98 100644
4632
--- a/src/prctl.c
4733
+++ b/src/prctl.c
48-
@@ -92,10 +92,10 @@ sprint_sve_val(kernel_ulong_t arg, bool aux)
34+
@@ -98,10 +98,10 @@ sprint_sve_val(kernel_ulong_t arg, bool aux)
4935
if (!aux && flags && xlat_verbose(xlat_verbosity) == XLAT_STYLE_VERBOSE)
5036
{
5137
xsprintf(out, "%#" PRI_klx " /* %s%s%#" PRI_klx " */",
@@ -58,7 +44,7 @@ index f6b4dd741..951133a83 100644
5844
}
5945

6046
return out;
61-
@@ -128,10 +128,10 @@ sprint_sme_val(kernel_ulong_t arg, bool aux)
47+
@@ -134,10 +134,10 @@ sprint_sme_val(kernel_ulong_t arg, bool aux)
6248
if (!aux && flags && xlat_verbose(xlat_verbosity) == XLAT_STYLE_VERBOSE)
6349
{
6450
xsprintf(out, "%#" PRI_klx " /* %s%s%#" PRI_klx " */",
@@ -72,10 +58,10 @@ index f6b4dd741..951133a83 100644
7258

7359
return out;
7460
diff --git a/src/strace.c b/src/strace.c
75-
index 9c87e34ed..13904f6e1 100644
61+
index 1a9d53bc8..9ac16c8c3 100644
7662
--- a/src/strace.c
7763
+++ b/src/strace.c
78-
@@ -2609,7 +2609,7 @@ init(int argc, char *argv[])
64+
@@ -2649,7 +2649,7 @@ init(int argc, char *argv[])
7965
break;
8066
case GETOPT_TS:
8167
tflag_long_set = true;
@@ -84,7 +70,7 @@ index 9c87e34ed..13904f6e1 100644
8470
error_opt_arg(c, lopt, optarg);
8571
break;
8672
case 'T':
87-
@@ -2683,7 +2683,7 @@ init(int argc, char *argv[])
73+
@@ -2723,7 +2723,7 @@ init(int argc, char *argv[])
8874
error_opt_arg(c, lopt, optarg);
8975
break;
9076
case GETOPT_TIPS:
@@ -93,7 +79,7 @@ index 9c87e34ed..13904f6e1 100644
9379
error_opt_arg(c, lopt, optarg);
9480
break;
9581
case GETOPT_ARGV0:
96-
@@ -2729,10 +2729,10 @@ init(int argc, char *argv[])
82+
@@ -2772,10 +2772,10 @@ init(int argc, char *argv[])
9783
qualify_kvm(optarg);
9884
break;
9985
case GETOPT_QUAL_QUIET:
@@ -131,7 +117,7 @@ index bec85021b..5d49f950a 100644
131117
strauss[MIN(3 + i, strauss_lines - 1)]);
132118
}
133119
diff --git a/src/util.c b/src/util.c
134-
index efd390577..5e87559dc 100644
120+
index ada3ba76a..a88dd008d 100644
135121
--- a/src/util.c
136122
+++ b/src/util.c
137123
@@ -640,7 +640,7 @@ printsocket(struct tcb *tcp, int fd, const char *path)

pkg/strace/patch/0006-Avoid-unnecessary-VLAs.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ab57c5ea74c7a1ced31c07bb62c43fc766811e01 Mon Sep 17 00:00:00 2001
1+
From 8c03823959bcb53e16a6555fcc880fe4560cb79f Mon Sep 17 00:00:00 2001
22
From: Michael Forney <mforney@mforney.org>
33
Date: Sun, 7 Jul 2019 21:58:46 -0700
44
Subject: [PATCH] Avoid unnecessary VLAs
@@ -25,10 +25,10 @@ index 2494a44d6..704e3a8d5 100644
2525
const size_t c = columns[i];
2626

2727
diff --git a/src/nlattr.c b/src/nlattr.c
28-
index 1fb394d7c..6f2d54979 100644
28+
index 9944afb8c..1252510a5 100644
2929
--- a/src/nlattr.c
3030
+++ b/src/nlattr.c
31-
@@ -357,7 +357,7 @@ decode_nla_hwaddr(struct tcb *const tcp,
31+
@@ -310,7 +310,7 @@ DECL_NLA(hwaddr)
3232
if (len > MAX_ADDR_LEN)
3333
return false;
3434

@@ -60,7 +60,7 @@ index d3a3b9283..e0079456f 100644
6060
if (!inet_ntop(diag_msg->idiag_family, diag_msg->id.idiag_dst,
6161
dst_buf, text_size))
6262
diff --git a/src/syscall.c b/src/syscall.c
63-
index 6d9e843fe..44d5e9e0b 100644
63+
index 1f4d86dc1..84d448253 100644
6464
--- a/src/syscall.c
6565
+++ b/src/syscall.c
6666
@@ -287,7 +287,7 @@ decode_socket_subcall(struct tcb *tcp)
@@ -73,7 +73,7 @@ index 6d9e843fe..44d5e9e0b 100644
7373
if (umoven(tcp, tcp->u_arg[1], nargs * current_wordsize, buf) < 0)
7474
return;
7575
diff --git a/src/util.c b/src/util.c
76-
index efd390577..c9e0c6212 100644
76+
index a88dd008d..eb5896eec 100644
7777
--- a/src/util.c
7878
+++ b/src/util.c
7979
@@ -569,8 +569,7 @@ enum sock_proto

pkg/strace/patch/0009-Avoid-index-ranges.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From b7f05e44f267fde2bc317a54430ec106d5af2808 Mon Sep 17 00:00:00 2001
1+
From 0663a21f8a5d9d9ffd8e79bfb0c326365d98e384 Mon Sep 17 00:00:00 2001
22
From: Michael Forney <mforney@mforney.org>
33
Date: Thu, 30 Jan 2020 22:32:50 -0800
44
Subject: [PATCH] Avoid index ranges
@@ -33,10 +33,10 @@ index cad1013a8..73d7bbe28 100644
3333

3434
return sprint_mac_addr(hwaddr, MIN(size, sz));
3535
diff --git a/src/util.c b/src/util.c
36-
index c9e0c6212..875c3ae9c 100644
36+
index eb5896eec..e92a25264 100644
3737
--- a/src/util.c
3838
+++ b/src/util.c
39-
@@ -1519,16 +1519,16 @@ dumpstr(struct tcb *const tcp, const kernel_ulong_t addr,
39+
@@ -1660,16 +1660,16 @@ dumpstr(struct tcb *const tcp, const kernel_ulong_t addr,
4040
? 1 + ilog2_klong(len - 1) / HEX_BIT : DUMPSTR_OFFS_MIN_CHARS;
4141
kernel_ulong_t i = 0;
4242
const unsigned char *src;

pkg/strace/sha256

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ba6950a96824cdf93a584fa04f0a733896d2a6bc5f0ad9ffe505d9b41e970149 strace-6.8.tar.xz
1+
c47da93be45b6055f4dc741d7f20efaf50ca10160a5b100c109b294fd9c0bdfe strace-6.12.tar.xz

pkg/strace/url

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
url = "https://github.com/strace/strace/releases/download/v6.8/strace-6.8.tar.xz"
1+
url = "https://github.com/strace/strace/releases/download/v6.12/strace-6.12.tar.xz"

pkg/strace/ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.8 r1
1+
6.12 r0

0 commit comments

Comments
 (0)