summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-extended/xen/files/0001-tools-xenstore-xenstored_control.c-correctly-print-t.patch34
-rw-r--r--recipes-extended/xen/xen-tools_4.16.bb3
-rw-r--r--recipes-extended/xen/xen-tools_4.17.bb1
-rw-r--r--recipes-extended/xen/xen-tools_git.bb1
4 files changed, 38 insertions, 1 deletions
diff --git a/recipes-extended/xen/files/0001-tools-xenstore-xenstored_control.c-correctly-print-t.patch b/recipes-extended/xen/files/0001-tools-xenstore-xenstored_control.c-correctly-print-t.patch
new file mode 100644
index 00000000..bf99f5e8
--- /dev/null
+++ b/recipes-extended/xen/files/0001-tools-xenstore-xenstored_control.c-correctly-print-t.patch
@@ -0,0 +1,34 @@
1From c7c43c4531fe1cd188f62d9905c3f5c7a29a6fb0 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Wed, 12 Apr 2023 10:30:18 +0200
4Subject: [PATCH] tools/xenstore/xenstored_control.c: correctly print time_t
5
6On 32 bit systems with 64 bit time_t (hello, Y2038 problem),
7the following error occurs otherwise:
8
9| xenstored_control.c: In function 'lu_reject_reason':
10| xenstored_control.c:646:70: error: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Werror=format=]
11
12Upstream-Status: Submitted [by email to xen-devel@lists.xenproject.org and maintainers as suggested by add_maintainers.pl script]
13Signed-off-by: Alexander Kanavin <alex@linutronix.de>
14---
15 tools/xenstore/xenstored_control.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/tools/xenstore/xenstored_control.c b/tools/xenstore/xenstored_control.c
19index d1aaa00bf4..8d318c0399 100644
20--- a/tools/xenstore/xenstored_control.c
21+++ b/tools/xenstore/xenstored_control.c
22@@ -643,10 +643,10 @@ static const char *lu_reject_reason(const void *ctx)
23 list_for_each_entry(conn, &connections, list) {
24 if (conn->ta_start_time &&
25 (now - conn->ta_start_time >= lu_status->timeout)) {
26- ret = talloc_asprintf(ctx, "%s\nDomain %u: %ld s",
27+ ret = talloc_asprintf(ctx, "%s\nDomain %u: %jd s",
28 ret ? : "Domains with long running transactions:",
29 conn->id,
30- now - conn->ta_start_time);
31+ (intmax_t)now - conn->ta_start_time);
32 }
33 }
34
diff --git a/recipes-extended/xen/xen-tools_4.16.bb b/recipes-extended/xen/xen-tools_4.16.bb
index 386e7dcf..2861788e 100644
--- a/recipes-extended/xen/xen-tools_4.16.bb
+++ b/recipes-extended/xen/xen-tools_4.16.bb
@@ -7,6 +7,7 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
7SRC_URI = " \ 7SRC_URI = " \
8 git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \ 8 git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
9 file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \ 9 file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
10 file://0001-tools-xenstore-xenstored_control.c-correctly-print-t.patch \
10 " 11 "
11 12
12LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5" 13LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"
@@ -20,4 +21,4 @@ require xen-tools.inc
20 21
21SYSTEMD_SERVICE:${PN}-xencommons:append = " \ 22SYSTEMD_SERVICE:${PN}-xencommons:append = " \
22 var-lib-xenstored.mount \ 23 var-lib-xenstored.mount \
23 " \ No newline at end of file 24 "
diff --git a/recipes-extended/xen/xen-tools_4.17.bb b/recipes-extended/xen/xen-tools_4.17.bb
index 39cf8793..8d9effa5 100644
--- a/recipes-extended/xen/xen-tools_4.17.bb
+++ b/recipes-extended/xen/xen-tools_4.17.bb
@@ -7,6 +7,7 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
7SRC_URI = " \ 7SRC_URI = " \
8 git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \ 8 git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
9 file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \ 9 file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
10 file://0001-tools-xenstore-xenstored_control.c-correctly-print-t.patch \
10 " 11 "
11 12
12LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" 13LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9"
diff --git a/recipes-extended/xen/xen-tools_git.bb b/recipes-extended/xen/xen-tools_git.bb
index fd42cf29..7557081f 100644
--- a/recipes-extended/xen/xen-tools_git.bb
+++ b/recipes-extended/xen/xen-tools_git.bb
@@ -7,6 +7,7 @@ XEN_BRANCH ?= "master"
7SRC_URI = " \ 7SRC_URI = " \
8 git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \ 8 git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
9 file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \ 9 file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
10 file://0001-tools-xenstore-xenstored_control.c-correctly-print-t.patch \
10 " 11 "
11 12
12LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" 13LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9"