[mythtv] Error with osx-packager.pl on mythmainwindow.cpp patch
David Snider
dsnider at thesniderpad.com
Sat Oct 11 13:44:31 UTC 2008
Hi folks,
The trunk version of osx-packager.pl recently began failing on the
manual mythmainwindow.cpp patch, and then subsequently fails to compile
on mythmainwindow.cpp. Here is the first error:
[osx-pkg] find . -name Makefile -exec egrep -q qmake.*PREFIX {} ;
-delete
[osx-pkg] echo 'Index: libs/libmythui/mythmainwindow.cpp
===================================================================
--- libs/libmythui/mythmainwindow.cpp (revision 12154)
+++ libs/libmythui/mythmainwindow.cpp (working copy)
@@ -1094,6 +1094,10 @@
{
QKeyEvent *ke = dynamic_cast<QKeyEvent*>(e);
+ // Work around weird GCC run-time bug. Only manifest on
Mac OS X
+ if (!ke)
+ ke = (QKeyEvent *)e;
+
if (currentWidget())
{
ke->accept();
' | patch -p0 --forward
patching file libs/libmythui/mythmainwindow.cpp
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file
libs/libmythui/mythmainwindow.cpp.rej
[osx-pkg] Failed system call: " echo 'Index:
libs/libmythui/mythmainwindow.cpp
===================================================================
--- libs/libmythui/mythmainwindow.cpp (revision 12154)
+++ libs/libmythui/mythmainwindow.cpp (working copy)
@@ -1094,6 +1094,10 @@
{
QKeyEvent *ke = dynamic_cast<QKeyEvent*>(e);
+ // Work around weird GCC run-time bug. Only manifest on
Mac OS X
+ if (!ke)
+ ke = (QKeyEvent *)e;
+
if (currentWidget())
{
ke->accept();
' | patch -p0 --forward " with error code 1
[osx-pkg] Configuring mythtv
Here is the second error:
acx-g++ -I. -I/nobackup/myth_svn/.osx-packager/build/include/QtCore
-I/nobackup/myth_svn/.osx-packager/build/include/QtCore
-I/nobackup/myth_svn/.osx-packager/build/include/QtNetwork
-I/nobackup/myth_svn/.osx-packager/build/include/QtNetwork
-I/nobackup/myth_svn/.osx-packager/build/include/QtGui
-I/nobackup/myth_svn/.osx-packager/build/include/QtGui
-I/nobackup/myth_svn/.osx-packager/build/include/QtOpenGL
-I/nobackup/myth_svn/.osx-packager/build/include/QtOpenGL
-I/nobackup/myth_svn/.osx-packager/build/include/QtXml
-I/nobackup/myth_svn/.osx-packager/build/include/QtXml
-I/nobackup/myth_svn/.osx-packager/build/include/QtSql
-I/nobackup/myth_svn/.osx-packager/build/include/QtSql
-I/nobackup/myth_svn/.osx-packager/build/include
-I/nobackup/myth_svn/.osx-packager/build/include
-I/nobackup/myth_svn/.osx-packager/build/include -I../libmythdb
-I../.. -I..
-I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers
-I/System/Library/Frameworks/AGL.framework/Headers -I. -I. -o
mythrect.o mythrect.cpp
make[2]: *** [mythmainwindow.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sub-libmythui-make_default-ordered] Error 2
make: *** [sub-libs-make_default-ordered] Error 2
[osx-pkg] Failed system call: " /usr/bin/make -j2 " with error code 2
Any thoughts?
More information about the mythtv-dev
mailing list