diff options
Diffstat (limited to 'meta')
4 files changed, 106 insertions, 16 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 | |||
diff --git a/meta/recipes-devtools/go/go-dep_0.3.0.bb b/meta/recipes-devtools/go/go-dep_0.3.0.bb deleted file mode 100644 index abfeb48370..0000000000 --- a/meta/recipes-devtools/go/go-dep_0.3.0.bb +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | SUMMARY = "Dependency management tool for Golang" | ||
2 | HOMEPAGE = "https://github.com/golang/dep" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=1bad315647751fab0007812f70d42c0d" | ||
5 | |||
6 | GO_IMPORT = "github.com/golang/dep" | ||
7 | SRC_URI = "git://${GO_IMPORT}" | ||
8 | |||
9 | # Points to 0.3.0 tag | ||
10 | SRCREV = "7a91b794bbfbf1f3b8b79823799316451127801b" | ||
11 | |||
12 | inherit go | ||
13 | |||
14 | GO_INSTALL = "${GO_IMPORT}/cmd/dep" | ||
15 | |||
16 | RDEPENDS_${PN}-dev += "bash" | ||
diff --git a/meta/recipes-devtools/go/go-dep_0.3.1.bb b/meta/recipes-devtools/go/go-dep_0.3.1.bb new file mode 100644 index 0000000000..3a404e357f --- /dev/null +++ b/meta/recipes-devtools/go/go-dep_0.3.1.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | SUMMARY = "Dependency management tool for Golang" | ||
2 | HOMEPAGE = "https://github.com/golang/dep" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=1bad315647751fab0007812f70d42c0d" | ||
5 | |||
6 | GO_IMPORT = "github.com/golang/dep" | ||
7 | SRC_URI = "git://${GO_IMPORT} \ | ||
8 | file://0001-use-a-smaller-constant-that-hopefully-works-the-same.patch;patchdir=src/github.com/golang/dep \ | ||
9 | file://0001-Add-support-for-mips-mips64.patch;patchdir=src/github.com/golang/dep \ | ||
10 | " | ||
11 | |||
12 | # Points to 0.3.1 tag | ||
13 | SRCREV = "83789e236d7ff64c82ee8392005455fc1ec1983b" | ||
14 | |||
15 | inherit go | ||
16 | |||
17 | GO_INSTALL = "${GO_IMPORT}/cmd/dep" | ||
18 | |||
19 | RDEPENDS_${PN}-dev += "bash" | ||