Package: mudlet
Version: 2.0-rc12-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu precise ubuntu-patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
*** /tmp/tmpEjlWxV/bug_body
When building against the version of qt4-x11 in experimental, mudlet fails
to build:
glwidget.cpp: In member function 'virtual void GLWidget::paintGL()':
glwidget.cpp:588:104: error: 'gluLookAt' was not declared in this scope
glwidget.cpp:937:104: error: 'gluLookAt' was not declared in this scope
glwidget.cpp:1352:100: error: 'gluLookAt' was not declared in this scope
glwidget.cpp:1599:96: error: 'gluLookAt' was not declared in this scope
glwidget.cpp: In member function 'virtual void GLWidget::resizeGL(int, int)':
glwidget.cpp:1905:76: error: 'gluPerspective' was not declared in this scope
glwidget.cpp:1907:58: error: 'gluOrtho2D' was not declared in this scope
glwidget.cpp: In member function 'virtual void
GLWidget::mousePressEvent(QMouseEvent*)':
glwidget.cpp:1928:43: error: 'gluPickMatrix' was not declared in this scope
glwidget.cpp:1929:89: error: 'gluPerspective' was not declared in this scope
make[2]: *** [tmp/glwidget.o] Error 1
make[2]: Leaving directory `/build/buildd/mudlet-2.0-rc12/src'
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/build/buildd/mudlet-2.0-rc12'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
In Ubuntu, the attached patch was applied to achieve the following:
* d/p/ftbfs_qt4.8.patch: Include glu.h and link to -lGLU to fix
FTBFS against qt4.8 (LP: #934992)
Thanks for considering the patch.
Cheers,
Andreas
- -- System Information:
Debian Release: wheezy/sid
APT prefers precise
APT policy: (800, 'precise')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-17-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBAgAGBQJPUTluAAoJEGHzRCZ03mYkIh4P/jCFjBsib4TPosm0xImbk3yV
VDducRFwsj9P9pvp6DkYMm9vTJIE++QQLim0bQLQ2YUwOBrhtwEZg8TbJiYPLzFF
66GS/00QN+3LCyDbrmxvuXoqOaC1GQzf4X8f2gyuzEHkoI8OvuRQuXR51tfrjTuU
2bQ4vofMB9TiKL+4vT0lrko3dQf25oPCAXsiNqN7R6XmXqDXQn+qgZ01aoKMYfLI
dY3fWI19sp8Anvl/FVub86icQMerv7t3k0zXLMdEQCy4uNGIEv+vIVDp5ravw3k9
TdO3AS+iE8xInPcItTUywECGqs6WMGoji32lhvgqDLtRwVaWWkpluqiYq/FYQEYG
NROzDHcKmuIu7VZAF2ZjtjgdrLqFHryPaBfFudDX+Hosy3KWTzAVEDpdYMSGcYpU
wmWxKI1QrXv1oJjxQmxmerib/Xx2aSQ/oFxhgVM0peZJwZp2iLbwzHkqINSfqwe6
+aCipV9cJW2Ud1nUtQdm+/qpdlGDOa74nh8Z2tXFkPjpMFZnZRmsBm4g1kNtd/VW
o3UpgWZr4vrJ3zcUq8tzW/jzOhh06wDZ4IhVPpzxCRrbRZ65stPrPDRB2PVdKhVu
6KtmdoaYNQVtr3PTKHiNKtc1Ls7LDToSMunR4dgZdWUu9L5pbHYII8uGw0yQy8Kd
/0Qoy8pYt5ZZoU+01QH/
=uI7O
-----END PGP SIGNATURE-----
=== added file 'debian/patches/ftbfs_qt4.8.patch'
--- debian/patches/ftbfs_qt4.8.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/ftbfs_qt4.8.patch 2012-03-02 21:04:05 +0000
@@ -0,0 +1,27 @@
+Description: Include glu.h and link to -lGLU to fix FTBFS against
+ qt4.8 (LP: #934992)
+Author: Andreas Moog <[email protected]>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/934992
+
+--- mudlet-2.0-rc12.orig/src/glwidget.cpp
++++ mudlet-2.0-rc12/src/glwidget.cpp
+@@ -29,6 +29,8 @@
+ #include "Host.h"
+ #include "dlgMapper.h"
+
++#include <GL/glu.h>
++
+ #ifndef GL_MULTISAMPLE
+ #define GL_MULTISAMPLE 0x809D
+ #endif
+--- mudlet-2.0-rc12.orig/src/src.pro
++++ mudlet-2.0-rc12/src/src.pro
+@@ -23,7 +23,7 @@ LIBLUA = -llua5.1
+ # automatically link to LuaJIT if it exists
+ exists(/usr/local/lib/libluajit-5.1.a):LIBLUA = -L/usr/local/lib -lluajit-5.1
+
+-unix:LIBS += -lyajl
++unix:LIBS += -lyajl -lGLU
+
+ win32:LIBS += -L"c:\mudlet2_package" \
+ -llua51 \
=== modified file 'debian/patches/series'
--- debian/patches/series 2011-10-19 06:38:33 +0000
+++ debian/patches/series 2012-03-02 21:03:40 +0000
@@ -4,3 +4,4 @@
qrc_removedups
luaglobal_path
freebsd_ifdef
+ftbfs_qt4.8.patch