Skip to content

v1.1.1

Latest

Choose a tag to compare

@mcsauder mcsauder released this 04 Dec 06:13
9cf7a93

LibSerial 1.1.1 fixes the Python bindings and the packaging of 1.1.0. The shared library is unchanged and binary compatible with 1.1.0 and 1.0.0: it is still libserial.so.1, and programs built against either run without recompiling. The Python bindings are rewritten for SIP 6 and now build and import with both CMake and Autotools. If you upgrade a 1.1.0 build directory or install, see Upgrading from 1.1.0 below.

Documentation: https://crayzeewulf.github.io/libserial/

Numbers in parentheses are pull requests and issues in this repository.

Compatibility

  • Binary compatible with 1.1.0 and 1.0.0: the shared library is unchanged. It is still libserial.so.1 and exports the same symbols, and the installed headers are identical to 1.1.0's (CMake no longer installs Makefiles next to them). The pkg-config file differs only in its Version field, which is now 1.1.1.
  • The Python bindings need SIP 6.8.1 or later, but not SIP 7 (the sipbuild module), the Python 3 development files, and Python 3.8 or later. With CMake they also need CMake 3.18 or later. SIP 4 is no longer supported (#219, #220).

Upgrading from 1.1.0

  • A default CMake build no longer fails without the Python development files: the bindings are now built only when their requirements are found. A build directory configured by 1.1.0 has LIBSERIAL_PYTHON_ENABLE=ON cached, which makes a missing SIP an error. Reconfigure it by running "cmake -U LIBSERIAL_PYTHON_ENABLE ." in it to detect the requirements again, or use a fresh build directory (#219).
  • The module is now called libserial, not libserialmod. A CMake install of 1.1.0 left an empty libserialmod.so in the library directory (for example /usr/local/lib), which can be deleted (#219).
  • CMake installs of 1.0.0 and 1.1.0 also put Makefile.am, and from a source tree prepared for Autotools also Makefile.in and Makefile, into include/libserial. 1.1.1 installs only the headers there, and those files can be deleted (#221).

Python bindings

  • Rewritten for SIP 6. In 1.1.0, CMake installed an empty module and the Autotools build needed SIP 4. Both build systems now build an importable "libserial" module that follows the current C++ API, with Python exceptions for LibSerial's errors and bytes for binary data (#219, #220).
  • SerialPort(fileName, ..., exclusive=False) works with keywords: every constructor argument has a default (#220).
  • A libserial.pyi type stub is installed next to the module (#220).
  • Built by default only when their requirements are found: -DLIBSERIAL_PYTHON_ENABLE=ON or --with-python3 makes a missing one an error, and OFF or --without-python3 skips the bindings (#219, #220).
  • Installed into the site-packages (dist-packages on Debian and Ubuntu) directory that Python searches under the installation prefix. If Python searches no such directory there, the module goes into lib/pythonX.Y/site-packages (lib64 on some systems) under the prefix, which then has to be added to PYTHONPATH. LIBSERIAL_PYTHON_INSTALL_DIR (CMake) or "make install pyexecdir=DIR" (Autotools) installs it elsewhere (#219, #220).
  • Tests that run against a pseudoterminal, from ctest and "make check", and example scripts updated to the current API (#219, #220).

Bug fixes

  • Tarballs made with "make dist" carried the GNU GPL as COPYING (the 1.1.0 downloads on GitHub were not affected). They now carry LibSerial's own license, LICENSE.txt, and README.md (#218).
  • The RPM spec file is fixed: it no longer runs a missing autogen.sh or lists files that are not installed, and it builds without the Python bindings (#218).
  • The code examples in the tutorial and on the front page of the manual compile again (#218).
  • No configuration of LibSerial needs Boost any more (#218, issue #178).
  • The CMake install puts only the headers into include/libserial, not the Makefiles next to them (#221).