Commit Graph

39 Commits

Author SHA256 Message Date
613d3c236c Sync changes to SLFO-1.2 branch 2025-08-20 09:38:00 +02:00
f91a9649f0 Accepting request 1287887 from hardware
- Upgrade to 2.2.1
  * Major rework / Breaks API
  * Support Catch2 v3

OBS-URL: https://build.opensuse.org/request/show/1287887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=16
2025-06-23 13:06:13 +00:00
76f0d88748 Fix some rpmlint errors
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=36
2025-06-17 15:21:35 +00:00
4cd58a3c87 Accepting request 1286382 from home:Guillaume_G:branches:hardware
- Upgrade to 2.2.1
  * Major rework / Breaks API
  * Support Catch2 v3

OBS-URL: https://build.opensuse.org/request/show/1286382
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=35
2025-06-17 13:19:34 +00:00
77bef41cd8 Accepting request 1010612 from hardware
OBS-URL: https://build.opensuse.org/request/show/1010612
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=15
2022-10-14 13:42:17 +00:00
bcd8f7f823 Accepting request 1010611 from home:Guillaume_G:libgpiod
- Use Catch2-2-devel on Tumbleweed since libgpiod is not ready
  for Catch2 v3

OBS-URL: https://build.opensuse.org/request/show/1010611
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=33
2022-10-14 08:02:33 +00:00
64105007c9 Accepting request 955620 from hardware
OBS-URL: https://build.opensuse.org/request/show/955620
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=14
2022-02-17 22:40:23 +00:00
43af5d4f79 Accepting request 955478 from home:Vogtinator:branches:hardware
- Update to v1.6.3:
  * Bug fixes:
    - fix uninitialized default_vals being passed to gpiod_LineBulk_request()
      in Python bindings
    - fix building C++ bindings with clang
    - fix one of the line request test cases
- Update to v1.6.2:
  * Improvements:
    - allow to build the library with pre linux v5.5 kernel headers
- Update to v1.6.1:
  * Bug fixes:
    - fix incorrect object size of gpiod.LineBulk in Python bindings
    - fix a crash in Line.request() when it's called without keyword arguments
- Update to v1.6:
  * New features:
    - add a standardized '__version__' module attribute in Python bindings
    - print the bias flags info (if set) in gpioinfo
  * Improvements:
    - remove unnecessary indirection in free_dirs() in iterator code
    - put all ABI versions next to one another in configure.ac
    - improve std namespace resolution in C++ bindings
    - add more checks for non-standard functions in configure.ac
    - various code size improvements
    - enforce gnu89 C standard in makefiles
    - many documentation improvements
    - unduplicate signalfd() handling in tools
    - fix a forward declaration for line_event in C++ bindings
  * Bug fixes:
    - relax is_gpiochip_cdev() for symbolic links
    - make gpiod_line_get_value_bulk() work for bulks of lines requested for

OBS-URL: https://build.opensuse.org/request/show/955478
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=32
2022-02-17 12:18:20 +00:00
76e6c44f0b Accepting request 796563 from hardware
OBS-URL: https://build.opensuse.org/request/show/796563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=13
2020-04-23 16:40:05 +00:00
061a779b82 Accepting request 796561 from home:Guillaume_G:branches:hardware
- Update to v1.5.1:
  * Bug fixes:
    - relax gpiod_chip_open() for symbolic links
