[SCM] libsoxr/master: Define NDEBUG to disable debug output

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Sun Dec 25 17:46:01 UTC 2016


The following commit has been merged in the master branch:
commit 3e438f41361a533fdefdd270b0326398592fa47b
Author: Benjamin Drung <bdrung at debian.org>
Date:   Sun Dec 25 18:40:46 2016 +0100

    Define NDEBUG to disable debug output
    
    Cherry-pick defining NDEBUG from upstream commit
    5fa7eeb9a3df65452970566abc027db566012caf to disable debug output.
    
    Closes: #822727
    LP: #1649224

diff --git a/debian/patches/ndebug.patch b/debian/patches/ndebug.patch
new file mode 100644
index 0000000..ddd9459
--- /dev/null
+++ b/debian/patches/ndebug.patch
@@ -0,0 +1,21 @@
+Description: Define NDEBUG to disable debug output
+ Cherry-pick defining NDEBUG from upstream commit
+ 5fa7eeb9a3df65452970566abc027db566012caf to disable debug output
+Bug-Debian: https://bugs.debian.org/822727
+Bug-Ubuntu: https://launchpad.net/bugs/1649224
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 406e826..0450ab2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -174,6 +174,10 @@ if (BUILD_SHARED_LIBS)
+   endif ()
+ endif ()
+ 
++if (CMAKE_BUILD_TYPE STREQUAL "None") # As used by some distros.
++  add_definitions (-DNDEBUG)
++endif ()
++
+ 
+ 
+ # Installation configuration:
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c807d92
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ndebug.patch

-- 
libsoxr packaging



More information about the pkg-multimedia-commits mailing list