[SCM] qtractor/master: Attempt to fix FTBFS by introducing fallback for custom atomic functions.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Oct 9 13:43:58 UTC 2013


The following commit has been merged in the master branch:
commit 54276e84f784662a25f4e4732fee01c13503e44e
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Oct 9 14:29:23 2013 +0100

    Attempt to fix FTBFS by introducing fallback for custom atomic functions.
    
    Closes: #725611

diff --git a/debian/patches/04-q_atomic_ftbfs.patch b/debian/patches/04-q_atomic_ftbfs.patch
new file mode 100644
index 0000000..c85bb2a
--- /dev/null
+++ b/debian/patches/04-q_atomic_ftbfs.patch
@@ -0,0 +1,25 @@
+Description: Definte generic atomic function to prevent FTBFS on most
+ architectures.
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725611
+Author: Alessio Treglia <alessio at debian.org>
+---
+ src/qtractorAtomic.h |    8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+--- qtractor.orig/src/qtractorAtomic.h
++++ qtractor/src/qtractorAtomic.h
+@@ -79,7 +79,13 @@ static inline int ATOMIC_CAS1 (
+ }
+ 
+ #else
+-#   error "qtractorAtomic.h: unsupported target compiler processor (GNUC)."
++
++static inline int ATOMIC_CAS1 (
++       volatile int *pAddr, int iOldValue, int iNewValue )
++{
++       return q_atomic_test_and_set_int(pAddr, iOldValue, iNewValue);
++}
++
+ #endif
+ 
+ #elif defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
diff --git a/debian/patches/series b/debian/patches/series
index 53ede1b..654a7fc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 03-gcc47.patch
+04-q_atomic_ftbfs.patch

-- 
qtractor packaging



More information about the pkg-multimedia-commits mailing list