- Update to v1.5:
  * New features:
    - switched to using the GLib testing framework for core library tests and BATS
      (Bash Automated Testing System) for command-line tools
    - used Catch2 C++ testing framework to implement a proper test-suite for C++
      bindings while also reusing the API provided by libgpiomockup
    - used Python's unittest package to implement a proper test suite for Python
      bindings and reused libgpiockup again
    - provided line::update() and Line.update() routines for C++ and Python
      bindings respectively allowing to update the line info from bindings as well
    - added support for bias flags which are a new functionality first available in
      linux v5.5; subsequently the library now requires v5.5 kernel headers to
      build; the new flags are supported in the core library, C++ and Python
      bindings as well as the command-line tools
    - added support for the new SET_CONFIG ioctl(): this too is a new functionality
      added in linux v5.5; both features have been implemented in the library by
      Kent Gibson
    - added routines for reading multiple line events at once to the core library,
      C++ and Python bindings
  * Improvements:
    - constified function arguments where applicable in libgpiomockup
    - fixed the name of the test exeucutable displayed at build time
    - improved the function pointer casting in Python bindings to avoid warnings
      emitted by GCC8
    - switched to using the KERNEL_VERSION() macro in tests instead of handcoded
      version parsing
    - improved the setup ordering in tests (setup libgpiomockup before checking
      the kernel version
    - add 'extern "c"' to the libgpiomockup header to make it usable from C++
    - add chip index validation to libgpiomockup functions
    - check if the debugfs directory used by libgpiomockup is writable before
      using it to set the pull of dummy lines
    - add several new test cases
    - improved Python example programs (made gpiomon's output similar to the
      original tool, make gpioset wait for an ENTER pres by default)
    - fixed the major:minor number comparison between the device and sysfs
    - deprecated the gpiod_line_needs_update() function and removed the logic
      behind it from the library
    - shrank the Python bindings a bit by directly returning the value from
      PyErr_SetFromErrno()
    - dropped noexcept from methods which can throw in C++ bindings
    - switched to initializing the bitset with integers instead of strings in C++
      bindings
    - allowed gpiod_line_set_value_bulk() to accept null pointers
    - when building Python bindings: check for the existence of python-config
    - improved the readability of help text messages for command-line tools
    - reworked the .gitignore file: added libtool scripts generated during
      cross-compilation and split the main .gitignore into several fine-grained
      files
    - fixed several misspellings
    - other minor tweaks and improvements
  * Bug fixes:
    - fixed memory leaks in libgpiomockup
    - fixed memory leaks in the testing framework
    - fixed a segfault in error path in tests
    - make gpioinfo show lines claimed by the kernel as used even if they have no
      named consumer
    - fixed the test cases validating the '--active-low' switch in gpiomon and
      the GPIOHANDLE_REQUEST_ACTIVE_LOW flag in the core library after a fix
      for incorrect behavior was merged in linux v5.2.7
    - stopped failing at init-time of libgpiomockup if gpio-mockup is already
      loaded
    - added a missing throw keyword in error path in C++ bindings
    - fixed a segfault in Python bindings when calling Line.request() without
      the consumer argument

OBS-URL: https://build.opensuse.org/request/show/796561
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=30
2020-04-23 13:43:01 +00:00
36db3480e2 Accepting request 794919 from hardware
OBS-URL: https://build.opensuse.org/request/show/794919
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=12
2020-04-17 22:32:58 +00:00
f7aba5f77e Accepting request 794917 from home:Guillaume_G:branches:hardware2
- Update to v1.4.3:
  * Bug fixes:
    - relax gpiod_chip_open() for symbolic links

OBS-URL: https://build.opensuse.org/request/show/794917
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=28
2020-04-17 13:41:48 +00:00
d634721e09 Accepting request 786536 from hardware
OBS-URL: https://build.opensuse.org/request/show/786536
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=11
2020-03-20 22:55:28 +00:00
0f8f0c7799 Accepting request 786534 from home:ptesarik:branches:hardware
- Rename the libgpiod package (which contains the command-line tools) to libgpiod-utils.

Having libgpiod2-* (the library) and libgpiod (the tools) is quite confusing. Let's follow Fedora naming scheme and call the command-line tools package libgpiod-utils.

OBS-URL: https://build.opensuse.org/request/show/786534
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=26
2020-03-19 18:10:27 +00:00
027fbd6b84 Accepting request 783433 from hardware
OBS-URL: https://build.opensuse.org/request/show/783433
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=10
2020-03-11 17:49:35 +00:00
3b2e99c880 Accepting request 783432 from home:Guillaume_G
- Update to version 1.4.2 (Bug fixes release):
  * fix the major:minor number comparison between the device and sysfs
  * drop noexcept from direction() and active_state() in C++ bindings
  * fix a segfault when calling Line.request() in Python bindings

OBS-URL: https://build.opensuse.org/request/show/783432
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=24
2020-03-10 14:33:45 +00:00
f3362860ec Accepting request 769613 from hardware
OBS-URL: https://build.opensuse.org/request/show/769613
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=9
2020-02-05 18:41:21 +00:00
04755e0a39 Accepting request 769602 from home:dimstar:Factory
Shortcut through -mini

OBS-URL: https://build.opensuse.org/request/show/769602
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=22
2020-02-03 14:30:06 +00:00
3d1d0d0148 Accepting request 744438 from hardware
Rename python package

OBS-URL: https://build.opensuse.org/request/show/744438
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=8
2019-10-31 21:34:10 +00:00
fe288f8462 Accepting request 744437 from home:Guillaume_G:branches:hardware
Add provides/obsolete for python package due to the rename

OBS-URL: https://build.opensuse.org/request/show/744437
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=20
2019-10-31 10:45:42 +00:00
ab5995ca12 Accepting request 744415 from home:Guillaume_G:branches:hardware
Rename python-libgpiod to python3-gpiod

OBS-URL: https://build.opensuse.org/request/show/744415
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=19
2019-10-31 09:44:53 +00:00
605a8f1e58 Accepting request 743965 from hardware
- Update to v1.4.1 (Bug fixes release):
  * fix GCC8 warnings when building python bindings
  * fix a bug in gpioinfo where lines used by the kernel without any consumer
    string were reported as unused
  * fix a bug in line::event_get_fd() in C++ bindings where the exception
    wouldn't be throws in error cases due to a missing 'throw' keyword
  * fix a couple bugs in the test-suite
  * disable a failing assertion in the test-suite that stopped working after
  linux v5.2.7

OBS-URL: https://build.opensuse.org/request/show/743965
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=7
2019-10-30 13:48:01 +00:00
a01c4a7a0a Accepting request 743963 from home:Guillaume_G:branches:hardware
- Update to v1.4.1 (Bug fixes release):
  * fix GCC8 warnings when building python bindings
  * fix a bug in gpioinfo where lines used by the kernel without any consumer
    string were reported as unused
  * fix a bug in line::event_get_fd() in C++ bindings where the exception
    wouldn't be throws in error cases due to a missing 'throw' keyword
  * fix a couple bugs in the test-suite
  * disable a failing assertion in the test-suite that stopped working after
  linux v5.2.7

OBS-URL: https://build.opensuse.org/request/show/743963
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=17
2019-10-30 08:00:09 +00:00
52335b78d0 Accepting request 709751 from hardware
- Replace *_number with *_soversion
- Enable build of tests (package gpiod-test and libgpiomockup) for Tumbleweed
- Update to 1.4:
  * New features:
    - updated the testing framework to work with linux v5.1 in which the debugfs
      interface of the GPIO testing module changed in a backward incompatible way
    - factored out the code controlling the GPIO testing module into a separate
      shared library that may be reused by future testing executables for different
      language bindings
    - removed the --enable-install-tests build option and the make check target as
      they were redundant, subsequently tests are now installed as a normal program
      whenever they're enabled with --enable-tests
  * Improvements:
    - removed unnecessary std::move calls from C++ bindings
    - added the explicit keyword to bool() operators in C++ bindings
  * Bug fixes:
    - fix out of source build of man pages

OBS-URL: https://build.opensuse.org/request/show/709751
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=6
2019-06-13 21:06:37 +00:00
e1d06a097c Accepting request 709750 from home:Guillaume_G:branches:hardware
- Replace *_number with *_soversion

OBS-URL: https://build.opensuse.org/request/show/709750
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=15
2019-06-13 13:41:50 +00:00
eff64b4b0a Accepting request 709742 from home:Guillaume_G:branches:hardware
- Enable build of tests (package gpiod-test and libgpiomockup) for Tumbleweed
- Update to 1.4:
  * New features:
    - updated the testing framework to work with linux v5.1 in which the debugfs
      interface of the GPIO testing module changed in a backward incompatible way
    - factored out the code controlling the GPIO testing module into a separate
      shared library that may be reused by future testing executables for different
      language bindings
    - removed the --enable-install-tests build option and the make check target as
      they were redundant, subsequently tests are now installed as a normal program
      whenever they're enabled with --enable-tests
  * Improvements:
    - removed unnecessary std::move calls from C++ bindings
    - added the explicit keyword to bool() operators in C++ bindings
  * Bug fixes:
    - fix out of source build of man pages

OBS-URL: https://build.opensuse.org/request/show/709742
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=14
2019-06-13 12:59:26 +00:00
87bfb0ac2f Accepting request 693637 from hardware
- Add conflicts with libgpiod1 to help upgrade
- devel package now requires libgpiod and libgpiodcxx
- Move libgpiodcxx to its own package
- Update to 1.3:
  * New features:
    - the gpio-tools now have automatically generated (using help2man) man pages
      that are bundled with the release tarball
    - support a singular 'default_val' argument in Line.request() in python
      bindings
    - the test executable can now be installed to the bindir along with the
      gpio-tools and the testing framework will look for the binaries in standard
      locations if it's not run from the top source directory
    - gpiomon now supports line buffered output
  * Improvements:
    - tweaks to the C API documentation
    - treewide unification of the naming of local variables
    - extended helptest in gpioset (explanation of the way the character device
      works aimed at reducing user confusion when a GPIO line reverts to its
      default value after gpioset exits)
    - the source directories have been rearranged and the src/ directory was
      dropped, lib/ and tools/ now live in the top source directory
    - minor coding style fixes in python bindings, ctxless functions and tools
    - automatically generated documentation is now removed by 'make clean'
    - all Makefiles now use top_builddir instead of relative paths
    - code shrink in configure.ac
    - add a brief section about API documentation to README
    
  * Bug fixes:
    - fix a segfault causing bug in C++ bindings
    - make bitset_cmp::operator() const as this is required by C++17
    - ignore 'remove' events from udev in the testing framework
    - don't segfault on num_lines = 0 in ctxless functions

OBS-URL: https://build.opensuse.org/request/show/693637
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=5
2019-04-14 10:22:33 +00:00
617fd43bee Accepting request 693634 from home:Guillaume_G:branches:hardware
- Add conflicts with libgpiod1 to help upgrade

OBS-URL: https://build.opensuse.org/request/show/693634
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=12
2019-04-12 07:22:10 +00:00
973f48d4f8 Accepting request 691920 from home:Guillaume_G:branches:hardware
- devel package now requires libgpiod and libgpiodcxx
- Move libgpiodcxx to its own package

OBS-URL: https://build.opensuse.org/request/show/691920
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=11
2019-04-05 23:58:53 +00:00
e86548d5dd Accepting request 691584 from home:Guillaume_G:branches:openSUSE:Factory
Fix libgpiod numbering

OBS-URL: https://build.opensuse.org/request/show/691584
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=10
2019-04-04 16:16:18 +00:00
1412537807 Accepting request 691309 from home:Guillaume_G:branches:hardware
- Update to 1.3:
  * New features:
    - the gpio-tools now have automatically generated (using help2man) man pages
      that are bundled with the release tarball
    - support a singular 'default_val' argument in Line.request() in python
      bindings
    - the test executable can now be installed to the bindir along with the
      gpio-tools and the testing framework will look for the binaries in standard
      locations if it's not run from the top source directory
    - gpiomon now supports line buffered output
  * Improvements:
    - tweaks to the C API documentation
    - treewide unification of the naming of local variables
    - extended helptest in gpioset (explanation of the way the character device
      works aimed at reducing user confusion when a GPIO line reverts to its
      default value after gpioset exits)
    - the source directories have been rearranged and the src/ directory was
      dropped, lib/ and tools/ now live in the top source directory
    - minor coding style fixes in python bindings, ctxless functions and tools
    - automatically generated documentation is now removed by 'make clean'
    - all Makefiles now use top_builddir instead of relative paths
    - code shrink in configure.ac
    - add a brief section about API documentation to README
    
  * Bug fixes:
    - fix a segfault causing bug in C++ bindings
    - make bitset_cmp::operator() const as this is required by C++17
    - ignore 'remove' events from udev in the testing framework
    - don't segfault on num_lines = 0 in ctxless functions

OBS-URL: https://build.opensuse.org/request/show/691309
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=9
2019-04-03 19:43:30 +00:00
c656cde304 Accepting request 653526 from hardware
OBS-URL: https://build.opensuse.org/request/show/653526
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=4
2018-12-04 19:54:59 +00:00
529f90938a Accepting request 653525 from home:Guillaume_G:branches:hardware
- Update to 1.2:
  * New features:
    - new contextless event monitor that should replace the previous event loop
    which caused problems on hardware that doesn't allow to watch both rising
    and falling edge events
    - port gpiomon to the new event monitor
    - deprecate event loop routines
  * Improvements:
    - many minor improvements and tweaks in the python module
    - new test cases for python bindings
    - add much more detailed documentation for python bindings
    - coding style improvements in gpio-tools
    - remove unicode characters from build scripts
    - improve the help text messages in gpio-tools
    - make gpiod_chip_open() and its variants verify that we're really trying to
    open a character device associated with a GPIO chip
  * Bug fixes:
    - fix memory leaks in python bindings
    - fix a memory corruption bug in python bindings
    - fix the default_vals argument in line request implementation in python
    bindings
    - fix a compilation warning in python bindings
    - fix gpiod_Chip_find_lines() for nonexistent lines (python bindings)
    - add a missing include in C++ bindings examples
    - correctly display the version string in gpio-tools

OBS-URL: https://build.opensuse.org/request/show/653525
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=7
2018-12-03 09:49:30 +00:00
258e199576 Accepting request 633486 from hardware
OBS-URL: https://build.opensuse.org/request/show/633486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=3
2018-09-07 13:40:01 +00:00
4de64f40e9 Accepting request 633485 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Add python binding
- Update to 1.1.1:
  * Bug fixes:
    - fix memory leaks in python bindings
    - fix a memory corruption bug in python bindings
    - fix the default_vals argument in line request implementation in python
      bindings
    - fix a compilation warning in python bindings

OBS-URL: https://build.opensuse.org/request/show/633485
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=5
2018-09-05 14:06:08 +00:00
6b18a00cb6 Accepting request 626371 from hardware
OBS-URL: https://build.opensuse.org/request/show/626371
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=2
2018-07-31 14:00:39 +00:00
Tomáš Chvátal
2fc04a55cb Accepting request 626061 from home:jengelh:branches:hardware
- Update RPM groups. Reorder sentences to put the library first,
  and the old sysfs interface last.

OBS-URL: https://build.opensuse.org/request/show/626061
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=3
2018-07-30 07:33:58 +00:00
e21ffde5c5 Accepting request 617513 from hardware
- Add C++ bindings
- Initial package version 1.1

OBS-URL: https://build.opensuse.org/request/show/617513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=1
2018-06-29 20:28:51 +00:00
Ismail Dönmez
c87dcdd6a1 Accepting request 617415 from home:Guillaume_G:branches:Application:Geo
- Add C++ bindings
- Initial package version 1.1

OBS-URL: https://build.opensuse.org/request/show/617415
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=1
2018-06-18 12:19:38 +00:00