[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#964576: dav1d: FTBFS on x32: uses assembly that was not ported to x32



tags 964576 + patch
thanks

On Wed, 8 Jul 2020, Thorsten Glaser wrote:

> dav1d misdetects x32 as amd64, leading to failures such as:
> 
> /usr/bin/ld: i386:x86-64 architecture of input file `src/25a6634@@dav1d@sha/loopfilter.obj' is incompatible with i386:x64-32 output

debdiff attached; please apply, or I can NMU if you prefer.

Thanks in advance,
//mirabilos
-- 
«MyISAM tables -will- get corrupted eventually. This is a fact of life. »
“mysql is about as much database as ms access” – “MSSQL at least descends
from a database” “it's a rebranded SyBase” “MySQL however was born from a
flatfile and went downhill from there” – “at least jetDB doesn’t claim to
be a database”	‣‣‣ Please, http://deb.li/mysql and MariaDB, finally die!
diff -Nru dav1d-0.7.1/debian/changelog dav1d-0.7.1/debian/changelog
--- dav1d-0.7.1/debian/changelog	2020-07-04 22:39:36.000000000 +0200
+++ dav1d-0.7.1/debian/changelog	2020-07-08 23:07:41.000000000 +0200
@@ -1,3 +1,10 @@
+dav1d (0.7.1-2+x32.1) unreleased; urgency=high
+
+  * Non-maintainer upload.
+  * Disable asm code on x32, it hasn’t been ported there (Closes: #964576)
+
+ -- Thorsten Glaser <tg@mirbsd.de>  Wed, 08 Jul 2020 23:07:41 +0200
+
 dav1d (0.7.1-2) unstable; urgency=medium
 
   * Update homepage in d/control
diff -Nru dav1d-0.7.1/debian/rules dav1d-0.7.1/debian/rules
--- dav1d-0.7.1/debian/rules	2020-07-04 22:39:36.000000000 +0200
+++ dav1d-0.7.1/debian/rules	2020-07-08 23:07:36.000000000 +0200
@@ -5,8 +5,15 @@
 %:
 	dh $@
 
+CONFIG_ARGS:=	--buildtype="release"
+
+DEB_HOST_ARCH?=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+ifeq (x32,$(DEB_HOST_ARCH))
+CONFIG_ARGS+=	-Denable_asm=false
+endif
+
 override_dh_auto_configure:
-	dh_auto_configure -- --buildtype="release"
+	dh_auto_configure -- ${CONFIG_ARGS}
 
 override_dh_auto_test:
 	# Since 0.7.1, test timeout on armel

Reply to: