[SCM] kodi/master: Make configure more verbose when building on architecture not supported by upstream
rbalint at users.alioth.debian.org
rbalint at users.alioth.debian.org
Wed Aug 26 08:33:33 UTC 2015
The following commit has been merged in the master branch:
commit 7cfbc2371f99ff22fc1043fb53dd4d6a35b4b842
Author: Balint Reczey <balint at balintreczey.hu>
Date: Wed Aug 26 08:22:48 2015 +0200
Make configure more verbose when building on architecture not supported by upstream
diff --git a/debian/patches/02_allow_all_arches.patch b/debian/patches/02_allow_all_arches.patch
index 5dfd87d..73c41b2 100644
--- a/debian/patches/02_allow_all_arches.patch
+++ b/debian/patches/02_allow_all_arches.patch
@@ -1,31 +1,47 @@
+From b45a3c491a9a16be0cc3b2af91f39025e4c17cbc Mon Sep 17 00:00:00 2001
+From: Balint Reczey <balint at balintreczey.hu>
+Date: Wed, 26 Aug 2015 08:14:41 +0200
+Subject: [PATCH] Let configure pass on unknown architectures setting sane
+ defaults
+
+This helps porting Kodi to new architectures while emitting warnings about
+entering uncharted territory.
+---
+ configure.ac | 3 ++-
+ m4/xbmc_arch.m4 | 6 ++++--
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -715,7 +715,8 @@
+ USE_STATIC_FFMPEG=1
+ ;;
+ *)
+- AC_MSG_ERROR(unsupported host ($host))
++ ARCH=$host_cpu"-"$host_os
++ AC_MSG_WARN([unsupported host ($host), guessing ARCH as $ARCH.])
+ esac
+ AC_SUBST([ARCH])
+
--- a/m4/xbmc_arch.m4
+++ b/m4/xbmc_arch.m4
-@@ -27,7 +27,7 @@
+@@ -27,7 +27,8 @@
AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
;;
*)
- AC_MSG_ERROR(unsupported native build platform: $build)
++ AC_MSG_WARN([unsupported native build platform: $build])
+ AC_SUBST(NATIVE_ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
esac
-@@ -70,7 +70,7 @@
+@@ -70,7 +71,8 @@
AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX -DTARGET_ANDROID")
;;
*)
- AC_MSG_ERROR(unsupported build target: $host)
++ AC_MSG_WARN([unsupported native build platform: $build])
+ AC_SUBST(ARCH_DEFINES, "-DTARGET_POSIX -DTARGET_LINUX -D_LINUX")
esac
if test "$target_platform" = "target_android" ; then
---- a/configure.ac
-+++ b/configure.ac
-@@ -715,7 +715,7 @@
- USE_STATIC_FFMPEG=1
- ;;
- *)
-- AC_MSG_ERROR(unsupported host ($host))
-+ ARCH=$host_cpu"-"$host_os
- esac
- AC_SUBST([ARCH])
-
--
kodi packaging
More information about the pkg-multimedia-commits
mailing list