Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#71638 - [pybind11] pybind11Config.cmake contains build path
Attached to Project:
Community Packages
Opened by Yamakaja (Yamakaja) - Wednesday, 28 July 2021, 08:33 GMT
Last edited by Daniel Bermond (Bermond) - Sunday, 01 August 2021, 11:20 GMT
Opened by Yamakaja (Yamakaja) - Wednesday, 28 July 2021, 08:33 GMT
Last edited by Daniel Bermond (Bermond) - Sunday, 01 August 2021, 11:20 GMT
|
DetailsDescription:
Additional info: * package version: 2.7.0-1 Steps to reproduce: * Install pybind11 * Try to build a project using the pybind11 cmake interface files Result: Imported target "<target>" includes non-existent path "/build/pybind11/src/pybind11-2.7.0/pybind11/include" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide. This is most likely caused by the following definition in usr/lib/python3.9/site-packages/pybind11/share/cmake/pybind11/pybind11Config.cmake: Line 227: # Location of pybind11/pybind11.h set(pybind11_INCLUDE_DIR "/build/pybind11/src/pybind11-2.7.0/pybind11/include") |
This task depends upon
Closed by Daniel Bermond (Bermond)
Sunday, 01 August 2021, 11:20 GMT
Reason for closing: Fixed
Additional comments about closing: pybind11 2.7.0-2
Sunday, 01 August 2021, 11:20 GMT
Reason for closing: Fixed
Additional comments about closing: pybind11 2.7.0-2
The root of the issue can be easily found by building the package manually (via makepkg): pybind11_INCLUDE_DIR (in pybind11Config.cmake) ends up leaking the full build path.
I guess that the Arch packaging system builds in '/' (possibly a chroot, etc.) and that's the reason for the result in the official package.