Re: [PATCH] Fix build without Python
Alec Leamas <[email protected]>
| Newsgroups | gmane.comp.hardware.lirc |
|---|---|
| Message-ID | <[email protected]> |
On 28/08/17 09:51, Baruch Siach wrote: > Hi Alec, > > On Mon, Aug 28, 2017 at 07:47:04AM +0200, Alec Leamas wrote: >> On 27/08/17 20:36, Baruch Siach wrote: >>> Don't define HAVE_PYTHON35 when PYTHON_LIBS is empty. >>> >>> Also, don't build Python dependent code when HAVE_PYTHON35 is not >>> defined. >>> >>> This fixes build failures like: >> >> [cut] >> >> Thanks for patch. >> >> That said, in which context does this happen? Are you building lirc with no >> python available whatsoever? > > Yes, > >> If so, why? > > Some embedded use cases are highly size constrained. Buildroot[1] supports > building lirc with with various optional dependencies[2] to reduce the size of > the final image. This patch allows update to the 0.10.0 release, while having > python as an optional dependency. > > The configure.ac/Makefile.am code itself indicates that the python dependency > is meant to be optional, depending on HAVE_PYTHON35. > > Unrelated to that I hit another cross compile issue with setuptools while > trying to build with python enabled. I'm still investigating that one. The patch as such is clean and I have no problem accepting it. But let's wait until your build problems are fully resolved before comitting anything. Whether python is really required or not is actually not strictly defined. We might need this clarified, for sure. --alec ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot