Cross compiling x11-drivers/xf86-input-libinput-1.2.1 installs libinput-properties.h into /usr/CHOST/usr/CHOST/usr/include/xorg Reproducible: Always Steps to Reproduce: export CT=arm-unknown-linux-gnueabihf $CT-emerge -av1 --usepkg=n --getbinpkg=n x11-drivers/xf86-input-libinput Actual Results: /usr/arm-unknown-linux-gnueabihf/usr/arm-unknown-linux-gnueabihf/usr/include/xorg/libinput-properties.h Expected Results: /usr/arm-unknown-linux-gnueabihf/usr/include/xorg/libinput-properties.h Workaround: CBUILD=x86_64-pc-linux-gnu CHOST=$CT ROOT=/usr/$CT PORTAGE_CONFIGROOT=/usr/$CT ebuild $(portageq get_repo_path / gentoo)/x11-drivers/xf86-input-libinput/xf86-input-libinput-1.2.1.ebuild compile sed -i "s,sdkdir = /usr/$CT/usr/include/xorg,sdkdir = /usr/include/xorg,g" /usr/$CT/var/tmp/portage/x11-drivers/xf86-input-libinput-1.2.1/work/xf86-input-libinput-1.2.1/include/Makefile CBUILD=x86_64-pc-linux-gnu CHOST=$CT ROOT=/usr/$CT PORTAGE_CONFIGROOT=/usr/$CT ebuild $(portageq get_repo_path / gentoo)/x11-drivers/xf86-input-libinput/xf86-input-libinput-1.2.1.ebuild merge
Similar to https://bugs.gentoo.org/813639 https://bugs.gentoo.org/815520
Please always include the full build.log and emerge --info.
Created attachment 787670 [details] Build log See line #359: /usr/armv7a-pandora-linux-gnueabihf/usr/armv7a-pandora-linux-gnueabihf/usr/include/xorg/libinput-properties.h
Created attachment 787673 [details] emerge info