qtwayland: workaround upstream bug: install missing headers manually

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2019-01-26 00:00:15 +01:00
committed by Martin Jansa
parent 201fcf27cf
commit fb4ef4dd7b

View File

@@ -44,3 +44,20 @@ BBCLASSEXTEND =+ "native nativesdk"
# The same issue as in qtbase:
# http://errors.yoctoproject.org/Errors/Details/152641/
LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
# Since version 5.11.2 some private headers are not installed. Work around
# until fixed upstream. See https://bugreports.qt.io/browse/QTBUG-71340 for
# further details
do_install_append() {
if [ -d "${B}/src/client" ]; then
upstream_pv=`echo "${PV}" | sed 's:+git.*::g'`
for header in `find ${B}/src/client -name '*wayland-*.h'`; do
header_base=`basename $header`
dest="${D}${includedir}/QtWaylandClient/$upstream_pv/QtWaylandClient/private/$header_base"
if [ ! -e "$dest" ]; then
echo "Manual install: $header_base to $dest"
install -m 644 "$header" "$dest"
fi
done
fi
}