40 Commits

Author SHA256 Message Date
9f526bda65 Accepting request 1302440 from hardware
OBS-URL: https://build.opensuse.org/request/show/1302440
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgpiod?expand=0&rev=17
2025-09-02 18:02:39 +00:00
26e6892fd3 Accepting request 1302438 from home:pgajdos
- version update to 2.2.2
  * don't implicity unquote unnamed lines in gpioinfo
  * remove useless variable in reconfigure example
  * don't let struct line_config balloon out of control and trigger an OOM
  * drop python3-config check from configure.ac

OBS-URL: https://build.opensuse.org/request/show/1302438
OBS-URL: https://build.opensuse.org/package/show/hardware/libgpiod?expand=0&rev=38
2025-09-02 13:57:37 +00:00
547d46d575 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
6f78accb35 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
7d715027ca 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
fad82a1107 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
3ef85484b7 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
0a92779ed7 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
cfbcb3b3ac 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
a27643664e 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
8b26b3534d 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
fb03e0dc4d 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
5bdfe7e6ca 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
ff455bccb8 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
4a9ade548d 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
a5f979d477 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
f21bcd9d4b 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
c95f48c117 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
e69eb8b373 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
4fcb373d31 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
b11af9ab6b 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
a7eebe04a3 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
6ab6da818c 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
8f4fb8c3df 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
774d638782 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
38d6027423 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
d3b94c8a53 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
c0cc501304 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
3cc67dbd70 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
8f03bde42a 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
3f7432df48 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
6e20787cf3 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
55f779f7b1 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
ee0e6d75f4 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
7580bf432d 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
97d45a6b6e 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
a524c29e23 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
6207a10925 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
5fe0209312 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
46e043c919 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