While working on bug 575212, it turned out our multilib wayland-scanner handling is suboptimal. It gets built for 32bit, but not installed. But a pkgconfig file for 32bit is installed, which points at the 64bit /usr/bin version. Need to look into it in more detail to see if we actually want both versions, or help upstream support a clean way to disable it (--with-host-scanner isn't quite right for this case as it might be a first install and there is no host scanner), and maybe it is needed internally then still to generate some headers or marshalling code. The key is probably to see how other packages needing wayland-scanner would be working (i.e wayland-protocols/weston/etc), and to not forget cross-compilation use cases in addition to multilib. Upstream is appreciating help figuring all this out as well. As bug 575212 was fixed, opened this one to not forget about this lingering smaller issue.
I think that might explain this compile error I see on a binhost: [..] ./wayland-scanner: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory make: *** [Makefile:3020: protocol/wayland-server-protocol.h] Error 127 make: *** Waiting for unfinished jobs.... ./wayland-scanner: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory make: *** [Makefile:3017: protocol/wayland-protocol.c] Error 127 ./wayland-scanner: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory make: *** [Makefile:3023: protocol/wayland-client-protocol.h] Error 127 [..] Would be great to see fixed. Thanks in advance!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef2406cd3f9b10da3162af898f287b3883730564 commit ef2406cd3f9b10da3162af898f287b3883730564 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2020-12-21 17:44:15 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2020-12-27 19:18:55 +0000 dev-util/wayland-scanner: Add new package Closes: https://bugs.gentoo.org/576146 Closes: https://bugs.gentoo.org/759133 Signed-off-by: Matt Turner <mattst88@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/18751 Signed-off-by: Matt Turner <mattst88@gentoo.org> dev-util/wayland-scanner/Manifest | 1 + dev-util/wayland-scanner/metadata.xml | 8 ++++ .../wayland-scanner/wayland-scanner-1.18.91.ebuild | 49 ++++++++++++++++++++++ .../wayland-scanner/wayland-scanner-9999.ebuild | 49 ++++++++++++++++++++++ 4 files changed, 107 insertions(+)