Date: Wed, 12 Mar 2014 00:29:03 GMT From: Jan Beich <jbeich@tormail.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/187467: [patch] x11-toolkits/qt5-gui: fails to build with multimedia/v4l_compat installed Message-ID: <201403120029.s2C0T3Vs090320@cgiserv.freebsd.org> Resent-Message-ID: <201403120030.s2C0U1We081539@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 187467 >Category: ports >Synopsis: [patch] x11-toolkits/qt5-gui: fails to build with multimedia/v4l_compat installed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 12 00:30:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: >Organization: >Environment: v4l_compat is pulled by a lot ports, including qt5-multimedia. >Description: v4l_compat provides a number of linux headers to access devices supported by webcamd. One of them is linux/input.h which triggers evdev detection in qt5 only to fail later due to missing linux/kd.h. However, the code using KDSKBMODE from linux/kd.h was ripped out from qlinuxinput.cpp sometime ago never to appear in qevdevkeyboardhandler.cpp. Given that qt5-gui builds fine with evdev otherwise it may make sense to always enable the support. http://lxr.linux.no/#linux+v3.13.5/include/uapi/linux/kd.h https://qt.gitorious.org/qt/qtbase/commit/f66065f >How-To-Repeat: $ cd multimedia/v4l_compat; make install $ cd x11-toolkits/qt5-gui; make install .. --- .obj/qevdevmousemanager.o --- c++ -c -O2 -pipe -pthread -I/usr/local/include/glib-2.0 -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -fno-exceptions -Wall -W -pthread -D_THREAD_SAFE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_ACCESSIBILITY -DQT_DBUS -DQT_FONTCONFIG -DQT_FREETYPE -DQT_GLIB -DQT_IMAGEFORMAT_PNG -DQT_OPENGL -DQT_SHAPE -DQT_XCB -DQT_XKB -DQT_XKBCOMMON -DQT_XRENDER -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_PLATFORMSUPPORT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQ_FONTCONFIGDATABASE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/lib/qt5/mkspecs/freebsd-clang -I. -I/usr/local/include/freetype2 -I../3rdparty/atspi2 -Ilinuxaccessibility -I../../include -I../../include/QtPlatformSupport -I../../include/QtPlatformSup port/5.2.1 -I../../include/QtPlatformSupport/5.2.1/QtPlatformSupport -I../../include/QtGui/5.2.1 -I../../include/QtGui/5.2.1/QtGui -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtDBus -I../../include/QtGui -I/usr/local/include/qt5/QtCore/5.2.1 -I/usr/local/include/qt5/QtCore/5.2.1/QtCore -I/usr/local/include/qt5/QtCore -I.moc -I/usr/local/include -I/usr/local/include/qt5 -I/usr/local/include -o .obj/qevdevmousemanager.o input/evdevmouse/qevdevmousemanager.cpp --- .obj/qevdevmousehandler.o --- input/evdevmouse/qevdevmousehandler.cpp:56:10: fatal error: 'linux/kd.h' file not found #include <linux/kd.h> ^ 1 error generated. *** [.obj/qevdevmousehandler.o] Error code 1 make[2]: stopped in /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/qtbase-opensource-src-5.2.1/src/platformsupport 1 error >Fix: --- patch-evdev.diff begins here --- --- src/platformsupport/input/evdevmouse/qevdevmousehandler.cpp~ +++ src/platformsupport/input/evdevmouse/qevdevmousehandler.cpp @@ -53,7 +53,6 @@ #include <errno.h> -#include <linux/kd.h> #include <linux/input.h> #include <qdebug.h> --- patch-evdev.diff ends here --- --- dummy begins here --- Prevent GNATS CGI from breaking every other attachment. --- dummy ends here --- --- Makefile.diff begins here --- Index: x11-toolkits/qt5-gui/Makefile =================================================================== --- x11-toolkits/qt5-gui/Makefile (revision 347871) +++ x11-toolkits/qt5-gui/Makefile (working copy) @@ -8,6 +8,7 @@ PKGNAMEPREFIX= qt5- MAINTAINER= kde@FreeBSD.org COMMENT= Qt graphical user interface module +BUILD_DEPENDS= v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus \ libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \ libfreetype.so:${PORTSDIR}/print/freetype2 \ --- Makefile.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403120029.s2C0T3Vs090320>