[gnome-build-meta/valentindavid/toolbox: 66/66] Add toolbox
- From: Valentin David <valentindavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/valentindavid/toolbox: 66/66] Add toolbox
- Date: Mon, 17 Aug 2020 09:18:57 +0000 (UTC)
commit 45da7ac97b18902f80ee32a94b7f0d0e28164d28
Author: Valentin David <valentin david codethink co uk>
Date: Tue Jul 28 10:27:00 2020 +0200
Add toolbox
elements/vm/deps-devel.bst | 1 +
elements/vm/toolbox.bst | 97 ++++++++++++++++++++++++++++++++++++++
files/toolbox/toolbox-vendor.patch | 10 ++++
3 files changed, 108 insertions(+)
---
diff --git a/elements/vm/deps-devel.bst b/elements/vm/deps-devel.bst
index 4342177a..212fbc0f 100644
--- a/elements/vm/deps-devel.bst
+++ b/elements/vm/deps-devel.bst
@@ -7,4 +7,5 @@ runtime-depends:
- vm/initramfs.bst
- vm/buildstream/buildstream.bst
- vm/buildstream/bst-external.bst
+- vm/toolbox.bst
- freedesktop-sdk.bst:components/podman.bst
diff --git a/elements/vm/toolbox.bst b/elements/vm/toolbox.bst
new file mode 100644
index 00000000..a7a31dce
--- /dev/null
+++ b/elements/vm/toolbox.bst
@@ -0,0 +1,97 @@
+kind: meson
+
+sources:
+- kind: tar
+ url: https://github.com/containers/toolbox/releases/download/0.0.93/toolbox-0.0.93.tar.xz
+- kind: patch
+ path: files/toolbox/toolbox-vendor.patch
+- kind: git_tag
+ url: https://github.com/HarryMichal/go-version.git
+ track: v1.0.0
+ track-tags: false
+ directory: 'src/vendor/github.com/HarryMichal/go-version'
+- kind: git_tag
+ url: https://github.com/acobaugh/osrelease.git
+ track: a93a0a55a249
+ track-tags: false
+ directory: 'src/vendor/github.com/acobaugh/osrelease'
+- kind: git_tag
+ url: https://github.com/briandowns/spinner.git
+ track: v1.10.0
+ track-tags: false
+ directory: 'src/vendor/github.com/briandowns/spinner'
+- kind: git_tag
+ url: https://github.com/docker/go-units.git
+ track: v0.4.0
+ track-tags: false
+ directory: 'src/vendor/github.com/docker/go-units'
+- kind: git_tag
+ url: https://github.com/fatih/color.git
+ track: v1.7.0
+ track-tags: false
+ directory: 'src/vendor/github.com/fatih/color'
+- kind: git_tag
+ url: https://github.com/godbus/dbus.git
+ track: v5.0.3
+ track-tags: false
+ directory: 'src/vendor/github.com/godbus/dbus/v5'
+- kind: git_tag
+ url: https://github.com/inconshreveable/mousetrap.git
+ track: v1.0.0
+ track-tags: false
+ directory: 'src/vendor/github.com/inconshreveable/mousetrap'
+- kind: git_tag
+ url: https://github.com/konsorten/go-windows-terminal-sequences.git
+ track: v1.0.1
+ track-tags: false
+ directory: 'src/vendor/github.com/konsorten/go-windows-terminal-sequences'
+- kind: git_tag
+ url: https://github.com/mattn/go-colorable.git
+ track: v0.1.2
+ track-tags: false
+ directory: 'src/vendor/github.com/mattn/go-colorable'
+- kind: git_tag
+ url: https://github.com/mattn/go-isatty.git
+ track: v0.0.8
+ track-tags: false
+ directory: 'src/vendor/github.com/mattn/go-isatty'
+- kind: git_tag
+ url: https://github.com/sirupsen/logrus.git
+ track: v1.4.2
+ track-tags: false
+ directory: 'src/vendor/github.com/sirupsen/logrus'
+- kind: git_tag
+ url: https://github.com/spf13/cobra.git
+ track: v0.0.5
+ track-tags: false
+ directory: 'src/vendor/github.com/spf13/cobra'
+- kind: git_tag
+ url: https://github.com/spf13/pflag.git
+ track: v1.0.3
+ track-tags: false
+ directory: 'src/vendor/github.com/spf13/pflag'
+- kind: git_tag
+ url: https://github.com/golang/crypto.git
+ track: 505ab145d0a9
+ track-tags: false
+ directory: 'src/vendor/golang.org/x/crypto'
+- kind: git_tag
+ url: https://github.com/golang/sys.git
+ track: 953cdadca894
+ track-tags: false
+ directory: 'src/vendor/golang.org/x/sys'
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
+- freedesktop-sdk.bst:components/systemd.bst
+- freedesktop-sdk.bst:components/ca-certificates.bst
+- freedesktop-sdk.bst:components/go.bst
+- freedesktop-sdk.bst:components/go-md2man.bst
+- freedesktop-sdk.bst:components/strace.bst
+- freedesktop-sdk.bst:components/git.bst
+
+depends:
+- freedesktop-sdk.bst:components/podman.bst
+
+variables:
+ optimize-debug: "false"
diff --git a/files/toolbox/toolbox-vendor.patch b/files/toolbox/toolbox-vendor.patch
new file mode 100644
index 00000000..004d088f
--- /dev/null
+++ b/files/toolbox/toolbox-vendor.patch
@@ -0,0 +1,10 @@
+diff -ur toolbox.old/src/go-build-wrapper toolbox/src/go-build-wrapper
+--- toolbox.old/src/go-build-wrapper 2020-07-27 14:16:30.325320008 +0200
++++ toolbox/src/go-build-wrapper 2020-07-27 14:17:00.048154345 +0200
+@@ -27,5 +27,5 @@
+ exit 1
+ fi
+
+-go build -trimpath -ldflags "-X github.com/containers/toolbox/pkg/version.currentVersion=$3" -o "$2"
++go build -mod=vendor -trimpath -ldflags "-X github.com/containers/toolbox/pkg/version.currentVersion=$3" -o
"$2"
+ exit "$?"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]