[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#597700: kradio: FTBFS on armel and with newer avutils



Package: kradio
Version: 0.1.1.1~20061112-4
Severity: normal

Fails to build on armel due to implicit conversion between qreal and double
Fails to build with newer avutils due to needing missing <stdint.h> in avutils
common.h

Attached is the debdiff used in ubuntu to fix these problems if its useful for
inclusion into debian. thanks

niall

+    - Fixes non existent call to qMin(qreal, double) on armel bug
+    by casting double arg to qreali (LP: #642117)
+  * debian/rules:
+    - Make sure __STDC_CONSTANT_MACROS is defined in cxxflags to
+    ensure build catches missing <stdint.h> in avutils common.h



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kradio depends on:
ii  kdelibs4c2a            4:3.5.10.dfsg.1-5 core libraries and binaries for al
ii  libasound2             1.0.23-1          shared library for ALSA applicatio
ii  libc6                  2.11.2-6          Embedded GNU C Library: Shared lib
ii  libgcc1                1:4.4.4-15        GCC support library
ii  liblircclient0         0.8.3-5           infra-red remote control support -
ii  libogg0                1.2.0~dfsg-1      Ogg bitstream library
ii  libqt3-mt              3:3.3.8b-7+b1     Qt GUI Library (Threaded runtime v
ii  libsndfile1            1.0.21-3          Library for reading/writing audio
ii  libstdc++6             4.4.4-15          The GNU Standard C++ Library v3
ii  libvorbisenc2          1.3.1-1           The Vorbis General Audio Compressi

kradio recommends no packages.

kradio suggests no packages.
diff -u kradio-4.0.0/debian/rules kradio-4.0.0/debian/rules
--- kradio-4.0.0/debian/rules
+++ kradio-4.0.0/debian/rules
@@ -1,4 +1,5 @@
 #!/usr/bin/make -f
 
+CXXFLAGS+=-D__STDC_CONSTANT_MACROS
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/pkg-kde-tools/makefiles/1/cdbs/kde.mk
diff -u kradio-4.0.0/debian/changelog kradio-4.0.0/debian/changelog
--- kradio-4.0.0/debian/changelog
+++ kradio-4.0.0/debian/changelog
@@ -1,3 +1,14 @@
+kradio (4.0.0-0ubuntu5) maverick; urgency=low
+
+  * armel-qreal-fix:
+    - Fixes non existent call to qMin(qreal, double) on armel bug
+    by casting double arg to qreali (LP: #642117)
+  * debian/rules:
+    - Make sure __STDC_CONSTANT_MACROS is defined in cxxflags to 
+    ensure build catches missing <stdint.h> in avutils common.h
+
+ -- Niall Creech <niallcreech@gmail.com>  Tue, 21 Sep 2010 17:37:24 +0100
+
 kradio (4.0.0-0ubuntu4) maverick; urgency=low
 
   * Add cmake to build-dependencies as kdelibs5-dev no longer depends on it.
only in patch2:
unchanged:
--- kradio-4.0.0.orig/plugins/gui-standard-display/radioview_frequencyradio.cpp
+++ kradio-4.0.0/plugins/gui-standard-display/radioview_frequencyradio.cpp
@@ -408,7 +408,7 @@
 
     // auxiliary variables
     qreal   margin = qMax(4.0, qMin(width / 50.0, height / 50.0));
-    qreal   tmp    = qMin(height, (width - 2 * margin) / 6.0);
+    qreal   tmp    = qMin(height, (width - 2 * margin) / qreal(6.0));
     qreal   xd_st  = qMin((height - margin * 2) / 3.0, tmp / 3.0);
     qreal   xw     = qMin(tmp / 2.0, xd_st * 1.5);
     qreal   penw   = qMax(1.0, xw / 25.0);

Reply to: