Bug 1470730

Summary: pkg-config --cflags libinput , output now includes -I/usr/include/
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: mesonAssignee: Igor Gnatenko <ignatenko>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ignatenko, peter.hutterer, wtaymans
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-13 21:57:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rex Dieter 2017-07-13 14:19:55 UTC
summary says it all,
pkg-config --cflags libinput
recently began to output
-I/usr/include/
which causes problems elsewhere

Normally, pkg-config filters out -I/usr/include, but libinput includes a trailing slash recently.

Compare f25's libinput.pc:

-----
prefix=/usr
exec_prefix=/usr
datarootdir=${prefix}/share
pkgdatadir=/usr/share/libinput
libdir=/usr/lib64
includedir=/usr/include

Name: Libinput
Description: Input device library
Version: 1.6.3
Cflags: -I${includedir}
Libs: -L${libdir} -linput
Libs.private: -lm -lrt
Requires.private: libudev
----

with rawhide's:
----
prefix=/usr
libdir=${prefix}/lib64
includedir=${prefix}/include

Name: Libinput
Description: Input device library
Version: 1.8.0
Libs: -L${libdir} -linput
Cflags: -I${includedir}/
----

Comment 1 Rex Dieter 2017-07-13 14:20:56 UTC
Apparently meson issue?

https://github.com/mesonbuild/meson/issues/2050

Comment 2 Rex Dieter 2017-07-13 14:22:59 UTC
For full disclosure, the inclusion of -I/usr/include cflags is a cause for qt5-qtbase build failures (gory internals of using c++ and converting some system includes from -I to -isystem)

Comment 3 Igor Gnatenko 2017-07-13 21:57:46 UTC
I backported patch and rebuilt libinput, hopefully should be fixed.