From: Peter Korsgaard Date: Sat, 15 Feb 2020 14:02:14 +0100 Subject: [Buildroot] [PATCH] package/libftdi1: fix python support In-Reply-To: (Yegor Yefremov's message of "Fri, 14 Feb 2020 16:06:06 +0100") References: <20200206095421.12987-1-yegorslists@googlemail.com> <87imkiyd32.fsf@dell.be.48ers.dk> <875zgiy8dq.fsf@dell.be.48ers.dk> <871rr6xxcl.fsf@dell.be.48ers.dk> Message-ID: <87wo8ohull.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Yegor" == Yegor Yefremov writes: Hi, >> > > 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