Merge ~ahasenack/ubuntu/+source/ipmitool:plucky-ipmitool-missing-hour-in-timestamp into ubuntu/+source/ipmitool:ubuntu/plucky-devel

Proposed by Andreas Hasenack
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 434fd16c9da60271260c1a4dcdd455f46d15773a
Proposed branch: ~ahasenack/ubuntu/+source/ipmitool:plucky-ipmitool-missing-hour-in-timestamp
Merge into: ubuntu/+source/ipmitool:ubuntu/plucky-devel
Diff against target: 89 lines (+67/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/fix-date-time-output-of-timestamps.patch (+59/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Lena Voytek (community) Approve
Canonical Server Reporter Pending
Review via email: mp+485815@code.launchpad.net

Description of the change

This is the SRU version of the questing PR[1].

Same change as for questing, same testing procedure. SRU bug template filled in.

PPA: https://launchpad.net/~ahasenack/+archive/ubuntu/ipmitool-2107550
DEP8: green

I didn't build all architectures in the PPA, but the questing upload is the same version and it built for all arches, and dep8 also passed for all arches, so I don't expect it to be different for the SRU.

1. https://code.launchpad.net/~ahasenack/ubuntu/+source/ipmitool/+git/ipmitool/+ref/questing-ipmitool-missing-hour-in-timestamp

To post a comment you must log in.
Revision history for this message
Lena Voytek (lvoytek) wrote :

LGTM - patch, changelog, and tests all look good. This should be fine to upload

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, lvoytek
Uploaders: ahasenack, lvoytek
MP auto-approved

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks, uploaded to plucky unapproved:

Uploading ipmitool_1.8.19-7.1ubuntu0.2.dsc
Uploading ipmitool_1.8.19-7.1ubuntu0.2.debian.tar.xz
Uploading ipmitool_1.8.19-7.1ubuntu0.2_source.buildinfo
Uploading ipmitool_1.8.19-7.1ubuntu0.2_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 638e592..62af916 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+ipmitool (1.8.19-7.1ubuntu0.2) plucky; urgency=medium
7+
8+ * d/p/fix-date-time-output-of-timestamps.patch: fix showing date twice,
9+ intead of date and hour (LP: #2107550)
10+
11+ -- Andreas Hasenack <andreas@canonical.com> Tue, 13 May 2025 10:45:44 +0200
12+
13 ipmitool (1.8.19-7.1ubuntu0.1) plucky; urgency=medium
14
15 * d/patches: Apply sauce patch not addressed by upstream
16diff --git a/debian/patches/fix-date-time-output-of-timestamps.patch b/debian/patches/fix-date-time-output-of-timestamps.patch
17new file mode 100644
18index 0000000..e75a6a6
19--- /dev/null
20+++ b/debian/patches/fix-date-time-output-of-timestamps.patch
21@@ -0,0 +1,59 @@
22+From 01c572b911035726526b9bfe685031f2bf925130 Mon Sep 17 00:00:00 2001
23+From: Dalton Durst <codeberg@tnvcomp.com>
24+Date: Thu, 10 Oct 2024 14:53:39 -0500
25+Subject: [PATCH] sel: Fix date/time output of timestamps for 'sel get'
26+
27+Both ipmi_timestamp_date and ipmi_timestamp_time call ipmi_timestamp_fmt
28+which overwrites the static buffer datebuf. Therefore %s simply output
29+the same thing twice.
30+
31+Before:
32+ Timestamp : 10/08/2024 10/08/2024
33+After:
34+ Timestamp : 10/08/2024 10:46:55 AM PDT
35+
36+Signed-off-by: Dalton Durst <codeberg@tnvcomp.com>
37+---
38+ lib/ipmi_sel.c | 18 +++++++++---------
39+ 1 file changed, 9 insertions(+), 9 deletions(-)
40+
41+Origin: upstream, https://codeberg.org/IPMITool/ipmitool/commit/01c572b911035726526b9bfe685031f2bf925130
42+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ipmitool/+bug/2107550
43+Last-Update: 2025-05-09
44+
45+diff --git a/lib/ipmi_sel.c b/lib/ipmi_sel.c
46+index 9a97af3..482d460 100644
47+--- a/lib/ipmi_sel.c
48++++ b/lib/ipmi_sel.c
49+@@ -2042,13 +2042,13 @@ ipmi_sel_print_std_entry_verbose(struct ipmi_intf * intf, struct sel_event_recor
50+ if (evt->record_type < 0xe0)
51+ {
52+ printf(" Timestamp : ");
53+- if (evt->record_type < 0xc0)
54+- printf("%s %s", ipmi_timestamp_date(evt->sel_type.standard_type.timestamp),
55+- ipmi_timestamp_time(evt->sel_type.standard_type.timestamp));
56+- else
57+- printf("%s %s", ipmi_timestamp_date(evt->sel_type.oem_ts_type.timestamp),
58+- ipmi_timestamp_time(evt->sel_type.oem_ts_type.timestamp));
59+- printf("\n");
60++ if (evt->record_type < 0xc0) {
61++ printf("%s ", ipmi_timestamp_date(evt->sel_type.standard_type.timestamp));
62++ printf("%s\n", ipmi_timestamp_time(evt->sel_type.standard_type.timestamp));
63++ } else {
64++ printf("%s ", ipmi_timestamp_date(evt->sel_type.oem_ts_type.timestamp));
65++ printf("%s\n", ipmi_timestamp_time(evt->sel_type.oem_ts_type.timestamp));
66++ }
67+ }
68+
69+ if (evt->record_type >= 0xc0)
70+@@ -2133,8 +2133,8 @@ ipmi_sel_print_extended_entry_verbose(struct ipmi_intf * intf, struct sel_event_
71+ if (evt->record_type < 0xe0)
72+ {
73+ printf(" Timestamp : ");
74+- printf("%s %s\n", ipmi_timestamp_date(evt->sel_type.standard_type.timestamp),
75+- ipmi_timestamp_time(evt->sel_type.standard_type.timestamp));
76++ printf("%s ", ipmi_timestamp_date(evt->sel_type.standard_type.timestamp));
77++ printf("%s\n", ipmi_timestamp_time(evt->sel_type.standard_type.timestamp));
78+ }
79+
80+
81diff --git a/debian/patches/series b/debian/patches/series
82index 80cb79e..e8faacc 100644
83--- a/debian/patches/series
84+++ b/debian/patches/series
85@@ -12,3 +12,4 @@
86 0802-fix-temp-read-parameters.patch
87 0803-fix-sdr-hex-value.patch
88 selsdr-fix-SEL-cannot-display-sensor-name-when-owner-lun1.patch
89+fix-date-time-output-of-timestamps.patch

Subscribers

People subscribed via source and target branches