The sources from pypi mirror do not contain the cmake config files, although they are present in upstream repo, and the distutils setup.py routine does not install them. Upstream provides both a distutils setup.py as well as a CMakeLists.txt file together with cmake config files. Also the package being a interface binding library between C++ and Python and not a pure python library, maybe we could use the more powerful and configurable CMake install method for this package? Reproducible: Always The package in it's current form blocks the re-adding of FreeCAD. This package depends upon pybind11 cmake config files being present. Also there was a (outdated 2.3.0) dev-util/pybind11 ebuild for this package on ::guru, maintained by me, which I removed yesterday, when I noticed, the package has been added to the portage tree. This version used the cmake install method and therefore installed the config files. I still have it in my overlay and will update it to version 2.4.3, but hopefully we can come to a solution, where this package can be used in several ways. emerge --info output will be attached as a file.
Created attachment 603934 [details] emerge-info-pybind11-2.4.3.txt output of emerge --info =pybind11-2.4.3
Created attachment 605898 [details] pybind11-2.4.3.ebuild I've tried to set up an ebuild using distutils-r1 and cmake for the task. The test USE flag doesn't work for now with this version, because it needs scipy with python 3.{7,8} support, which I didn't get to build successfully, so I kept it commented for now. Also, I found the headers are not needed to be installed for every python installation seperately, but only once directly into /usr/include. The setup.py file has an option for this and the cmake file will take care of installing the headers appropriately. I've tested it against my freecad-0.18.4.ebuild, which needs pybind11 and it seems to work. Feel free to comment on it, use it or parts of it like you wish, or ping me back, if it's ok for you, if I open a PR with this ebuild. Thank you!
Also please note, the attached ebuild uses the download from upstream github download area, instead of the file downloaded from pypi. The two tar balls differ, but the tar ball from the current version is still cached in the mirrors...
Created attachment 627672 [details] pybind11-2.4.3-r1.ebuild Clean up code, remove test completely for now. Needs USE masking on doc USE flag for powerpc/ppc32 and arm64.
(In reply to Bernd from comment #3) > Also please note, the attached ebuild uses the download from upstream github > download area, instead of the file downloaded from pypi. The two tar balls > differ, but the tar ball from the current version is still cached in the > mirrors... Thx for the hint. Finally I got all the dependencies solved to successfully build FreeCAD. Great work.
@pi the ebuild is also in my overlay ::waebbl, together with a working FreeCAD ebuild
fixed in 2.5.0, thanks!