Skip to contentSkip to conversation

mender: fix ioctl build failure on powerpc64le / power8

PATCH New Giulio Benetti 2 participants 2 messages Aug 29, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mender: fix ioctl build failure on powerpc64le / power8

Build fails due to missing // +build ppc64le in ioctl_64_bit.go

Add patch to append ppc64le to // +build list.

Fixes
http://autobuild.buildroot.net/results/f22/f222b4389f9308363c386da25ec22a0919bc29fb//

---
 .../0001-FIX-Enabling-compiling-ppc64le.patch | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 package/mender/0001-FIX-Enabling-compiling-ppc64le.patch
package/mender/0001-FIX-Enabling-compiling-ppc64le.patch new file +37 -0
new file mode 100644
index 0000000000..3197a0ec01
@@ -0,0 +1,37 @@
+From 2b13f9a50793fdc15199925000107cb0cc4e7bad Mon Sep 17 00:00:00 2001
+From: Angelo Compagnucci <[email protected]>
+Date: Thu, 9 Aug 2018 09:28:06 +0200
+Subject: [PATCH] FIX: Enabling compiling ppc64le
+
+This patch enables Mender compilation on ppc64le
+
+Changelog: FIX: Enabling compiling ppc64le
+
+Signed-off-by: Angelo Compagnucci <[email protected]>
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ ioctl_64_bit.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ioctl_64_bit.go b/ioctl_64_bit.go
+index 6f61a6c..f1e2dd8 100644
+--- a/ioctl_64_bit.go
++++ b/ioctl_64_bit.go
+@@ -1,4 +1,4 @@
+-// Copyright 2017 Northern.tech AS
++// Copyright 2018 Northern.tech AS
+ //
+ //    Licensed under the Apache License, Version 2.0 (the "License");
+ //    you may not use this file except in compliance with the License.
+@@ -12,7 +12,7 @@
+ //    See the License for the specific language governing permissions and
+ //    limitations under the License.
+ 
+-// +build amd64 arm64
++// +build amd64 arm64 ppc64le
+ 
+ package main
+ 
+-- 
+2.17.1
+
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/1 mender: fix ioctl build failure on powerpc64le / power8

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

Build fails due to missing // +build ppc64le in ioctl_64_bit.go Add patch to append ppc64le to // +build list.

Fixes
http://autobuild.buildroot.net/results/f22/f222b4389f9308363c386da25ec22a0919bc29fb//

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard