From 24f8b52d7b2437ea9ffe2e8507c19134e94c08f2 Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Tue, 12 Nov 2024 15:21:48 +0100 Subject: [PATCH] NEWS.adoc: document fixes for libmodbus+libusb support [#2666] Signed-off-by: Jim Klimov --- NEWS.adoc | 10 ++++++++++ UPGRADING.adoc | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/NEWS.adoc b/NEWS.adoc index b25f24d341..60f54fadd8 100644 --- a/NEWS.adoc +++ b/NEWS.adoc @@ -395,6 +395,16 @@ during a NUT build. - build of `snmp-ups` and `netxml-ups` drivers now explicitly brings linker dependency on chosen SSL libraries. [#2479] + - introduced `configure --with-modbus+usb` option to require an USB-capable + libmodbus, and defaulted a couple of specific situations as if this was + required (implicitly): `configure --with-modbus --with-usb` + and either `--with-drivers=*apc_modbus*` + or `--with-modbus-includes=... --with-modbus-libs=...` + as a way to avoid surprises with custom NUT builds aiming to have an + USB-capable `apc_modbus` driver (currently this requires a custom-built + libmodbus). Also fixed (re-)detection of libmodbus RTU USB support with + static libmodbus builds. [#2666] + - brought keyword dictionaries of `nutconf` and `augeas` NUT configuration file parsers up to date; restored automated checks for `augeas` lenses. [issue #657, issue #2294] diff --git a/UPGRADING.adoc b/UPGRADING.adoc index 79a9b0b5df..7d304dffa9 100644 --- a/UPGRADING.adoc +++ b/UPGRADING.adoc @@ -134,6 +134,16 @@ Changes from 2.8.2 to 2.8.3 tool name and NUT version banner from being printed out when programs start. [issues #1789 vs. #316] +- A `configure` script option to build `--with-modbus+usb` was added to + let the caller insist on the use of USB-capable libmodbus (or fail the + NUT build attempt). Certain build arguments can default this option to + become enabled (implicitly): `configure --with-modbus --with-usb` + and either `--with-drivers=*apc_modbus*` + or `--with-modbus-includes=... --with-modbus-libs=...` + as a way to avoid surprises with custom NUT builds aiming to have an + USB-capable `apc_modbus` driver (currently this requires a custom-built + libmodbus, can be a static build to avoid conflicts with OS). [#2666] + - A `configure` script option to `--enable-NUT_STRARG-always` was added to enable the `NUT_STRARG` macro (to handle `NULL` string printing) even if system libraries seem to safely support this behavior natively.