[SCM] tsdecrypt/master: Remove inappropriate compiler flags.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Mon Feb 24 14:54:16 UTC 2014
The following commit has been merged in the master branch:
commit e67a5a0f486f343006f6e9920c8265213dd6aba9
Author: Alessio Treglia <alessio at debian.org>
Date: Mon Feb 24 14:49:00 2014 +0000
Remove inappropriate compiler flags.
diff --git a/debian/patches/avoid-inappropriate-compiler-flags b/debian/patches/avoid-inappropriate-compiler-flags
new file mode 100644
index 0000000..adbf785
--- /dev/null
+++ b/debian/patches/avoid-inappropriate-compiler-flags
@@ -0,0 +1,52 @@
+Description: Avoid inappropriate compiler flags
+ The tsdecrypt build system tries to be too clever and assumes that the system
+ it is built on will be the system it is going to run on. This is inappropriate
+ for Debian so we need to disable some of this logic.
+Author: Peter Michael Green <plugwash at debian.org>
+
+--- tsdecrypt-10.0.orig/FFdecsa_init
++++ tsdecrypt-10.0/FFdecsa_init
+@@ -106,26 +106,26 @@ test_ffdecsa_mode() {
+ }
+
+ # Check CPU and compiler flags
+-if cc_check -march=native
+-then
+- FFDECSA_CFLAGS="$FFDECSA_CFLAGS -march=native"
+-elif cc_check -march=pentium; then
+- FFDECSA_CFLAGS="$FFDECSA_CFLAGS -march=pentium"
+-fi
++#if cc_check -march=native
++#then
++# FFDECSA_CFLAGS="$FFDECSA_CFLAGS -march=native"
++#elif cc_check -march=pentium; then
++# FFDECSA_CFLAGS="$FFDECSA_CFLAGS -march=pentium"
++#fi
+
+ OPTS=""
+ FLAGS=""
+-for flag in mmx sse sse2
+-do
+- if cpu_have $flag
+- then
+- OPTS="$OPTS $flag"
+- if cc_check -m$flag
+- then
+- FFDECSA_CFLAGS="$FFDECSA_CFLAGS -m$flag"
+- fi
+- fi
+-done
++#for flag in mmx sse sse2
++#do
++# if cpu_have $flag
++# then
++# OPTS="$OPTS $flag"
++# if cc_check -m$flag
++# then
++# FFDECSA_CFLAGS="$FFDECSA_CFLAGS -m$flag"
++# fi
++# fi
++#done
+
+ log "Host CPU" "$(uname -m) $OPTS"
+ log "FFdecsa CFLAGS" "$FFDECSA_CFLAGS"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4ef81ac
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+avoid-inappropriate-compiler-flags
--
tsdecrypt packaging
More information about the pkg-multimedia-commits
mailing list