[Buildroot] [PATCH] package/libftdi1: fix python support

Yegor Yefremov yegorslists at googlemail.com
Fri Feb 7 09:30:17 UTC 2020


Hi Peter,

On Fri, Feb 7, 2020 at 10:13 AM Peter Korsgaard <peter at korsgaard.com> wrote:
>
> >>>>> "yegorslists" == yegorslists  <yegorslists at googlemail.com> writes:
>
>  > From: Yegor Yefremov <yegorslists at googlemail.com>
>  > Add an upstreamed patch that reorders find_package() commands.
>  > This way Python interpreter will be detected first and based on
>  > it the Python libraries can be found.
>
>  > Fixes the following CMake error:
>
>  > Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
>
> We don't seem to have any autobuilder failures in libftdi1 for almost 1
> year. Any idea why this doesn't trigger on the autobuilders?

In the version 1.4 find_package() calls were made without the REQUIRED
keyword. Hence, this error wasn't detected by the autobuilders. This
is now fixed upstream and I hope a new release will appear soon. But
meanwhile let's apply this fix.
Alternatively I could bump libftdi1 via a git instead of getting a
source tar file.

I'm preparing a libftdi1 test for Python for BR's CI. So that we could
catch such errors in the future.

Yegor



More information about the buildroot mailing list