summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go-dep
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-10-14 08:48:52 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:33:22 +0000
commita3d3d7f511ac836c619236e03c5eea34598e463e (patch)
tree85ed7f92366ea85138ec7abf63bfdddf990121fe /meta/recipes-devtools/go/go-dep
parentb93bd1074217dfa1ad24c3f4975ee201bd0d6f5d (diff)
downloadpoky-a3d3d7f511ac836c619236e03c5eea34598e463e.tar.gz
go-dep: Upgrade to 0.3.1
(From OE-Core rev: 0fff29b79f7763223d2fe3ebafd315d030ef6e8f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-dep')
-rw-r--r--meta/recipes-devtools/go/go-dep/0001-Add-support-for-mips-mips64.patch54
-rw-r--r--meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch33
2 files changed, 87 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-dep/0001-Add-support-for-mips-mips64.patch b/meta/recipes-devtools/go/go-dep/0001-Add-support-for-mips-mips64.patch
new file mode 100644
index 0000000000..34ec9876f8
--- /dev/null
+++ b/meta/recipes-devtools/go/go-dep/0001-Add-support-for-mips-mips64.patch
@@ -0,0 +1,54 @@
1From f0fb80604385ae3266a472601ef685896b4cc0af Mon Sep 17 00:00:00 2001
2From: Vladimir Stefanovic <vladimir.stefanovic@imgtec.com>
3Date: Fri, 17 Feb 2017 20:44:43 +0100
4Subject: [PATCH] Add support for mips, mips64
5
6---
7Upstream-Status: Submitted
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10 vendor/github.com/boltdb/bolt/bolt_mips64x.go | 12 ++++++++++++
11 vendor/github.com/boltdb/bolt/bolt_mipsx.go | 12 ++++++++++++
12 2 files changed, 24 insertions(+)
13 create mode 100644 vendor/github.com/boltdb/bolt/bolt_mips64x.go
14 create mode 100644 vendor/github.com/boltdb/bolt/bolt_mipsx.go
15
16diff --git a/vendor/github.com/boltdb/bolt/bolt_mips64x.go b/vendor/github.com/boltdb/bolt/bolt_mips64x.go
17new file mode 100644
18index 00000000..134b578b
19--- /dev/null
20+++ b/vendor/github.com/boltdb/bolt/bolt_mips64x.go
21@@ -0,0 +1,12 @@
22+// +build mips64 mips64le
23+
24+package bolt
25+
26+// maxMapSize represents the largest mmap size supported by Bolt.
27+const maxMapSize = 0x8000000000 // 512GB
28+
29+// maxAllocSize is the size used when creating array pointers.
30+const maxAllocSize = 0x7FFFFFFF
31+
32+// Are unaligned load/stores broken on this arch?
33+var brokenUnaligned = false
34diff --git a/vendor/github.com/boltdb/bolt/bolt_mipsx.go b/vendor/github.com/boltdb/bolt/bolt_mipsx.go
35new file mode 100644
36index 00000000..d5ecb059
37--- /dev/null
38+++ b/vendor/github.com/boltdb/bolt/bolt_mipsx.go
39@@ -0,0 +1,12 @@
40+// +build mips mipsle
41+
42+package bolt
43+
44+// maxMapSize represents the largest mmap size supported by Bolt.
45+const maxMapSize = 0x40000000 // 1GB
46+
47+// maxAllocSize is the size used when creating array pointers.
48+const maxAllocSize = 0xFFFFFFF
49+
50+// Are unaligned load/stores broken on this arch?
51+var brokenUnaligned = false
52--
532.14.1
54
diff --git a/meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch b/meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch
new file mode 100644
index 0000000000..2a7bc43cdb
--- /dev/null
+++ b/meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch
@@ -0,0 +1,33 @@
1From 73e8dd479420bb90a46cf9d99ca62289fab3677e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 23 Sep 2017 08:43:58 -0700
4Subject: [PATCH] use a smaller constant that hopefully works the same.
5
6This test uses a constant that is too big for 32bit systems.
7
8Backported from
9https://github.com/boltdb/bolt/issues/645
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13Upstream-Status: Submitted
14
15 vendor/github.com/boltdb/bolt/db_test.go | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/vendor/github.com/boltdb/bolt/db_test.go b/vendor/github.com/boltdb/bolt/db_test.go
19index 3034d4f4..035f5a5f 100644
20--- a/vendor/github.com/boltdb/bolt/db_test.go
21+++ b/vendor/github.com/boltdb/bolt/db_test.go
22@@ -370,7 +370,7 @@ func TestDB_Open_InitialMmapSize(t *testing.T) {
23 path := tempfile()
24 defer os.Remove(path)
25
26- initMmapSize := 1 << 31 // 2GB
27+ initMmapSize := 1 << 29 // 512MB
28 testWriteSize := 1 << 27 // 134MB
29
30 db, err := bolt.Open(path, 0666, &bolt.Options{InitialMmapSize: initMmapSize})
31--
322.14.1
33