[arch-commits] Commit in libffado/trunk (PKGBUILD fix-test-errno-usage.patch)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 6 06:41:00 UTC 2015


    Date: Sunday, December 6, 2015 @ 07:41:00
  Author: foutrelis
Revision: 252634

Build in C++11 mode (necessitated by glibmm 2.46)

Added:
  libffado/trunk/fix-test-errno-usage.patch
Modified:
  libffado/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |    7 +++++-
 fix-test-errno-usage.patch |   44 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-06 06:32:02 UTC (rev 252633)
+++ PKGBUILD	2015-12-06 06:41:00 UTC (rev 252634)
@@ -17,13 +17,18 @@
             'python2-pyqt: mixer applet')
 provides=('ffado')
 source=("http://www.ffado.org/files/$pkgname-$pkgver.tgz"
+        'fix-test-errno-usage.patch'
         'python2-qt.patch')
 md5sums=('e113d828835051f835fb4a329cb0cbd4'
+         '308ff20eeb99a29e3e51061bdf9fe123'
          'acb6e0dca1239850c7862bf2e1443fd7')
 
 prepare() {
   cd "$srcdir/$pkgname-$pkgver"
 
+  # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805211
+  patch -Np1 -i "$srcdir/fix-test-errno-usage.patch"
+
   msg2 "Applying Python 2 compatibility patch (downstream)"
   patch -Np1 -i "$srcdir/python2-qt.patch"
 }
@@ -35,7 +40,7 @@
         PREFIX=/usr \
         MANDIR=/usr/share/man \
         UDEVDIR=/usr/lib/udev/rules.d \
-        COMPILE_FLAGS="$CFLAGS"
+        COMPILE_FLAGS="$CFLAGS -std=gnu++11"
 }
 
 package() {

Added: fix-test-errno-usage.patch
===================================================================
--- fix-test-errno-usage.patch	                        (rev 0)
+++ fix-test-errno-usage.patch	2015-12-06 06:41:00 UTC (rev 252634)
@@ -0,0 +1,44 @@
+--- a/tests/test-enhanced-mixer.cpp
++++ b/tests/test-enhanced-mixer.cpp
+@@ -77,7 +77,7 @@
+         exit(0);
+     }
+ 
+-    int errno = 0;
++    extern int errno;
+     char* tail;
+     int node_id = strtol( argv[1], &tail, 0 );
+     int fb_id   = strtol( argv[2], &tail, 0 );
+--- a/tests/test-mixer.cpp
++++ b/tests/test-mixer.cpp
+@@ -227,7 +227,7 @@
+         exit(0);
+     }
+ 
+-    int errno = 0;
++    extern int errno;
+     char* tail;
+     int port = strtol( argv[1], &tail, 0 );
+     int node_id = strtol( argv[2], &tail, 0 );
+--- a/tests/test-pan.cpp
++++ b/tests/test-pan.cpp
+@@ -131,7 +131,7 @@
+         exit(0);
+     }
+ 
+-    int errno = 0;
++    extern int errno;
+     char* tail;
+     int node_id = strtol( argv[1], &tail, 0 );
+     int fb_id   = strtol( argv[2], &tail, 0 );
+--- a/tests/test-volume.cpp
++++ b/tests/test-volume.cpp
+@@ -127,7 +127,7 @@
+         exit(0);
+     }
+ 
+-    int errno = 0;
++    extern int errno;
+     char* tail;
+     int node_id = strtol( argv[1], &tail, 0 );
+     int fb_id   = strtol( argv[2], &tail, 0 );



More information about the arch-commits mailing list