Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 854114

Summary: Cross compiling x11-drivers/xf86-input-libinput-1.2.1 installs libinput-properties.h into /usr/CHOST/usr/CHOST/usr/include/xorg
Product: Gentoo Linux Reporter: Johannes Geiss <johannes.geiss>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: UNCONFIRMED ---    
Severity: normal CC: cross
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=813639
https://bugs.gentoo.org/show_bug.cgi?id=815520
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
emerge info

Description Johannes Geiss 2022-06-24 14:46:37 UTC
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
Comment 1 Johannes Geiss 2022-06-24 14:47:27 UTC
Similar to
https://bugs.gentoo.org/813639
https://bugs.gentoo.org/815520
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-24 18:54:17 UTC
Please always include the full build.log and emerge --info.
Comment 3 Johannes Geiss 2022-06-26 05:49:29 UTC
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
Comment 4 Johannes Geiss 2022-06-26 05:52:37 UTC
Created attachment 787673 [details]
emerge info