Community Packages

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!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Santiago Torres (sangy)
Daniel Bermond (Bermond)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:


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
Comment by loqs (loqs) - Wednesday, 28 July 2021, 18:37 GMT Comment by Juan (jap48) - Thursday, 29 July 2021, 21:12 GMT
I confirm that the upstream patch solves this.
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.
Comment by Juan (jap48) - Saturday, 31 July 2021, 03:36 GMT
In case someone needs it, I added a git version to AUR: https://aur.archlinux.org/packages/pybind11-git/
Comment by Daniel Bermond (Bermond) - Sunday, 01 August 2021, 11:19 GMT
Fixed in version 2.7.0-2. Thanks to everyone who participated.

Loading...