scribus ftbfs on armel

Bug #825711 reported by Matthias Klose
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scribus (Ubuntu)
Fix Released
High
Unassigned
Oneiric
Fix Released
High
Unassigned

Bug Description

see https://launchpad.net/ubuntu/+source/scribus/1.4.0.dfsg~rc3+svn20110401-1ubuntu2/+build/2676572

(please enable verbose build logs)

[ 3%] Building CXX object scribus/fonts/CMakeFiles/scribus_fonts_lib.dir/scfontmetrics.cpp.o
/build/buildd/scribus-1.4.0.dfsg~rc3+svn20110401/scribus/fonts/scfontmetrics.cpp: In function 'QPixmap FontSample(const ScFace&, int, QString, QColor, bool)':
/build/buildd/scribus-1.4.0.dfsg~rc3+svn20110401/scribus/fonts/scfontmetrics.cpp:284:29: error: no matching function for call to 'qMax(qreal&, double)'
/build/buildd/scribus-1.4.0.dfsg~rc3+svn20110401/scribus/fonts/scfontmetrics.cpp:284:29: note: candidate is:
/usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T> const T& qMax(const T&, const T&)
/build/buildd/scribus-1.4.0.dfsg~rc3+svn20110401/scribus/fonts/scfontmetrics.cpp:305:29: error: no matching function for call to 'qMax(qreal&, double)'
/build/buildd/scribus-1.4.0.dfsg~rc3+svn20110401/scribus/fonts/scfontmetrics.cpp:305:29: note: candidate is:
/usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T> const T& qMax(const T&, const T&)
make[3]: *** [scribus/fonts/CMakeFiles/scribus_fonts_lib.dir/scfontmetrics.cpp.o] Error 1
make[3]: Leaving directory `/build/buildd/scribus-1.4.0.dfsg~rc3+svn20110401/debian/build'
make[2]: *** [scribus/fonts/CMakeFiles/scribus_fonts_lib.dir/all] Error 2

Matthias Klose (doko)
Changed in scribus (Ubuntu Oneiric):
importance: Undecided → High
milestone: none → ubuntu-11.10-beta-1
status: New → Confirmed
Revision history for this message
Dr. David Alan Gilbert (davidgil-uk) wrote :

Looking at Qt's qglobal.h it looks like it defines qreal as float on ARM (and a lot of non-x86)

In those scribus lines we have:

  ymax = qMax(ymax, gp.y());

 ymax is a qreal, gp is a Fpoint and gp.y is going to give a double.

Might get away with changing ymax to be a double, if the later qRound that uses it will take it (it's defined again as taking a qreal, not sure if the implicit cast will work) otherwise it's going to need a cast somewhere.

Dave

Martin Pitt (pitti)
Changed in scribus (Ubuntu):
milestone: ubuntu-11.10-beta-1 → ubuntu-11.10-beta-2
tags: added: arm-porting-queue
tags: added: rls-mgr-o-tracking
Revision history for this message
Jani Monoses (jani) wrote :

I filed a patch half a year ago upstream, the code uses qreal and double interchangeably in a lot of places.
It may need adjusting to the newer release.

http://bugs.scribus.net/view.php?id=9850

Revision history for this message
Micah Gersten (micahg) wrote :

This patch just made it into Debian, needs a merge.

Revision history for this message
Matthias Klose (doko) wrote :

1.4.0.dfsg~rc3+svn20110401-1.1ubuntu1 merged

Changed in scribus (Ubuntu Oneiric):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.