On Tue, Oct 29, 2024 at 1:39 PM Martin Jansa <[email protected]> wrote:
>
> Doesn't this upgrade break python3-gpiod
> (meta-oe/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb)?
>

No. The release is fully backward compatible and python bindings
v2.2.1 build fine against it.

Please note: the versioning of libgpiod and python3-gpiod is
independent since v2.0.

> In world builds I'm seeing new build failure which looks like caused
> by update libgpiod API:
>

[]

> gpiod/ext/chip.c: In function 'chip_fd':
> gpiod/ext/chip.c:48:32: error: implicit declaration of function
> 'gpiod_chip_get_fd'; did you mean 'gpiod_chip_get_line'?
> [-Wimplicit-function-declaration]
>    48 |         return PyLong_FromLong(gpiod_chip_get_fd(self->chip));
>       |                                ^~~~~~~~~~~~~~~~~
>       |                                gpiod_chip_get_line
> gpiod/ext/chip.c: In function 'chip_get_info':
> gpiod/ext/chip.c:82:16: error: implicit declaration of function
> 'gpiod_chip_get_info'; did you mean 'gpiod_chip_get_lines'?
> [-Wimplicit-function-declaration]
>    82 |         info = gpiod_chip_get_info(self->chip);
>       |                ^~~~~~~~~~~~~~~~~~~
>       |                gpiod_chip_get_lines
> gpiod/ext/chip.c:82:14: error: assignment to 'struct gpiod_chip_info
> *' from 'int' makes pointer from integer without a cast
> [-Wint-conversion]
>    82 |         info = gpiod_chip_get_info(self->chip);
>       |              ^
> gpiod/ext/chip.c:87:38: error: implicit declaration of function
> 'gpiod_chip_info_get_name'; did you mean 'gpiod_chip_open_by_name'?
> [-Wimplicit-function-declaration]

What you're seeing here is caused by trying to build python bindings
for libgpiod API v2 with headers from libgpiod v1.6.x. I'm not sure
how you got there because the recipe sets the run-time dependency on
libgpiod to version >= v2.1.

Bart

[0] 
https://git.openembedded.org/meta-openembedded/tree/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb#n19
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#113327): 
https://lists.openembedded.org/g/openembedded-devel/message/113327
Mute This Topic: https://lists.openembedded.org/mt/109190169/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to