Commit Graph

2924 Commits

Author SHA1 Message Date
Sakib Sajal
59d6f63abb gd: fix CVE-2021-38115
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-26 10:10:56 -07:00
Sinan Kaya
621bdc1993 c-ares: remove custom patches
Current patch is breaking the library dependencies added by cmake
especially when you are static linking.

Applications need the ws2_32 library to be linked for mingw32
and with the existing patch this is not getting passed to the users.

Current patch seems to address this issue:
https://github.com/c-ares/c-ares/issues/373

Both issues are resolved in 1.17.2:

1.17.2-r0/git $ find . | grep c-ares-config.cmake.in
./c-ares-config.cmake.in
1.17.2-r0/git $ find . | grep libcares.pc.cmake
./libcares.pc.cmake

Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-23 22:00:39 -07:00
wangmy
6a0c9ea9d3 opensc: upgrade 0.21.0 -> 0.22.0
Use standard paths for file cache on Linux and OSX
Various issues of memory/buffer handling in legacy drivers mostly
reported by oss-fuzz and coverity (tcos, oberthur, isoapplet, iasecc,
westcos, gpk, flex, dnie, mcrd, authentic, belpic)
Add threading test to pkcs11-tool
Add support to generate generic secret keys
opensc-explorer: Print information about LCS (Life cycle status byte)
Add support for Apple's arm64 (M1) binaries, removed TokenD.
A seperate installer with TokenD (and without arm64 binaries) will be available.
Support for gcc11 and its new strict aliasing rules
Initial support for building with OpenSSL 3.0
pkcs15-tool: Write data objects in binary mode
Avoid limited size of log messages

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-23 22:00:39 -07:00
wangmy
c49173b09c c-ares: upgrade 1.17.1 -> 1.17.2
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-20 09:26:18 -07:00
Andreas Müller
7b672a3dfe udisks2: upgrade 2.9.2 -> 2.9.3
Changes since 2.9.2:
* Ignore "Extended Boot Loader" GPT partition
* Use the mkfs command to format exfat partitions
* udiskslinuxblockobject: Add safety checks for UDisksLinuxBlock interface
* udiskslinuxfsinfo: Add dosfstools >= 4.2 quirks
* udiskslinuxblock: Re-read partition table after creating FAT filesystem
* udiskslinuxdriveata: Use GTask to apply configuration in a thread
* udiskslinuxfilesystemhelpers: Fix leaking string in case g_mkdtemp() fails
* udiskslinuxmdraidobject: Optimize unused data out from the g_io_channel_read_to_end() call
* udiskslinuxmdraidobject: Handle source attach failure gracefully
* udiskslinuxmanager: Trigger uevent on a newly created mdraid array
* udiskslinuxswapspace: Trigger uevent after setting label
* udiskslinuxblock: Handle missing parent device while looking up drive for block
* modules: Limit module name to alphanumeric characters and -_ separators
* tests: Mark Drive.ATA tests as unstable
* tests: Handle missing /dev/disk/by-path gracefully
* tests: Respect custom method call timeouts
* tests: Extend iscsi method call timeouts
* tests: Extend module tests with invalid characters
* tests: Do not dist config_h.py
* spec: Do not build udisks2-zram for any RHEL release
* udiskslinuxpartition: Trigger uevent after changing partition type
* dbus_tests: Fix including non-existing tests based on tags
* Add (no)autodefrag to list of allowed btrfs mount options
* udisksclient: Make get_block_for_drive deterministic
* Fix two comments (one copy'o, one typo)

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-20 09:26:18 -07:00
Andreas Müller
9f2ce9d46b fltk: upgrade 1.3.6 -> 1.3.7
CHANGES IN FLTK 1.3                        RELEASED: Jul 25 2021

FLTK 1.3.7 is a maintenance release for macOS only. It fixes one
regression introduced in FLTK 1.3.6 and two long standing timer
issues on macOS.

Other platforms than macOS are not concerned.

Changes:

  Avoid premature FL_RELEASE event at start of drag-n-drop operation
  Fix a timer inconsistency and prevent a crash
  Fl::add_timeout() must always create a new timer (#248)

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-20 09:26:18 -07:00
Andreas Müller
f45df170dc fltk/CMake: Do not export executable 'fluid'
It does not work for us: The executable 'fluid' is not installed in
receipe-sysroot. So fltk cmake config contains an invalid reference.
Consumers of fltk using cmake will fail during configure for this invalid
reference with something like:

| CMake Error at <...>/recipe-sysroot/usr/share/fltk/FLTK-Targets.cmake:129 (message):
|   The imported target "fluid" references the file
|
|      "<...>/recipe-sysroot/usr/bin/fluid"
|
|   but this file does not exist.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-20 09:26:18 -07:00
Anton Blanchard
7982a1260f cereal: Use GNUInstallDirs instead of hard wiring install directories
On a multilib setup cmake files should go into lib64.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-19 09:58:56 -07:00
leimaohui
b8297bc6bd uim: Dleted takao fonts from DEPENDS.
It is odd that specify fonts in uim DEPENDS.

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-17 08:15:01 -07:00
Yi Zhao
ed556a580a augeas: add selinux to PACKAGECONFIG if enable selinux distro feature
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-12 22:58:40 -07:00
Yi Zhao
643d09d623 augeas: rename PACKAGECONFIG[libselinux] to PACKAGECONFIG[selinux]
Usually we use PACKAGECONFIG[selinux] rather than
PACKAGECONFIG[libselinux] for selinux distro feautre.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-12 19:50:53 -07:00
Maksym Sloyko
3cf2475ea0 libusbgx: Configure the Devices Used
Add ability to configure the UDC used for specific schema.
The feature is backwards compatible, so existing users don't need to
change anything.

If one wants to specify which UDC is used for specific schema,
for example, `eth0`, they can add this variable to the configuration
file:

UDC_FOR_SCHEMA_eth0=f8000000.udc

If the device file exists in /sys/class/udc when the gadget is started,
it will be used for this schema.

If this configuration is not present, first available device is picked.

Signed-off-by: Maksym Sloyko <maxims@google.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-07 21:35:04 -07:00
zhengruoqin
41fd0b4789 poppler: upgrade 21.07.0 -> 21.08.0
Release 21.08.0:
        core:
         * Add API to allow addition and modification of outlines into a PDF
         * Use additional samples to test for constant parts of an axial gradient
         * forms: Create fallback fonts for some well known font names
         * Support reading the PDF Version from the Catalog
         * Fix XRef::copy when there are modified objects
         * Take into account that Date string may be in unicode
         * JBIG2Stream: Fix regression in "Do not consider a size-0 to be an error"
         * Replace a local bubble sort implementation by std::sort
         * Fix issues with malformed files

        build system:
         * Better error message when libjpeg is not found
         * Better error messages when libopenjpeg2 is not found

        qt5/qt6:
         * Document that a document has to outlive its pages
         * Make getPdfVersion return a dedicated version object

        glib:
         * mimick TextSelectionDumper logic change for spaceAfter

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06 20:38:40 -07:00
wangmy
70b5406c5e monit: upgrade 5.28.0 -> 5.28.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06 20:38:40 -07:00
Khem Raj
fb95946eb5 emacs,libgpiod,cockpit: Fix override syntax in using FILES_${PN}
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06 20:38:40 -07:00
Mingli Yu
af81aad996 hdf5: improve reproducibility
Remove the build flags to improve reproducibility.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06 20:38:40 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj
552269da69 vboxguestdrivers: Remove __divmoddi4 patch
This function has been added upstream as well, therefore the patch is no
longer needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Gianfranco Costamagna <locutusofborg@debian.org>
2021-08-03 08:53:04 -07:00
Gianfranco
66b5131e26 vboxguestdrivers: upgrade 6.1.22 -> 6.1.24
Drop patch to fix build failure with kernel 5.13, now part of upstream codebase

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-29 10:35:38 -07:00
Paulo Neves
b5d74f8a6b htop: Add ncurses-terminfo-base to RDEPENDS
Without it there are no terminal configurations on the target
and htop refuses to run.
2021-07-27 09:52:24 -07:00
wangmy
4d6141dd1d cmark: upgrade 0.30.0 -> 0.30.1
Changelog:
Properly indent block-level contents of list items in man (#258).
https://github.com/commonmark/cmark/issues/258
This handles nested lists as well as items with multiple paragraphs.
The change requires addition of a new field block_number_in_list_item
to cmark_renderer, but this does not change the public API.

Fix quadratic behavior when parsing emphasis (#389, Nick
Wellnhofer). Delimiters can be deleted, so store delimiter positions
instead of pointers in openers_bottom. Besides causing undefined
behavior when reading a dangling pointer, this could also result
in quadratic behavior when parsing emphasis.
https://github.com/commonmark/cmark/issues/389

Fix quadratic behavior when parsing smart quotes (#388, Nick Wellnhofer).
Remove matching smart quote delimiters. Otherwise, the same opener
could be found over and over, preventing the openers_bottom
optimization from kicking in and leading to quadratic behavior when
processing lots of quotes.
https://github.com/commonmark/cmark/issues/388

Modify CMake configuration so that the project can be built with
older versions of CMake (#384, Saleem Abdulrasool). (In 0.30.0,
some features were used that require CMake >= 3.3.) The cost of this
backwards compatibility is that developers must now explicitly invoke
cmark_add_compile_options when a new compilation target is added.
https://github.com/commonmark/cmark/issues/384

Remove a comma at the end of an enumerator list, which was flagged
by clang as a C++11 extension.

make_man_page.py: use absolute path with CDLL. This avoids the error
"file system relative paths not allowed in hardened programs."

Include cmark version in cmark(3) man page (instead of LOCAL).

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-27 09:52:23 -07:00
zhengruoqin
ffceca1f17 span-lite: upgrade 0.9.2 -> 0.10.0
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-16 09:23:04 -07:00
Pierre-Jean Texier
1860045b86 spitools: upgrade 0.8.7 -> 1.0.0
This includes the following changes:

f5d8795 [RELEASE] 1.0.0.
eaa6f35 [RELEASE] 1.0.0.
fe6ffcb [DEV] Add license mention in `--version` display.
f9edc7d [DEV] Support all configuration options in `spi-pipe`.
18f6b23 [DEV] Support SPI mode option in `spi-pipe`
8c6e7f7 [DEV] support `--bits` config option in `spi-pipe`.

Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-16 08:58:27 -07:00
Philip Balister
948ff4f68e fftw: Update recipe to 3.3.9.
* Ptests passed for qemux86-64

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-08 09:21:41 -07:00
Andreas Müller
6044584c9a poppler: upgrade 21.06.1 -> 21.07.0
Release 21.07.0
core:
 * JBIG2Stream: Do not consider a size-0 to be an error. Issue #535
 * PSOutputDev: fix off-by-one error for image masking in L1/L2 output. Issue #1088
 * CairoOutputDev: Fix memory leak on broken files
 * Minor code improvements
build system:
 * set C standard to 11 without extensions

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-08 09:21:40 -07:00
Andreas Müller
757ea280fd libgusb: upgrade 0.3.6 -> 0.3.7
Version 0.3.7
~~~~~~~~~~~~~
Released: 2021-05-24

New Features:
 - Add a FreeBSD CI target (Richard Hughes)

Bugfixes:
 - Do not depend on libusb_get_parent() to fix FreeBSD compile (Richard Hughes)
 - Do not depend on libusb_get_port_number() to fix DragonFlyBSD compile (Richard Hughes)
 - Do not double-reference USB devices (Marco Trevisan)
 - Do not run the tests on FreeBSD (Richard Hughes)
 - Require *any* python3 to fix FreeBSD build (Richard Hughes)

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-08 09:21:40 -07:00
Andreas Müller
5b680652b7 cmark: upgrade 0.29.0 -> 0.30.0
For full change-log see [1].

[1] https://github.com/commonmark/cmark/releases/tag/0.30.0

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-08 09:21:40 -07:00
Khem Raj
819413a527 portaudio-v19: Use GNUInstallDirs to make it portable
libdir varies for different architectures therefore do not hardcode it
to lib

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-06 10:25:27 -07:00
Gianfranco
d0f2d7c954 vboxguestdrivers: add a fix for build failure with kernel 5.13
Its already upstream and also used in Debian and Ubuntu

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-01 11:56:42 -07:00
Pierre-Jean Texier
a456538b8a monit: upgrade 5.27.2 -> 5.28.0
See full changelog: https://mmonit.com/monit/changes/

Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-27 13:30:48 -07:00
Pierre-Jean Texier
c2975e0dbe libtinyxml2: upgrade 8.1.0 -> 9.0.0
Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-24 14:23:41 -07:00
Masaki Ambai
44113dcb5f nss: add CVE-2006-5201 to allowlist
CVE-2006-5201 affects only using an RSA key with exponent 3 on Sun Solaris.

Signed-off-by: Masaki Ambai <ambai.masaki@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-24 12:55:11 -07:00
zhengruoqin
ae6fc9ee39 satyr: upgrade 0.37 -> 0.38
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-23 23:20:36 -07:00
zangrc
8f844f14c7 function2: upgrade 4.1.0 -> 4.2.0
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-23 23:20:35 -07:00
zhengruoqin
ae5b08f5b5 rsnapshot: upgrade 1.4.3 -> 1.4.4
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:42:25 -07:00
zangrc
72280dcf59 nano: upgrade 5.7 -> 5.8
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:42:25 -07:00
zangrc
2bb89ef6e3 mg: upgrade 20210314 -> 20210609
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:42:25 -07:00
Sam Van Den Berge
96c7664e40 libiio: fix installing libiio when python3 bindings are enabled
This patch fixes the following error when libiio is installed when
python3 bindings are enabled:

ERROR: Execution of '.../libiio/0.21+gitAUTOINC+565bf68ecc-r0/temp/run.do_install.2349473' failed with exit code 1:
running build
running build_py
running install
Traceback (most recent call last):
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 77, in _check_libiio_installed
    raise OSError
OSError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 106, in <module>
    setup(**config)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 52, in run
    self._check_libiio_installed()
  File "/libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 83, in _check_libiio_installed
    raise Exception(msg)
Exception: The libiio library could not be found.
            libiio needs to be installed first before the python bindings.
            The latest release can be found on GitHub:
            https://github.com/analogdevicesinc/libiio/releases

Some time ago a fix for this issue was already discussed here [1].
However in the same discussion also a second issue was being handled.

A fix for the second issue was merged in 51f98865da. The first issue
didn't pop up anymore and so a fix was never applied.

Recently however after switching from build machine, I started seeing
the first issue. I suspect due to build caching the first issue didn't
pop up anymore before up until now. With this patch, fixes are now
available for both issues handled in [1].

[1]: https://github.com/openembedded/meta-openembedded/issues/248

Signed-off-by: Sam Van Den Berge <sam.van.den.berge@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:39:32 -07:00
Khem Raj
b65f290419 c-ares: Upgrade to 1.17.1 release
Forward port cmake-install-libcares.pc.patch, drop the need to install
pkgconfig files as its already being done by main Makefile

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:33:07 -07:00
Signed-off-by: Bartosz Golaszewski
46eb101cf7 Revert "libgpiod: ptest: warn if the gpio-mockup kernel module is not selected"
This reverts commit 977c5f5619.

This recipe doesn't see the final value of KERNEL_FEATURES that the
linux-yocto recipe uses - that's why this warning was always triggered
if the gpio-mockup feature was not defined globally in this variable.
The linux-yocto recipe pulls in gpio-mockup automatically if ptest is
in DISTRO_FEATURES so we don't really needs thich check.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-09 12:53:53 -07:00
Bartosz Golaszewski
18960fe1c1 libgpiod: update my email address
I now maintain the project and this recipe in my own time. Update my
email address in the AUTHOR field.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-09 12:53:48 -07:00
Ovidiu Panait
9efdb6799e libeigen: update LICENSE information
From COPYING.README:
"""
Eigen is primarily MPL2 licensed. See COPYING.MPL2 and these links:
  http://www.mozilla.org/MPL/2.0/
  http://www.mozilla.org/MPL/2.0/FAQ.html

Some files contain third-party code under BSD or LGPL licenses, whence the other
COPYING.* files here.

All the LGPL code is either LGPL 2.1-only, or LGPL 2.1-or-later.
For this reason, the COPYING.LGPL file contains the LGPL 2.1 text.
"""

The upstream repository contains multiple COPYING files (various 3rd party
code is under different licenses), so update the LICENSE information
accordingly. Also, add MINPACK to meta-oe/licenses.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-09 08:49:21 -07:00
Andreas Müller
db5e3b36c7 remmina: upgrade 1.4.17 -> 1.4.18
List of changes:
full changelog

* [SNAP] Removing unsupported architectures !2268 @antenore
* Try more shells as launcher if default isn't found !2269 @cirelli94
* Minor fixes for v1.4.17 !2270 @antenore
* SSH session improvements !2271 @antenore
* Fixes - Auto-start file created on tray icon disabled !2272 @antenore
* RDP: Remove older usage of ClientHostname @giox069
* Fix libfreerdp version check @giox069
* Explicitly set user resolution to a multiple of 4 !2273 @antenore
* Code refactoring - ASAN exceptions !2274 @antenore

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-09 08:49:21 -07:00
Bartosz Golaszewski
4b16dedac6 libgpiod: add the python test-suite to the ptest package
One more follow-up to the ptest updates - the python test suite was
missed and is still in the main library package. Move it to
libgpiod-ptest.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-09 08:49:20 -07:00
Khem Raj
0b15f80012 tbb: Fix warnings with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-05 06:06:27 -07:00
Bartosz Golaszewski
3018b3af38 libgpiod: ptest: only rrecommend a single module that we need
We don't need to pull in all kernel modules. It's enough to just
rrecommend gpio-mockup.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04 07:08:13 -07:00
Bartosz Golaszewski
657bbdf163 libgpiod: ptest: add kernel-modules to RRECOMMENDS
libgpiod needs the gpio-mockup kernel module to be loadable (not
built-in). Add kernel-modules to RRECOMMENDS.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04 07:08:13 -07:00
Bartosz Golaszewski
977c5f5619 libgpiod: ptest: warn if the gpio-mockup kernel module is not selected
libgpiod test-suites work with the gpio-mockup kernel module. When using
linux-yocto, it's enabled using the gpio/mockup.scc kernel feature. Check
if this feature is present in KERNEL_FEATURE and warn if not.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04 07:08:13 -07:00
Bartosz Golaszewski
2530ace540 libgpiod: ptest: run all test-suites if possible
We have four test-suites total in libgpiod: for the core C library,
gpio-tools and for C++ and Python bindings. Modify the recipe to install
all of them depending on build settings and make run-ptest execute them
if available.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04 07:08:13 -07:00
Bartosz Golaszewski
66561c713e libgpiod: redirect stdout from the ptest executable to a file
Most tests redirect their standard output to a file. Let's make libgpiod
consistent with this pattern.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04 07:08:13 -07:00