mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
SUMMARY = "Dependency management tool for Golang"
|
||||
HOMEPAGE = "https://github.com/golang/dep"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=1bad315647751fab0007812f70d42c0d"
|
||||
|
||||
GO_IMPORT = "github.com/golang/dep"
|
||||
SRC_URI = "git://${GO_IMPORT}"
|
||||
|
||||
# Points to 0.3.0 tag
|
||||
SRCREV = "7a91b794bbfbf1f3b8b79823799316451127801b"
|
||||
|
||||
inherit go
|
||||
|
||||
GO_INSTALL = "${GO_IMPORT}/cmd/dep"
|
||||
|
||||
RDEPENDS_${PN}-dev += "bash"
|
||||
19
meta/recipes-devtools/go/go-dep_0.3.1.bb
Normal file
19
meta/recipes-devtools/go/go-dep_0.3.1.bb
Normal file
@@ -0,0 +1,19 @@
|
||||
SUMMARY = "Dependency management tool for Golang"
|
||||
HOMEPAGE = "https://github.com/golang/dep"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=1bad315647751fab0007812f70d42c0d"
|
||||
|
||||
GO_IMPORT = "github.com/golang/dep"
|
||||
SRC_URI = "git://${GO_IMPORT} \
|
||||
file://0001-use-a-smaller-constant-that-hopefully-works-the-same.patch;patchdir=src/github.com/golang/dep \
|
||||
file://0001-Add-support-for-mips-mips64.patch;patchdir=src/github.com/golang/dep \
|
||||
"
|
||||
|
||||
# Points to 0.3.1 tag
|
||||
SRCREV = "83789e236d7ff64c82ee8392005455fc1ec1983b"
|
||||
|
||||
inherit go
|
||||
|
||||
GO_INSTALL = "${GO_IMPORT}/cmd/dep"
|
||||
|
||||
RDEPENDS_${PN}-dev += "bash"
|
||||
Reference in New Issue
Block a user