| Message ID | 20260101134901.882436-1-bernd@kuhls.net |
|---|---|
| State | New |
| Headers | show |
| Series | [1/1] package/python-pybind: install headers into host directory | expand |
On Thu, Jan 1, 2026 at 6:49 AM Bernd Kuhls <bernd@kuhls.net> wrote: > > Fixes build error with python-pillow since its version bump to 12.0.0 > which introduced a dependency to pybind with buildroot commit > 5f446a8d6dd8715385d6e2df2714f064bf26243d: > > FileNotFoundError: [Errno 2] No such file or directory: > '/home/bernd/buildroot/output/host/lib/python3.13/site-packages/include/pybind11/detail/common.h' > > with this defconfig: > > BR2_x86_64=y > BR2_x86_corei7=y > BR2_TOOLCHAIN_EXTERNAL=y > BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_CORE_I7_GLIBC_BLEEDING_EDGE=y > BR2_PACKAGE_PYTHON3=y > BR2_PACKAGE_PYTHON_PILLOW=y > > Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Tested-by: James Hilliard <james.hilliard1@gmail.com> > --- > package/python-pybind/python-pybind.mk | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/package/python-pybind/python-pybind.mk b/package/python-pybind/python-pybind.mk > index 7282c058f6..b7e5cb6596 100644 > --- a/package/python-pybind/python-pybind.mk > +++ b/package/python-pybind/python-pybind.mk > @@ -17,11 +17,13 @@ PYTHON_PYBIND_CONF_OPTS = \ > -DPYBIND11_TEST=OFF \ > -DPYBIND11_NOPYTHON=ON > > -PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/pybind11 > +PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages > > define PYTHON_PYBIND_INSTALL_MODULE > - mkdir -p $(PYTHON_PYBIND_INSTALL_PATH) > - cp -dpf $(@D)/pybind11/*.py $(PYTHON_PYBIND_INSTALL_PATH) > + mkdir -p $(PYTHON_PYBIND_INSTALL_PATH)/include/pybind11 > + mkdir -p $(PYTHON_PYBIND_INSTALL_PATH)/pybind11 > + cp -dpfr $(@D)/include/pybind11/* $(PYTHON_PYBIND_INSTALL_PATH)/include/pybind11 > + cp -dpf $(@D)/pybind11/*.py $(PYTHON_PYBIND_INSTALL_PATH)/pybind11 > endef > PYTHON_PYBIND_POST_INSTALL_STAGING_HOOKS += PYTHON_PYBIND_INSTALL_MODULE > > -- > 2.47.3 >
diff --git a/package/python-pybind/python-pybind.mk b/package/python-pybind/python-pybind.mk index 7282c058f6..b7e5cb6596 100644 --- a/package/python-pybind/python-pybind.mk +++ b/package/python-pybind/python-pybind.mk @@ -17,11 +17,13 @@ PYTHON_PYBIND_CONF_OPTS = \ -DPYBIND11_TEST=OFF \ -DPYBIND11_NOPYTHON=ON -PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/pybind11 +PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages define PYTHON_PYBIND_INSTALL_MODULE - mkdir -p $(PYTHON_PYBIND_INSTALL_PATH) - cp -dpf $(@D)/pybind11/*.py $(PYTHON_PYBIND_INSTALL_PATH) + mkdir -p $(PYTHON_PYBIND_INSTALL_PATH)/include/pybind11 + mkdir -p $(PYTHON_PYBIND_INSTALL_PATH)/pybind11 + cp -dpfr $(@D)/include/pybind11/* $(PYTHON_PYBIND_INSTALL_PATH)/include/pybind11 + cp -dpf $(@D)/pybind11/*.py $(PYTHON_PYBIND_INSTALL_PATH)/pybind11 endef PYTHON_PYBIND_POST_INSTALL_STAGING_HOOKS += PYTHON_PYBIND_INSTALL_MODULE
Fixes build error with python-pillow since its version bump to 12.0.0 which introduced a dependency to pybind with buildroot commit 5f446a8d6dd8715385d6e2df2714f064bf26243d: FileNotFoundError: [Errno 2] No such file or directory: '/home/bernd/buildroot/output/host/lib/python3.13/site-packages/include/pybind11/detail/common.h' with this defconfig: BR2_x86_64=y BR2_x86_corei7=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_CORE_I7_GLIBC_BLEEDING_EDGE=y BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON_PILLOW=y Signed-off-by: Bernd Kuhls <bernd@kuhls.net> --- package/python-pybind/python-pybind.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)