No build reason found for pool-leap-15.6:x86_64

File 0026-templates-Add-mips-hostarch-detection-to-debian.patch of Package lxc

From 6219206fc4e76d108f9bb2d0a8cd55b7070fd467 Mon Sep 17 00:00:00 2001
From: James Cowgill <james410@cowgill.org.uk>
Date: Mon, 15 Aug 2016 16:10:00 +0000
Subject: [PATCH 26/27] templates: Add mips hostarch detection to debian

Signed-off-by: James Cowgill <james410@cowgill.org.uk>
---
 templates/lxc-debian.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index ac8158c..7ebea90 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -543,6 +543,8 @@ if [ $? -ne 0 ]; then
 fi
 eval set -- "$options"
 
+littleendian=$(lscpu | grep '^Byte Order' | grep -q Little && echo yes)
+
 arch=$(uname -m)
 if [ "$arch" = "i686" ]; then
     arch="i386"
@@ -550,6 +552,10 @@ elif [ "$arch" = "x86_64" ]; then
     arch="amd64"
 elif [ "$arch" = "armv7l" ]; then
     arch="armhf"
+elif [ "$arch" = "mips" -a "$littleendian" = "yes" ]; then
+    arch="mipsel"
+elif [ "$arch" = "mips64" -a "$littleendian" = "yes" ]; then
+    arch="mips64el"
 fi
 hostarch=$arch
 mainonly=1
-- 
2.9.3

openSUSE Build Service is sponsored by