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

Peter Korsgaard peter at korsgaard.com
Sat Feb 15 13:02:14 UTC 2020

>>>>> "Yegor" == Yegor Yefremov <yegorslists at googlemail.com> writes:


 >> >  > P.S. another issue is that as you can see cmake has found the host's
 >> >  > own SWIG version and not BR's version which is 4.0.x.
 >> >
 >> > Hmm, indeed. We do add our host-swig to the path, so I guess something
 >> > is hardcoded to look in /usr/bin first?
 >> >
 >> > Care to take a look?
 >> Will do.

 > I have looked at the problem. CMake 3.10.2 doesn't know anything about
 > SWIG4.0 so it looks for the SWIG binaries in this order (see
 > Modules/FindSWIG.cmake):

 > find_program(SWIG_EXECUTABLE NAMES swig3.0 swig2.0 swig)

 > This way swig3.0 on our host will be detected first. I've added
 > swig4.0 to my "/usr/share/cmake-3.10/Modules/FindSWIG.cmake" and it
 > now detects the SWIG built with BR. So for now, the only solution is
 > either to install an up-to-date CMake via "pip install cmake" or to
 > bump our CMake requirement to a newer version.

Or if swig is backwards compatible (I guess it is?), we could just add a
swig3.0 symlink as well?

Bye, Peter Korsgaard

More information about the buildroot mailing list