diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-10-14 08:48:52 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-05 22:33:22 +0000 |
commit | a3d3d7f511ac836c619236e03c5eea34598e463e (patch) | |
tree | 85ed7f92366ea85138ec7abf63bfdddf990121fe /meta/recipes-devtools/go/go-dep | |
parent | b93bd1074217dfa1ad24c3f4975ee201bd0d6f5d (diff) | |
download | poky-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.patch | 54 | ||||
-rw-r--r-- | meta/recipes-devtools/go/go-dep/0001-use-a-smaller-constant-that-hopefully-works-the-same.patch | 33 |
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 @@ | |||
1 | From f0fb80604385ae3266a472601ef685896b4cc0af Mon Sep 17 00:00:00 2001 | ||
2 | From: Vladimir Stefanovic <vladimir.stefanovic@imgtec.com> | ||
3 | Date: Fri, 17 Feb 2017 20:44:43 +0100 | ||
4 | Subject: [PATCH] Add support for mips, mips64 | ||
5 | |||
6 | --- | ||
7 | Upstream-Status: Submitted | ||
8 | Signed-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 | |||
16 | diff --git a/vendor/github.com/boltdb/bolt/bolt_mips64x.go b/vendor/github.com/boltdb/bolt/bolt_mips64x.go | ||
17 | new file mode 100644 | ||
18 | index 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 | ||
34 | diff --git a/vendor/github.com/boltdb/bolt/bolt_mipsx.go b/vendor/github.com/boltdb/bolt/bolt_mipsx.go | ||
35 | new file mode 100644 | ||
36 | index 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 | -- | ||
53 | 2.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 @@ | |||
1 | From 73e8dd479420bb90a46cf9d99ca62289fab3677e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 23 Sep 2017 08:43:58 -0700 | ||
4 | Subject: [PATCH] use a smaller constant that hopefully works the same. | ||
5 | |||
6 | This test uses a constant that is too big for 32bit systems. | ||
7 | |||
8 | Backported from | ||
9 | https://github.com/boltdb/bolt/issues/645 | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | Upstream-Status: Submitted | ||
14 | |||
15 | vendor/github.com/boltdb/bolt/db_test.go | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/vendor/github.com/boltdb/bolt/db_test.go b/vendor/github.com/boltdb/bolt/db_test.go | ||
19 | index 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 | -- | ||
32 | 2.14.1 | ||
33 | |||