From 4e79fc862b7392b0b534d9c1f7f4936f36fd47ed3c2103c442507a5b6d7e8a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 30 Oct 2024 16:13:13 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main libmodbus revision 4d42cd3ef896152f1f81b1f132dd84bf --- .gitattributes | 23 ++++++++++ libmodbus-3.1.11.tar.gz | 3 ++ libmodbus.changes | 92 ++++++++++++++++++++++++++++++++++++++++ libmodbus.spec | 94 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 212 insertions(+) create mode 100644 .gitattributes create mode 100644 libmodbus-3.1.11.tar.gz create mode 100644 libmodbus.changes create mode 100644 libmodbus.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/libmodbus-3.1.11.tar.gz b/libmodbus-3.1.11.tar.gz new file mode 100644 index 0000000..50a3a1c --- /dev/null +++ b/libmodbus-3.1.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15b4b2e0f68122c2da9b195de5c330489a9c97d40b4a95d2822378dc14d780e7 +size 478276 diff --git a/libmodbus.changes b/libmodbus.changes new file mode 100644 index 0000000..04fa974 --- /dev/null +++ b/libmodbus.changes @@ -0,0 +1,92 @@ +------------------------------------------------------------------- +Tue Oct 22 15:58:13 UTC 2024 - Martin Hauke + +- Update to version 3.1.11 + * RTU - Check CRC before filtering on slave ID. + * HAVE_NETINET_IN_H as guard around header. + * Use default port 502 in documentation. + * Fix float endianness issue introduced in v3.1.8 + * Proper display of used CFLAGS. + * Don't build with debug flag by default anymore. + * Check request length in modbus_reply when used in memcpy. + * Fix insecure data handling. CID 416366: INTEGER_OVERFLOW found + with Coverity Scan. + * Remove useless cast in setsockopt call. + * Documentation improvements. + * Revert TCP checks for recovery. + * Don't use loop initial declaration. + * Don't use gai_strerror if not available. + * Add checks for netinet/ip.h and gai_strerror. + * Log error in read input registers if debug. + * Fix errno value on timeout with TCP connect. + * Free addrinfo struct on getaddrinfo() gerrors. + * Fix doc of modbus_mapping_new_start_address. + +------------------------------------------------------------------- +Sat Jan 21 11:46:57 UTC 2023 - Dirk Müller + +- update to 3.1.10: + * Fix baud rate handling with RTU under Linux + * Fix modbus_disable_quirks signature + * Move content about migration to libmodbus.org + * Avoid negative value in FD_SET call + * Test socket against positive value instead of -1 + * Improvements to autotools by @ndim + * Fix doc links by @jordanjohnson56 (#653) + * Test the protocol id for 0 by @metapsychologe (#509) + * Fix double negative in tests + * New quirks handler (closes #38 #533) + * Fix bitwise OR in documentation + * Improve doc about slave ID in RTU + * Add .clang-format and format code (closes #394) + * Remove constraints on baud rate values + * Accept IP or device in arg of unit test progs + * Avoid compilation issue with VS2022 with strdup + * Display created files in configure.js + * Use strcpy_s under Windows + * Replace inet_addr by inet_pton calls + * Replace inet_ntoa by inet_ptop + * Update configure.ac/config.h.win32 for new inet functions + * Instructions to build libmodbus in a VS project + * Fix connection check for Windows RTU (closes #660, #662) + * Add CIFuzz Github action by @DavidKorczynski (#669) + * Convert a few int to unsigned int (#402) + +------------------------------------------------------------------- +Fri Dec 2 19:31:05 UTC 2022 - Dirk Müller + +- update to 3.1.8: + * Major rewrite of documentation with Material for mkdocs + * Reduce memory use of TCP PI backend (closes #621) + * Fixed MODBUS_ERROR_RECOVERY_LINK not working on Windows (@embeddedmz) + * Replace Travis CI by GitHub CI + * Fix linker error for Windows (VCLinkerTool) + * Address check in single register / coil responses added (#463) + * Swap CRC bytes in request data but not at CRC computing (#397) + * Fix float endianness issue on big endian architecture + * Fix comment about EMBUNKEXC (closes #566) + * Fix network library detection on Haiku + * Fix typos (closes #620) + +------------------------------------------------------------------- +Thu Feb 3 22:27:20 UTC 2022 - Stanislav Brabec + +- Update to version 3.1.7: + * Many minor fixes, typo fixes and documentation enhancements. + * For more see NEWS. +- Properly build debug package. + +------------------------------------------------------------------- +Wed Aug 7 18:42:16 CEST 2019 - sbrabec@suse.com + +- Update to version 3.1.6: + - API extensions and minor API changes + - Fix VD-1301 and VD-1302 vulnerabilities. + - Bug fixes. + * For more see NEWS. + +------------------------------------------------------------------- +Thu Apr 20 15:19:23 CEST 2017 - sbrabec@suse.com + +- New package, version 3.1.4 (development, but stable). + diff --git a/libmodbus.spec b/libmodbus.spec new file mode 100644 index 0000000..d92f7a6 --- /dev/null +++ b/libmodbus.spec @@ -0,0 +1,94 @@ +# +# spec file for package libmodbus +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: libmodbus +Version: 3.1.11 +Release: 0 +Summary: Modbus Library +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://www.libmodbus.org/ +Source: https://github.com/stephane/libmodbus/releases/download/v%{version}/libmodbus-%{version}.tar.gz +BuildRequires: asciidoc +BuildRequires: pkgconfig +BuildRequires: xmlto + +%description +libmodbus is a free software library to send/receive data with a device which +respects the Modbus protocol. This library can use a serial port or an Ethernet +connection. + +The functions included in the library have been derived from the Modicon Modbus +Protocol Reference Guide which can be obtained from Schneider. + +%package -n libmodbus5 +Summary: Modbus Library +Group: System/Libraries + +%description -n libmodbus5 +libmodbus is a free software library to send/receive data with a device which +respects the Modbus protocol. This library can use a serial port or an Ethernet +connection. + +The functions included in the library have been derived from the Modicon Modbus +Protocol Reference Guide which can be obtained from Schneider. + +%package devel +Summary: Development Files for Modbus Library +Group: Development/Libraries/C and C++ +Requires: glibc-devel +Requires: libmodbus5 = %{version} + +%description devel +libmodbus is a free software library to send/receive data with a device which +respects the Modbus protocol. This library can use a serial port or an Ethernet +connection. + +The functions included in the library have been derived from the Modicon Modbus +Protocol Reference Guide which can be obtained from Schneider. + +%prep +%setup -q + +%build +export CFLAGS="%{optflags}" +%configure\ + --docdir=%{_docdir}/%{name}\ + --disable-static +%make_build + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +# Installed by %%doc +rm %{buildroot}%{_docdir}/%{name}/{AUTHORS,NEWS,README.md} + +%post -n libmodbus5 -p /sbin/ldconfig +%postun -n libmodbus5 -p /sbin/ldconfig + +%files -n libmodbus5 +%license COPYING.LESSER +%doc AUTHORS NEWS README.md +%{_libdir}/*.so.5* + +%files devel +%{_includedir}/modbus +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog