[lxc-devel] [lxd/master] Update makefile for 3.0
stgraber on Github
lxc-bot at linuxcontainers.org
Wed Feb 28 21:10:55 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180228/4b94d8ff/attachment.bin>
-------------- next part --------------
From a3f668fa0f54ecf8742365574cf1e303ad21d36d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 28 Feb 2018 14:54:22 -0500
Subject: [PATCH 1/2] Makefile: Remove Go 1.7 workaround
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
Makefile | 3 ---
1 file changed, 3 deletions(-)
diff --git a/Makefile b/Makefile
index ae69895b0..5bc2be3ee 100644
--- a/Makefile
+++ b/Makefile
@@ -72,9 +72,6 @@ dist:
# Download dependencies
cd $(TMP)/lxd-$(VERSION) && GOPATH=$(TMP)/dist go get -t -v -d ./...
- # Workaround for gorilla/mux on Go < 1.7
- cd $(TMP)/lxd-$(VERSION) && GOPATH=$(TMP)/dist go get -v -d github.com/gorilla/context
-
# Assemble tarball
rm $(TMP)/dist/src/github.com/lxc/lxd
ln -s ../../../../ $(TMP)/dist/src/github.com/lxc/lxd
From dfcddda99b5e4a6255425e81f5025c89b09c4e7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 28 Feb 2018 14:56:23 -0500
Subject: [PATCH 2/2] Makefile: Include the custom sqlite
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Makefile b/Makefile
index 5bc2be3ee..337e8db3e 100644
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,11 @@ dist:
# Download dependencies
cd $(TMP)/lxd-$(VERSION) && GOPATH=$(TMP)/dist go get -t -v -d ./...
+ # Download the cluster-enabled sqlite
+ git clone https://github.com/CanonicalLtd/sqlite $(TMP)/dist/sqlite
+ cd $(TMP)/dist/sqlite && git log -1 --format="format:%ci%n" | sed -e 's/ [-+].*$$//;s/ /T/;s/^/D /' > manifest
+ cd $(TMP)/dist/sqlite && git log -1 --format="format:%H" > manifest.uuid
+
# Assemble tarball
rm $(TMP)/dist/src/github.com/lxc/lxd
ln -s ../../../../ $(TMP)/dist/src/github.com/lxc/lxd
More information about the lxc-devel
mailing list