When wayland USE flag is not set, glfw needs the XInput.h header file. After installing x11-libs/libXi, the ebuild succeeds. Reproducible: Always Steps to Reproduce: 1. USE="-wayland" emerge =glfw-3.3.1 2. 3. Build log and emerge --info as attachments.
Created attachment 637682 [details] glfw-3.3.1:20200510-170000.log build log
Created attachment 637684 [details] emerge-info-glfw-3.3.1.txt output of emerge --info Note, the build happened in a test chroot, with almost only stage3 installed.
Created attachment 638682 [details, diff] 0001-media-libs-glfw-add-missing-dependency.patch This patch to the 3.3.1 ebuild solves the issue.
It's odd, but glfw is not linked against libXi. Yet it needs the header X11/extensions/XInput2.h. I'll add x11-libs/libXi to BDEPEND.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3514eef209b0c22c422ef3ea015f75f188f039ee commit 3514eef209b0c22c422ef3ea015f75f188f039ee Author: Max Audron <audron@cocaine.farm> AuthorDate: 2020-06-15 13:27:54 +0000 Commit: Stefan Strogin <steils@gentoo.org> CommitDate: 2020-06-16 10:35:57 +0000 media-libs/glfw: version bump to 3.3.2 Signed-off-by: Max Audron <audron@cocaine.farm> Add x11-libs/libXi to BDEPEND because glfw needs XInput2.h for compilation, but does not link against libXi.so. Closes: https://bugs.gentoo.org/722186 Closes: https://github.com/gentoo/gentoo/pull/16257 Signed-off-by: Stefan Strogin <steils@gentoo.org> media-libs/glfw/Manifest | 1 + media-libs/glfw/glfw-3.3.2.ebuild | 48 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab46580d900aec6a1627f1fad4f41890fbbd88db commit ab46580d900aec6a1627f1fad4f41890fbbd88db Author: Stefan Strogin <steils@gentoo.org> AuthorDate: 2020-06-16 14:30:51 +0000 Commit: Stefan Strogin <steils@gentoo.org> CommitDate: 2020-06-16 14:32:37 +0000 media-libs/glfw: move x11-libs/libXi from BDEPEND to DEPEND When cross-compiling, these headers should be on CHOST, not CBUILD. Bug: https://bugs.gentoo.org/722186 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Stefan Strogin <steils@gentoo.org> media-libs/glfw/glfw-3.3.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)