[SCM] bs1770gain/master: Added 30-strict-cast-align.diff to ensure the build fail on architectures where misaligned pointers cause runtime failure.

pere at users.alioth.debian.org pere at users.alioth.debian.org
Tue Jun 23 20:51:56 UTC 2015


The following commit has been merged in the master branch:
commit 2a9e0969e3a7405a9a24805a65da92a5e4a5d301
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Tue Jun 23 20:50:44 2015 +0000

    Added 30-strict-cast-align.diff to ensure the build fail on architectures where misaligned pointers cause runtime failure.

diff --git a/debian/patches/30-strict-cast-align.diff b/debian/patches/30-strict-cast-align.diff
new file mode 100644
index 0000000..f11d72f
--- /dev/null
+++ b/debian/patches/30-strict-cast-align.diff
@@ -0,0 +1,22 @@
+Description: Enforce strict cast alignment check
+ Make sure the source fail to build on archs where casting break
+ alignment rules.
+
+Author: Petter Reinholdtsen <pere at hungry.com>
+Forwarded: no
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+diff --git a/libffsox-2/Makefile.in b/libffsox-2/Makefile.in
+index 3d0f98a..4488291 100755
+--- a/libffsox-2/Makefile.in
++++ b/libffsox-2/Makefile.in
+@@ -115,7 +115,7 @@ BS1770GAIN_TOOLS_UNINSTALL = @BS1770GAIN_TOOLS_UNINSTALL@
+ CC = @CC@
+ CCDEPMODE = @CCDEPMODE@
+ #CFLAGS+=-Wcast-align
+-CFLAGS = @CFLAGS@ -Werror -Wall -Wformat -Wpointer-arith -Wcast-qual \
++CFLAGS = @CFLAGS@ -Werror -Wall -Wformat -Wpointer-arith -Wcast-qual -Wcast-align \
+ 	-Wreturn-type -Wextra -Wstrict-prototypes
+ CPP = @CPP@
+ #CFLAGS+=-Wmissing-declarations
diff --git a/debian/patches/series b/debian/patches/series
index 936fc4b..08649df 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 20-audio-decode-problem.diff
+30-strict-cast-align.diff

-- 
bs1770gain packaging



More information about the pkg-multimedia-commits mailing list