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 13:54:44 +0000 |
commit | 0fff29b79f7763223d2fe3ebafd315d030ef6e8f (patch) | |
tree | ab4867beb9974a31c06bc2f48272df6ad28120d3 /meta/recipes-devtools/go/go-dep | |
parent | d069d201ec92e95aac7f2ad586ea77318c570ecb (diff) | |
download | openembedded-core-contrib-0fff29b79f7763223d2fe3ebafd315d030ef6e8f.tar.gz |
go-dep: Upgrade to 0.3.1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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 @@ +From f0fb80604385ae3266a472601ef685896b4cc0af Mon Sep 17 00:00:00 2001 +From: Vladimir Stefanovic <vladimir.stefanovic@imgtec.com> +Date: Fri, 17 Feb 2017 20:44:43 +0100 +Subject: [PATCH] Add support for mips, mips64 + +--- +Upstream-Status: Submitted +Signed-off-by: Khem Raj <raj.khem@gmail.com> + + vendor/github.com/boltdb/bolt/bolt_mips64x.go | 12 ++++++++++++ + vendor/github.com/boltdb/bolt/bolt_mipsx.go | 12 ++++++++++++ + 2 files changed, 24 insertions(+) + create mode 100644 vendor/github.com/boltdb/bolt/bolt_mips64x.go + create mode 100644 vendor/github.com/boltdb/bolt/bolt_mipsx.go + +diff --git a/vendor/github.com/boltdb/bolt/bolt_mips64x.go b/vendor/github.com/boltdb/bolt/bolt_mips64x.go +new file mode 100644 +index 00000000..134b578b +--- /dev/null ++++ b/vendor/github.com/boltdb/bolt/bolt_mips64x.go +@@ -0,0 +1,12 @@ ++// +build mips64 mips64le ++ ++package bolt ++ ++// maxMapSize represents the largest mmap size supported by Bolt. ++const maxMapSize = 0x8000000000 // 512GB ++ ++// maxAllocSize is the size used when creating array pointers. ++const maxAllocSize = 0x7FFFFFFF ++ ++// Are unaligned load/stores broken on this arch? ++var brokenUnaligned = false +diff --git a/vendor/github.com/boltdb/bolt/bolt_mipsx.go b/vendor/github.com/boltdb/bolt/bolt_mipsx.go +new file mode 100644 +index 00000000..d5ecb059 +--- /dev/null ++++ b/vendor/github.com/boltdb/bolt/bolt_mipsx.go +@@ -0,0 +1,12 @@ ++// +build mips mipsle ++ ++package bolt ++ ++// maxMapSize represents the largest mmap size supported by Bolt. ++const maxMapSize = 0x40000000 // 1GB ++ ++// maxAllocSize is the size used when creating array pointers. ++const maxAllocSize = 0xFFFFFFF ++ ++// Are unaligned load/stores broken on this arch? ++var brokenUnaligned = false +-- +2.14.1 + 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 @@ +From 73e8dd479420bb90a46cf9d99ca62289fab3677e Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 23 Sep 2017 08:43:58 -0700 +Subject: [PATCH] use a smaller constant that hopefully works the same. + +This test uses a constant that is too big for 32bit systems. + +Backported from +https://github.com/boltdb/bolt/issues/645 + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- +Upstream-Status: Submitted + + vendor/github.com/boltdb/bolt/db_test.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/vendor/github.com/boltdb/bolt/db_test.go b/vendor/github.com/boltdb/bolt/db_test.go +index 3034d4f4..035f5a5f 100644 +--- a/vendor/github.com/boltdb/bolt/db_test.go ++++ b/vendor/github.com/boltdb/bolt/db_test.go +@@ -370,7 +370,7 @@ func TestDB_Open_InitialMmapSize(t *testing.T) { + path := tempfile() + defer os.Remove(path) + +- initMmapSize := 1 << 31 // 2GB ++ initMmapSize := 1 << 29 // 512MB + testWriteSize := 1 << 27 // 134MB + + db, err := bolt.Open(path, 0666, &bolt.Options{InitialMmapSize: initMmapSize}) +-- +2.14.1 + |