diff options
| -rw-r--r-- | recipes-connectivity/consul/consul_git.bb | 5 | ||||
| -rw-r--r-- | recipes-connectivity/consul/files/0001-prepared_query-make-compatible-with-go1.5.patch | 31 |
2 files changed, 3 insertions, 33 deletions
diff --git a/recipes-connectivity/consul/consul_git.bb b/recipes-connectivity/consul/consul_git.bb index b0afa03..f9fb236 100644 --- a/recipes-connectivity/consul/consul_git.bb +++ b/recipes-connectivity/consul/consul_git.bb | |||
| @@ -4,14 +4,15 @@ LICENSE = "MPL-2.0 & BSD & Apache-2.0 & BSD-2-Clause & MIT" | |||
| 4 | LIC_FILES_CHKSUM = "file://src/github.com/hashicorp/consul/LICENSE;md5=b278a92d2c1509760384428817710378" | 4 | LIC_FILES_CHKSUM = "file://src/github.com/hashicorp/consul/LICENSE;md5=b278a92d2c1509760384428817710378" |
| 5 | 5 | ||
| 6 | GO_IMPORT = "github.com/hashicorp/consul" | 6 | GO_IMPORT = "github.com/hashicorp/consul" |
| 7 | SRCREV = "f97afda8e15046b41d951bf3b4220372c45df7ab" | 7 | SRCREV = "567e41ff6b096a478333c804d5c18264050bc3f8" |
| 8 | SRC_URI = "git://${GO_IMPORT}.git \ | 8 | SRC_URI = "git://${GO_IMPORT}.git \ |
| 9 | file://consul.service \ | 9 | file://consul.service \ |
| 10 | file://0001-prepared_query-make-compatible-with-go1.5.patch \ | ||
| 11 | " | 10 | " |
| 12 | 11 | ||
| 13 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 14 | 13 | ||
| 14 | RDEPENDS_${PN}-dev_append = " bash" | ||
| 15 | |||
| 15 | inherit systemd go | 16 | inherit systemd go |
| 16 | 17 | ||
| 17 | # Besides the hosts specified in goarch, we do not build for mips. | 18 | # Besides the hosts specified in goarch, we do not build for mips. |
diff --git a/recipes-connectivity/consul/files/0001-prepared_query-make-compatible-with-go1.5.patch b/recipes-connectivity/consul/files/0001-prepared_query-make-compatible-with-go1.5.patch deleted file mode 100644 index 324530b..0000000 --- a/recipes-connectivity/consul/files/0001-prepared_query-make-compatible-with-go1.5.patch +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | From fb11d9e31788c912f94faf8b188278d54dc9a8f1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
| 3 | Date: Wed, 20 Apr 2016 16:34:50 -0400 | ||
| 4 | Subject: [PATCH] prepared_query: make compatible with go1.5 | ||
| 5 | |||
| 6 | The copying of a regex is only in go 1.6. We can take the chance of | ||
| 7 | lock contention, so we drop the copy and use the regex directly. | ||
| 8 | |||
| 9 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
| 10 | --- | ||
| 11 | src/github.com/hashicorp/consul/consul/prepared_query/template.go | 4 ++-- | ||
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/src/github.com/hashicorp/consul/consul/prepared_query/template.go b/src/github.com/hashicorp/consul/consul/prepared_query/template.go | ||
| 15 | index 984f0bcf9cc6..1c61910c1526 100644 | ||
| 16 | --- a/src/github.com/hashicorp/consul/consul/prepared_query/template.go | ||
| 17 | +++ b/src/github.com/hashicorp/consul/consul/prepared_query/template.go | ||
| 18 | @@ -116,8 +116,8 @@ func (ct *CompiledTemplate) Render(name string) (*structs.PreparedQuery, error) | ||
| 19 | // from multiple goroutines. | ||
| 20 | var matches []string | ||
| 21 | if ct.re != nil { | ||
| 22 | - re := ct.re.Copy() | ||
| 23 | - matches = re.FindStringSubmatch(name) | ||
| 24 | + // re := ct.re.Copy() | ||
| 25 | + matches = ct.re.FindStringSubmatch(name) | ||
| 26 | } | ||
| 27 | |||
| 28 | // Create a safe match function that can't fail at run time. It will | ||
| 29 | -- | ||
| 30 | 2.4.0.53.g8440f74 | ||
| 31 | |||
