Package: freemat
Version: 4.0-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu lucid ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following:
* Remove *.moc.cpp files on clean, they don't work with current Qt and
cause FTBFS.
We thought you might be interested in doing the same.
The package contains moc files build for Qt 4.5.2 and fails to build
with Qt 4.6.x currently present in Ubuntu Lucid:
[ 3%] Building CXX object
libs/libGraphics/CMakeFiles/Graphics.dir/HandleUIControl.moc.cpp.o
/build/buildd/freemat-4.0/libs/libGraphics/HandleUIControl.moc.cpp:14:2: error:
#error "This file was generated using the moc from 4.5.2. It"
/build/buildd/freemat-4.0/libs/libGraphics/HandleUIControl.moc.cpp:15:2: error:
#error "cannot be used with the include files from this version of Qt."
/build/buildd/freemat-4.0/libs/libGraphics/HandleUIControl.moc.cpp:16:2: error:
#error "(The moc has changed too much.)"
So it's not an immediate problem for Debian, but will cause a genuine
FTBFS when Qt is upgraded. Perhaps upstream shouldn't ship moc files at
all.
Build logs are here:
http://launchpadlibrarian.net/37069390/buildlog_ubuntu-lucid-i386.freemat_4.0-2_FAILEDTOBUILD.txt.gz
https://launchpad.net/ubuntu/+source/freemat/4.0-2
-- System Information:
Debian Release: squeeze/sid
APT prefers lucid
APT policy: (500, 'lucid')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-20-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
diff -u freemat-4.0/debian/rules freemat-4.0/debian/rules
--- freemat-4.0/debian/rules
+++ freemat-4.0/debian/rules
@@ -72,6 +72,7 @@
rm -f build-stamp
[ ! -f Makefile ] || $(MAKE) distclean
rm -rf debian/build/
+ find . -name '*.moc.cpp' -delete
dh_clean CMakeCache.txt dependencies/volpack-1.0c7/config.log dependencies/volpack-1.0c7/config.status
install: build