Debian Codegraph @

NEWS

raw
1 # SPDX-License-Identifier: CC-BY-SA-4.0
2 # SPDX-FileCopyrightText: 2017-2021 Bartosz Golaszewski <[email protected]>
3 # SPDX-FileCopyrightText: 2023 Bartosz Golaszewski <[email protected]>
4
5 libgpiod v2.2.5
6 ===============
7
8 Bug fixes:
9 - allow modifying settings for existing offsets in a full line-config
10 - fix signed/unsigned type mismatch in gpiod_line_request_get_value()
11 - add explicit NUL-termination after strncpy() calls in core library
12 - fix consumer string in line_info stream operator in C++ bindings
13 - use get_mapped_value() for all enum mappings in line_info in C++ bindings
14 - move g_tree_remove() out of g_assert() in gpiodbus_id_free() to avoid
15 resource exhaustion when assertions are disabled
16 - return 0 when zero events are requested in edge-event API
17 - fix gpionotify watching lines on the wrong chip
18 - reject trailing garbage in parse_period() in gpio-tools
19 - store interactive sleep period in a long long in gpioset to avoid overflow
20 - use gpiod_line_settings_free() to release settings in line-config
21
22 libgpiod v2.2.4
23 ===============
24
25 Bug fixes:
26 - fix buffer over-read bugs when translating uAPI structs to library types
27 - fix variable and argument types where necessary
28 - sanitize values returned by the kernel to avoid potential buffer overflows
29 - fix memory leaks in gpio-tools
30 - add missing return value checks in gpio-tools
31 - fix period parsing in gpio-tools
32 - use correct loop counter in error path in gpio-manager
33
34 Improvements:
35 - make tests work with newer coreutils by removing cases checking tools'
36 behavior on SIGINT which stopped working due to changes in behavior of the
37 timeout tool
38
39 libgpiod v2.2.3
40 ===============
41
42 Bug fixes:
43 - don't try to export the same chip object twice in gpio-manager on duplicate
44 uevents
45 - use the "add"/"remove" uevents when watching for GPIO chips in the system as
46 the "bind"/"unbind" pair is only emitted by linux for controllers which don't
47 have a firmware node attached
48 - don't allow clearing hogs on active devices in tests
49 - don't install uneeded files
50 - fix a pkgconfig check in configure
51 - fix a return type check in test harness
52
53 libgpiod v2.2.2
54 ===============
55
56 Bug fixes:
57 - don't implicity unquote unnamed lines in gpioinfo
58 - remove useless variable in reconfigure example
59 - don't let struct line_config balloon out of control and trigger an OOM
60 - drop python3-config check from configure.ac
61
62 libgpiod v2.2.1
63 ===============
64
65 Bug fixes:
66 - fix potential PyDict_Next() crash in python bindings
67 - disable the GPIO simulator before releasing it in C++, rust and python
68 bindings tests
69 - fix the way we wait for simulated chips to appear in D-Bus command-line
70 client tests
71 - make read_edge_events lifetimes more explicit in rust bindings
72 - make waiting for info events more reliable in GLib bindings tests
73 - defer removal of bank entries when device is not disabled in libgpiosim
74 - add missing LineInfo import to __init__.py in python bindings
75
76 Improvements:
77 - add infrastructure for generating proper sphinx docs
78
79 libgpiod v2.2
80 =============
81
82 New features:
83 - add GObject bindings with introspection
84 - add a D-Bus interface to libgpiod together with a daemon implementing it and
85 a command-line client
86 - split out the common shell test code for gpio-tools into a reusable test
87 harness for GPIO command-line tools
88 - add minutes as a new supported time unit for tools and allow longer periods
89 for timeouts, line holding, etc.
90 - add a script for generating sdist and wheels for python bindings
91 - migrate C++ tests to using Catch2 v3
92
93 Improvements:
94 - relicense C++ bindings under LGPL-2.1-or-later in order to make the project
95 more attractive to users with GPL-3.0 restrictions
96 - remove dependency on grep from tools' tests
97 - make shell scripts pass shellcheck treewide
98 - use ppoll() in tools to actually achieve the advertised microsecond
99 granularity of timeouts
100 - documentation improvements
101 - improve typing info in python bindings
102 - improve __repr__() implementations in python bindings
103 - make reconfiguring lines more flexible in python bindings by relaxing the
104 requirement to carry the ordering of the config entries from the request
105 - support casting of line.Value to bool in python bindings
106 - various new test-cases for improved coverage treewide
107 - align the test cases with the current kernel requirement for specifying
108 direction explicitly when reconfiguring lines
109
110 Bug fixes:
111 - fix C++ bindings build using slibtool
112 - accept the new style automatic GPIO chip labels from gpio-sim in bash tests
113 - fix C++ tests with recent kernels which introduced stricter reconfigure
114 behavior
115 - fix a use-after-free bug in python bindings
116 - fix passing the event clock property to line requests in python bindings
117 - fix a memory leak in tools
118 - make sure the string buffers in line-info and chip-info are big enough to not
119 truncate the strings they hold below the size accepted by the kernel
120 - remove buggy and unnecessary flags sanitization from line-config
121 - fix python bindings installation with Makefile build
122 - sanitize the return values of GPIO ioctl()s which in some cases may be
123 erroneously positive
124 - fix requesting lines by name with multiple entries in python bindings
125
126 libgpiod v2.1
127 =============
128
129 New features:
130 - port tests to shunit2
131 - add a sample Android build file
132 - add code examples to the core library and replace existing reimplementations
133 of gpio-tools with dedicated examples in bindings
134 - don't install test executables
135 - add idle-timeout option to gpiomon and gpionotify
136 - provide gpiod_line_request_get_chip_name() and respective wrappers in
137 bindings
138
139 Improvements:
140 - add more tests for various corner-cases and improve coverage
141 - documentation improvements
142 - drop dependencies that make it impossible to build libgpiod with bionic libc
143 - remove dead code
144 - use AM_V_GEN where applicable in build
145
146 Bug fixes:
147 - fix a segfault in the GLib wrapper around libgpiosim
148 - fix a race condition in libgpiosim
149 - remove an implicit dependency on ncurses in gpio-tools tests
150 - make value toggling in gpio-tools tests more reliable by removing hard-coded
151 sleeps in favor of actively waiting for value changes
152 - sanitize the arguments in gpiod_line_config_set_output_values()
153 - make the chip file descriptor blocking in the core library so that calls to
154 gpiod_chip_read_info_event() behave as advertised in the docs
155 - fix setting the event clock type in gpiomon
156 - fix the regex pattern for version strings
157 - fix some test cases
158 - drop profiling flags from tests' Makefile
159 - don't use the same chip from different threads
160
161 libgpiod v2.0
162 =============
163
164 This is a major release that breaks compatiblity with the v1.6.x series. The
165 entire data model has been overhauled in order to make using the library more
166 intuitive and less cumbersome, while also making the code future-proof and
167 extensible. Please refer to the documentation for details.
168
169 New features:
170 - rework the entire API: core C library as well as C++ and Python bindings
171 - rework the command-line tools in order to make them more line-name-oriented
172 - drop gpiofind as tools can now resolve line names on their own
173 - add the interactive mode to gpioset
174 - add Rust bindings
175 - make tests work with the gpio-sim kernel module
176
177 libgpiod v1.6
178 =============
179
180 New features:
181 - add a standardized '__version__' module attribute in Python bindings
182 - print the bias flags info (if set) in gpioinfo
183
184 Improvements:
185 - remove unnecessary indirection in free_dirs() in iterator code
186 - put all ABI versions next to one another in configure.ac
187 - improve std namespace resolution in C++ bindings
188 - add more checks for non-standard functions in configure.ac
189 - various code size improvements
190 - enforce gnu89 C standard in makefiles
191 - many documentation improvements
192 - unduplicate signalfd() handling in tools
193 - fix a forward declaration for line_event in C++ bindings
194
195 Bug fixes:
196 - relax is_gpiochip_cdev() for symbolic links
197 - make gpiod_line_get_value_bulk() work for bulks of lines requested for
198 events, not only those requested for values
199 - fix regex patterns for timestamps in gpiomon test cases
200 - remove leftover asserts from tests
201 - fix unit conversion in event timestamp calculation in C++ bindings
202 - fix reading subset of available events in core library
203
204 libgpiod v1.5
205 =============
206
207 New features:
208 - switched to using the GLib testing framework for core library tests and BATS
209 (Bash Automated Testing System) for command-line tools
210 - used Catch2 C++ testing framework to implement a proper test-suite for C++
211 bindings while also reusing the API provided by libgpiomockup
212 - used Python's unittest package to implement a proper test suite for Python
213 bindings and reused libgpiockup again
214 - provided line::update() and Line.update() routines for C++ and Python
215 bindings respectively allowing to update the line info from bindings as well
216 - added support for bias flags which are a new functionality first available in
217 linux v5.5; subsequently the library now requires v5.5 kernel headers to
218 build; the new flags are supported in the core library, C++ and Python
219 bindings as well as the command-line tools
220 - added support for the new SET_CONFIG ioctl(): this too is a new functionality
221 added in linux v5.5; both features have been implemented in the library by
222 Kent Gibson
223 - added routines for reading multiple line events at once to the core library,
224 C++ and Python bindings
225
226 Improvements:
227 - constified function arguments where applicable in libgpiomockup
228 - fixed the name of the test exeucutable displayed at build time
229 - improved the function pointer casting in Python bindings to avoid warnings
230 emitted by GCC8
231 - switched to using the KERNEL_VERSION() macro in tests instead of handcoded
232 version parsing
233 - improved the setup ordering in tests (setup libgpiomockup before checking
234 the kernel version
235 - add 'extern "c"' to the libgpiomockup header to make it usable from C++
236 - add chip index validation to libgpiomockup functions
237 - check if the debugfs directory used by libgpiomockup is writable before
238 using it to set the pull of dummy lines
239 - add several new test cases
240 - improved Python example programs (made gpiomon's output similar to the
241 original tool, make gpioset wait for an ENTER pres by default)
242 - fixed the major:minor number comparison between the device and sysfs
243 - deprecated the gpiod_line_needs_update() function and removed the logic
244 behind it from the library
245 - shrank the Python bindings a bit by directly returning the value from
246 PyErr_SetFromErrno()
247 - dropped noexcept from methods which can throw in C++ bindings
248 - switched to initializing the bitset with integers instead of strings in C++
249 bindings
250 - allowed gpiod_line_set_value_bulk() to accept null pointers
251 - when building Python bindings: check for the existence of python-config
252 - improved the readability of help text messages for command-line tools
253 - reworked the .gitignore file: added libtool scripts generated during
254 cross-compilation and split the main .gitignore into several fine-grained
255 files
256 - fixed several misspellings
257 - other minor tweaks and improvements
258
259 Bug fixes:
260 - fixed memory leaks in libgpiomockup
261 - fixed memory leaks in the testing framework
262 - fixed a segfault in error path in tests
263 - make gpioinfo show lines claimed by the kernel as used even if they have no
264 named consumer
265 - fixed the test cases validating the '--active-low' switch in gpiomon and
266 the GPIOHANDLE_REQUEST_ACTIVE_LOW flag in the core library after a fix
267 for incorrect behavior was merged in linux v5.2.7
268 - stopped failing at init-time of libgpiomockup if gpio-mockup is already
269 loaded
270 - added a missing throw keyword in error path in C++ bindings
271 - fixed a segfault in Python bindings when calling Line.request() without
272 the consumer argument
273
274 libgpiod v1.4
275 =============
276
277 New features:
278 - updated the testing framework to work with linux v5.1 in which the debugfs
279 interface of the GPIO testing module changed in a backward incompatible way
280 - factored out the code controlling the GPIO testing module into a separate
281 shared library that may be reused by future testing executables for different
282 language bindings
283 - removed the --enable-install-tests build option and the make check target as
284 they were redundant, subsequently tests are now installed as a normal program
285 whenever they're enabled with --enable-tests
286
287 Improvements:
288 - removed unnecessary std::move calls from C++ bindings
289 - added the explicit keyword to bool() operators in C++ bindings
290
291 Bug fixes:
292 - fix out of source build of man pages
293
294 libgpiod v1.3
295 =============
296
297 New features:
298 - the gpio-tools now have automatically generated (using help2man) man pages
299 that are bundled with the release tarball
300 - support a singular 'default_val' argument in Line.request() in python
301 bindings
302 - the test executable can now be installed to the bindir along with the
303 gpio-tools and the testing framework will look for the binaries in standard
304 locations if it's not run from the top source directory
305 - gpiomon now supports line buffered output
306
307 Improvements:
308 - tweaks to the C API documentation
309 - treewide unification of the naming of local variables
310 - extended helptest in gpioset (explanation of the way the character device
311 works aimed at reducing user confusion when a GPIO line reverts to its
312 default value after gpioset exits)
313 - the source directories have been rearranged and the src/ directory was
314 dropped, lib/ and tools/ now live in the top source directory
315 - minor coding style fixes in python bindings, ctxless functions and tools
316 - automatically generated documentation is now removed by 'make clean'
317 - all Makefiles now use top_builddir instead of relative paths
318 - code shrink in configure.ac
319 - add a brief section about API documentation to README
320
321 Bug fixes:
322 - fix a segfault causing bug in C++ bindings
323 - make bitset_cmp::operator() const as this is required by C++17
324 - ignore 'remove' events from udev in the testing framework
325 - don't segfault on num_lines = 0 in ctxless functions
326
327 libgpiod v1.2
328 =============
329
330 New features:
331 - new contextless event monitor that should replace the previous event loop
332 which caused problems on hardware that doesn't allow to watch both rising
333 and falling edge events
334 - port gpiomon to the new event monitor
335 - deprecate event loop routines
336
337 Improvements:
338 - many minor improvements and tweaks in the python module
339 - new test cases for python bindings
340 - add much more detailed documentation for python bindings
341 - coding style improvements in gpio-tools
342 - remove unicode characters from build scripts
343 - improve the help text messages in gpio-tools
344 - make gpiod_chip_open() and its variants verify that we're really trying to
345 open a character device associated with a GPIO chip
346
347 Bug fixes:
348 - fix memory leaks in python bindings
349 - fix a memory corruption bug in python bindings
350 - fix the default_vals argument in line request implementation in python
351 bindings
352 - fix a compilation warning in python bindings
353 - fix gpiod_Chip_find_lines() for nonexistent lines (python bindings)
354 - add a missing include in C++ bindings examples
355 - correctly display the version string in gpio-tools
356
357 libgpiod v1.1
358 =============
359
360 New features:
361 - add object-oriented C++ bindings
362 - add object-oriented Python3 bindings
363 - add several new helpers to the C API
364
365 Improvements:
366 - start using separate versioning schemes for API and ABI
367 - use SPDX license identifiers and remove LGPL boilerplate
368 - check for unexpanded macros in configure.ac
369
370 Bug fixes:
371 - include Doxyfile in the release tarball
372 - fix the implicit-fallthrough warnings
373 - make tests work together with gpio-mockup post v4.16 linux kernel
374 - use reference counting for line file descriptors
375 - correctly handle POLLNVAL when polling for events
376 - fix the copyright notice in tools
377
378 libgpiod v1.0
379 =============
380
381 NOTE: This is a major release - it breaks the API compatibility with
382 the 0.x.y series.
383
384 New features:
385 - remove custom error handling in favor of errnos
386 - merge the two separate interfaces for event requests and regular line
387 requests
388 - redesign the simple API
389 - change the prefix of the high-level API from 'simple' to 'ctxless' (for
390 contextless) which better reflects its purpose
391 - redesign the iterator API
392 - make use of prefixes more consistent
393 - rename symbols all over the place
394 - various minor tweaks
395 - add support for pkg-config
396
397 Improvements:
398 - add a bunch of helpers for line requests
399 - split the library code into multiple source files by functionality
400 - re-enable a test case previously broken by a bug in the kernel
401
402 Bug fixes:
403 - correctly handle signal interrupts when polling in gpiod_simple_event_loop()
404 - fix the linking order when building with static libraries
405 - pass the correct consumer string to gpiod_simple_get_value_multiple() in
406 gpioget
407 - fix a line test case: don't use open-drain or open-source flags for input
408 mode
409 - fix the flags passed to ar in order to supress a build warning
410 - set the last error code in gpiod_chip_open_by_label() to ENOENT if a chip
411 can't be found
412 - fix checking the kernel version in the test suite
413 - fix various coding style issues
414 - initialize the active low variable in gpiomon
415
416 libgpiod v0.3
417 =============
418
419 New features:
420 - gpiomon can now watch multiple lines at the same time and supports custom
421 output formats which can be specified using the --format argument
422 - testing framework can now test external programs: test cases for gpio-tools
423 have been added
424
425 Improvements:
426 - improve error messages
427 - improve README examples
428 - configure script improvements
429
430 Bug fixes:
431 - use correct UAPI flags when requesting line events
432 - capitalize 'GPIO' in error messages in gpioset, gpioget & gpiomon
433 - tweak the error message on invalid arguments in gpiofind
434 - don't ignore superfluous arguments and fix the displayed name for falling
435 edge events in gpiomon
436
437 libgpiod v0.2
438 =============
439
440 New features:
441 - relicensed under LGPLv2.1
442 - implemented a unit testing framework together with a comprehensive
443 set of test cases
444 - added a non-closing variant of the gpiochip iterator and foreach
445 macro [by Clemens Gruber]
446 - added gpiod_chip_open_by_label()
447
448 Improvements:
449 - Makefiles & build commands have been reworked [by Thierry Reding]
450 - documentation updates
451 - code shrinkage here and there
452 - coding style fixes
453 - removed all designated initializers from the header for better standards
454 compliance
455
456 Bug fixes:
457 - fix the return value of gpiod_simple_event_loop()
458 - don't try to process docs if doxygen is not installed
459 - pass the O_CLOEXEC flag to open() when opening the GPIO chip device file
460 - include <poll.h> instead of <sys/poll.h> in gpioset
461 - fix a formatting issue in gpioinfo for chips with >100 GPIO lines
462 - fix a bug when requesting both-edges event notifications
463 - fix short options in gpiomon (short opt for --silent was missing)
464 - correct the kernel headers requirements in README
465 - include <time.h> for struct timespec
466 - include <poll.h> instead of <sys/poll.h>
467 - detect the version of strerror_r()
468
469 libgpiod v0.1
470 =============
471
472 First version of libgpiod.
473
474 It's currently possible to:
475 - get and set the values of multiple GPIO lines with a single function call
476 - monitor a GPIO line for events
477 - enumerate all GPIO chips present in the system
478 - enumerate all GPIO lines exposed by a chip
479 - extract information about GPIO chips (label, name, number of lines)
480 - extract information about GPIO lines (name, flags, state, user)
481
482 Tools provided with the library are:
483 - gpioget - read values from GPIO lines
484 - gpioset - set values of GPIO lines
485 - gpiodetect - list GPIO chips
486 - gpioinfo - print info about GPIO lines exposed by a chip
487 - gpiomon - monitor a GPIO line for events
488 - gpiofind - find a GPIO line by name