Source: libffado
Version: 2.2.1-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: powerpcspe

Hi,

on powerpcspe, libffado FTBFS like this:

...
Checking whether 'which dbusxx-xml2cpp' executes yes
Checking for variable session_bus_services_dir in package dbus-1...     yes
Trying to find the system triple: (cached) powerpc-unknown-linux-gnu
ValueError: need more than 1 value to unpack:
  File "/«PKGBUILDDIR»/SConstruct", line 740:
    cpuinfo = CpuInfo()
  File "/«PKGBUILDDIR»/SConstruct", line 541:
    self.cpu_info_ppc()
  File "/«PKGBUILDDIR»/SConstruct", line 606:
    ppc_type, x = v.split(',')
make: *** [debian/stamp-scons-build] Error 2
debian/rules:65: recipe for target 'debian/stamp-scons-build' failed
dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit 
status 2
...

The attached patch fixes this.

Thanks in advance,

Roland


-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: powerpcspe (ppc)

Kernel: Linux 3.9.0-dirty (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: libffado-2.2.1/SConstruct
===================================================================
--- libffado-2.2.1.orig/SConstruct	2014-12-11 11:33:42.000000000 +0100
+++ libffado-2.2.1/SConstruct	2014-12-11 11:54:23.217214206 +0100
@@ -603,7 +603,10 @@
                 self.cpu_count += 1
             elif k == 'cpu':
                 self.is_altivec_supported = 'altivec' in v
-                ppc_type, x = v.split(',')
+                if ',' in v:
+                    ppc_type, x = v.split(',')
+                else:
+                    ppc_type = v
                 self.ppc_type = ppc_type.strip()
         # older kernels might not have a 'processor' line
         if self.cpu_count == 0:

Reply via email to