From 080cc294b7e28eb4c77ccd2a3ea4d07b34c61738 Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Sat, 26 Jan 2019 00:03:30 +0100 Subject: qtwayland: workaround upstream bug: install missing headers manually MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-qt/qt5/qtwayland_git.bb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'recipes-qt/qt5') diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb index a1b38de2..8f901ad7 100644 --- a/recipes-qt/qt5/qtwayland_git.bb +++ b/recipes-qt/qt5/qtwayland_git.bb @@ -46,3 +46,20 @@ BBCLASSEXTEND =+ "native nativesdk" LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" SRC_URI += "file://0001-Revert-use-new-feature-name-xkbcommon_evdev-xkbcommo.patch" + +# 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 +} -- cgit v1.2.3-54-g00ecf