diff --git a/SOURCES/freeipmi-1.5.7-bridged_sensors.patch b/SOURCES/freeipmi-1.5.7-bridged_sensors.patch new file mode 100644 index 0000000..c5f33dd --- /dev/null +++ b/SOURCES/freeipmi-1.5.7-bridged_sensors.patch @@ -0,0 +1,45 @@ +commit 2ad5407054742afc0100dd9429de9cb4a5773d5f +Author: Albert Chu +Date: Fri Feb 16 10:57:46 2018 -0800 + + When bridging, send to BMC LUN not SMS LUN. + +diff --git a/libfreeipmi/api/ipmi-kcs-driver-api.c b/libfreeipmi/api/ipmi-kcs-driver-api.c +index 82c0bf5b8..3c5e282da 100644 +--- a/libfreeipmi/api/ipmi-kcs-driver-api.c ++++ b/libfreeipmi/api/ipmi-kcs-driver-api.c +@@ -441,7 +441,7 @@ _api_kcs_ipmb_send (ipmi_ctx_t ctx, + ctx->target.net_fn, + ctx->target.lun, + IPMI_SLAVE_ADDRESS_BMC, +- IPMI_BMC_IPMB_LUN_SMS_MSG_LUN, ++ IPMI_BMC_IPMB_LUN_BMC, + ctx->io.inband.rq_seq, + obj_ipmb_msg_hdr_rq) < 0) + { +diff --git a/libfreeipmi/api/ipmi-lan-session-common.c b/libfreeipmi/api/ipmi-lan-session-common.c +index c9193953f..9e0e4f8ce 100644 +--- a/libfreeipmi/api/ipmi-lan-session-common.c ++++ b/libfreeipmi/api/ipmi-lan-session-common.c +@@ -1222,7 +1222,7 @@ _ipmi_cmd_send_ipmb (ipmi_ctx_t ctx, fiid_obj_t obj_cmd_rq) + ctx->target.net_fn, + ctx->target.lun, + IPMI_SLAVE_ADDRESS_BMC, +- IPMI_BMC_IPMB_LUN_SMS_MSG_LUN, ++ IPMI_BMC_IPMB_LUN_BMC, + ctx->io.outofband.rq_seq, + obj_ipmb_msg_hdr_rq) < 0) + { +diff --git a/libfreeipmi/api/ipmi-ssif-driver-api.c b/libfreeipmi/api/ipmi-ssif-driver-api.c +index b9bd0dcb6..8bd7b9601 100644 +--- a/libfreeipmi/api/ipmi-ssif-driver-api.c ++++ b/libfreeipmi/api/ipmi-ssif-driver-api.c +@@ -449,7 +449,7 @@ _api_ssif_ipmb_send (ipmi_ctx_t ctx, + ctx->target.net_fn, + ctx->target.lun, + IPMI_SLAVE_ADDRESS_BMC, +- IPMI_BMC_IPMB_LUN_SMS_MSG_LUN, ++ IPMI_BMC_IPMB_LUN_BMC, + ctx->io.inband.rq_seq, + obj_ipmb_msg_hdr_rq) < 0) + { diff --git a/SPECS/freeipmi.spec b/SPECS/freeipmi.spec index b18f0b9..ba5ab7a 100644 --- a/SPECS/freeipmi.spec +++ b/SPECS/freeipmi.spec @@ -3,7 +3,7 @@ Name: freeipmi Version: 1.5.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: IPMI remote console and system management software License: GPLv3+ Group: Applications/System @@ -16,6 +16,7 @@ Source4: os-shutdown-event.service Source5: os-startup-event.service Patch1: freeipmi-1.5.7-manpage.patch +Patch2: freeipmi-1.5.7-bridged_sensors.patch BuildRequires: libgcrypt-devel texinfo systemd Requires(preun): info systemd @@ -64,6 +65,7 @@ IPMI SEL syslog logging daemon. %prep %setup -q %patch1 -p1 -b .manpage +%patch2 -p1 -b .bridged_sensors %build export CFLAGS="-D_GNU_SOURCE $RPM_OPT_FLAGS" @@ -369,6 +371,9 @@ fi %dir %{_localstatedir}/cache/ipmiseld %changelog +* Tue Mar 26 2019 Vaclav Dolezal - 1.5.7-3 +- Fix querying bridged sensors (#1550929) + * Mon Nov 20 2017 Josef Ridky - 1.5.7-2 - Additional fix of manpage command examples (#1353981)