Bug#838317: x264 FTCBFS: configures for the build architecture

Helmut Grohne helmut at subdivi.de
Mon Sep 19 19:42:23 UTC 2016


Source: x264
Version: 2:0.148.2699+gita5e06b9-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

x264 fails to cross build from source, because it configures the build
for the build architecture. After recognizing that it uses a
hand-crafted configure script, figuring the right flags is pretty
simple. For cross compilation it wants --host and --cross-prefix. Once
giving these options, it crosses just fine (at least for ppc64el).
Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru x264-0.148.2699+gita5e06b9/debian/changelog x264-0.148.2699+gita5e06b9/debian/changelog
--- x264-0.148.2699+gita5e06b9/debian/changelog	2016-06-14 23:15:14.000000000 +0200
+++ x264-0.148.2699+gita5e06b9/debian/changelog	2016-09-19 21:38:55.000000000 +0200
@@ -1,3 +1,10 @@
+x264 (2:0.148.2699+gita5e06b9-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass cross flags to configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 19 Sep 2016 21:20:58 +0200
+
 x264 (2:0.148.2699+gita5e06b9-1) unstable; urgency=medium
 
   * Update to new stable upstream
diff --minimal -Nru x264-0.148.2699+gita5e06b9/debian/confflags x264-0.148.2699+gita5e06b9/debian/confflags
--- x264-0.148.2699+gita5e06b9/debian/confflags	2016-01-18 19:57:53.000000000 +0100
+++ x264-0.148.2699+gita5e06b9/debian/confflags	2016-09-19 21:24:48.000000000 +0200
@@ -20,6 +20,10 @@
 
 common_confflags += --prefix=/usr --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
 
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+common_confflags += --host=$(DEB_HOST_GNU_TYPE) --cross-prefix=$(DEB_HOST_GNU_TYPE)-
+endif
+
 ifneq (,$(filter stage1,$(DEB_BUILD_PROFILES)))
 common_confflags += --disable-avs --disable-ffms --disable-gpac
 endif


More information about the pkg-multimedia-maintainers mailing list