Source: gcin
Version: 2.8.5+dfsg1-1
Severity: important
Tags: patch
User: [email protected]
Usertags: qt5.9

Dear maintainer,

gcin fails to build with Qt 5.9 (available in experimental):

  gcc -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/gcin-2.8.5+dfsg1=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -g -O -I../im-client -I/usr/include/X11 `pkg-config Qt5Core 
Qt5Gui QtDBus --cflags` -I`pkg-config --variable=includedir 
Qt5Gui`/QtGui/`pkg-config --modversion Qt5Gui`/QtGui -Wall -D_REENTRANT 
-DUNIX=1 -fPIC  -DQT5 -DQT_SHARED -DQT_IMMODULE -DPIC -DDEBUG="00" -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o moc_gcin-qt5.o moc_gcin-qt5.cpp
  In file included from gcin-qt5.h:3:0,
                   from moc_gcin-qt5.cpp:9:
  
/usr/include/x86_64-linux-gnu/qt5/QtGui/5.9.0/QtGui/qpa/qplatforminputcontextplugin_p.h:54:41:
 fatal error: QtGui/private/qtguiglobal_p.h: No such file or directory
   #include <QtGui/private/qtguiglobal_p.h>
                                           ^
  compilation terminated.
  <builtin>: recipe for target 'moc_gcin-qt5.o' failed

Full build log can be found at:
https://launchpadlibrarian.net/324634588/buildlog_ubuntu-artful-amd64.gcin_2.8.5+dfsg1-1build1_BUILDING.txt.gz

A patch to fix this issue is attached.

--
Dmitry Shachnev
Description: fix build with Qt 5.9
Author: Dmitry Shachnev <[email protected]>
Forwarded: no
Last-Update: 2017-06-26

--- a/qt5-im/Makefile
+++ b/qt5-im/Makefile
@@ -3,8 +3,10 @@
 QTIM=$(QT)/plugins/platforminputcontexts
 IMMODULES=$(libdir)/$(DEB_BUILD_MULTIARCH)/$(QTIM)
 
-INCS=-I../im-client -I/usr/include/X11 `pkg-config Qt5Core Qt5Gui QtDBus --cflags`
+INCS=-I../im-client -I/usr/include/X11 `pkg-config Qt5Core Qt5Gui --cflags`
 MODVERSION=`pkg-config --modversion Qt5Gui`
+INCS+=-I`pkg-config --variable=includedir Qt5Core`/QtCore/$(MODVERSION)
+INCS+=-I`pkg-config --variable=includedir Qt5Gui`/QtGui/$(MODVERSION)
 INCS+=-I`pkg-config --variable=includedir Qt5Gui`/QtGui/$(MODVERSION)/QtGui
 
 CXXFLAGS+=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -DUNIX=1 -fPIC  -DQT5 -DQT_SHARED -DQT_IMMODULE -DPIC -DDEBUG="0$(GCIN_DEBUG)"

Attachment: signature.asc
Description: PGP signature

Reply via email to