summaryrefslogtreecommitdiffstats
path: root/recipes-sota
diff options
context:
space:
mode:
authorPhil Wise <phil@advancedtelematic.com>2016-11-03 15:27:00 +0100
committerPhil Wise <phil@advancedtelematic.com>2016-11-07 12:13:26 +0100
commit2642ce54359e46f4eab6e3834f7e6633c1dcb1c6 (patch)
tree538650d8f15f6b1c264573421e3b3dc4d4db7cf7 /recipes-sota
parentf2c7bb693b95a1ffb3d0ca455a1f12563195288a (diff)
downloadmeta-updater-2642ce54359e46f4eab6e3834f7e6633c1dcb1c6.tar.gz
Upgrade to the latest rvi_sota_client
* Backwards compatibilty for sota.toml files * Run 'sync' after installing a package (prevents RPM database corruption) * Stability fixes Change-Id: Ie3d3e436b754c1950d8ca6e63e2e214f300cf7d5 Signed-off-by: Phil Wise <phil@advancedtelematic.com>
Diffstat (limited to 'recipes-sota')
-rw-r--r--recipes-sota/rvi-sota-client/rvi-sota-client_git.bb77
1 files changed, 44 insertions, 33 deletions
diff --git a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
index c6cb0bb..d04ea88 100644
--- a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
+++ b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
@@ -2,16 +2,17 @@ DESCRIPTION = "sota-client rust recipe"
2HOMEPAGE = "https://github.com/advancedtelematic/rvi_sota_client" 2HOMEPAGE = "https://github.com/advancedtelematic/rvi_sota_client"
3 3
4LICENSE = "MPL-2.0" 4LICENSE = "MPL-2.0"
5
6LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea" 5LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea"
7 6
8inherit cargo systemd 7inherit cargo systemd
9 8
10S = "${WORKDIR}/git" 9S = "${WORKDIR}/git"
11 10
12SRCREV = "484e98981f5ddbf61a9e4ca6190c9f2c2fcdec4c" 11SRCREV = "63437b6978bc1c2e3d6a9a5914fe165fdd2a0f5f"
13PV = "0.2.17.5.g484e989" 12
14PR = "${SRCPV}" 13# Generate with:
14# git describe --tags | cut -b2-
15PV = "0.2.20-2-g63437b6"
15 16
16BBCLASSEXTEND = "native" 17BBCLASSEXTEND = "native"
17 18
@@ -24,80 +25,78 @@ FILES_${PN} = " \
24 " 25 "
25 26
26SRC_URI = " \ 27SRC_URI = " \
27crate://crates.io/aho-corasick/0.5.2 \ 28crate://crates.io/aho-corasick/0.5.3 \
28crate://crates.io/time/0.1.35 \ 29crate://crates.io/time/0.1.35 \
29crate://crates.io/url/1.1.1 \ 30crate://crates.io/url/1.2.1 \
30crate://crates.io/ws2_32-sys/0.2.1 \ 31crate://crates.io/ws2_32-sys/0.2.1 \
31crate://crates.io/hyper/0.9.4 \ 32crate://crates.io/hyper/0.9.4 \
32crate://crates.io/log/0.3.6 \ 33crate://crates.io/log/0.3.6 \
33crate://crates.io/unicase/1.4.0 \ 34crate://crates.io/unicase/1.4.0 \
34crate://crates.io/bitflags/0.5.0 \ 35crate://crates.io/bitflags/0.7.0 \
35crate://crates.io/bit-set/0.2.0 \ 36crate://crates.io/bit-set/0.2.0 \
36crate://crates.io/lazy_static/0.1.16 \ 37crate://crates.io/lazy_static/0.2.1 \
37crate://crates.io/rust-crypto/0.2.36 \ 38crate://crates.io/rust-crypto/0.2.36 \
38crate://crates.io/typeable/0.1.2 \ 39crate://crates.io/typeable/0.1.2 \
39crate://crates.io/pkg-config/0.3.8 \ 40crate://crates.io/pkg-config/0.3.8 \
40crate://crates.io/httparse/1.1.2 \ 41crate://crates.io/httparse/1.1.2 \
41crate://crates.io/openssl/0.7.13 \ 42crate://crates.io/openssl/0.8.3 \
42crate://crates.io/user32-sys/0.2.0 \ 43crate://crates.io/user32-sys/0.2.0 \
43crate://crates.io/regex/0.1.71 \ 44crate://crates.io/regex/0.1.77 \
44crate://crates.io/unicode-normalization/0.1.2 \ 45crate://crates.io/unicode-normalization/0.1.2 \
45crate://crates.io/idna/0.1.0 \ 46crate://crates.io/idna/0.1.0 \
46crate://crates.io/unicode-bidi/0.2.3 \ 47crate://crates.io/unicode-bidi/0.2.3 \
47crate://crates.io/rand/0.3.14 \ 48crate://crates.io/rand/0.3.14 \
48crate://crates.io/gcc/0.3.28 \ 49crate://crates.io/gcc/0.3.37 \
49crate://crates.io/chan/0.1.18 \ 50crate://crates.io/chan/0.1.18 \
50crate://crates.io/kernel32-sys/0.2.2 \ 51crate://crates.io/kernel32-sys/0.2.2 \
51crate://crates.io/winapi/0.2.7 \ 52crate://crates.io/winapi/0.2.8 \
52crate://crates.io/crossbeam/0.2.9 \ 53crate://crates.io/crossbeam/0.2.10 \
53crate://crates.io/bitflags/0.4.0 \ 54crate://crates.io/bitflags/0.4.0 \
54crate://crates.io/thread-id/2.0.0 \ 55crate://crates.io/thread-id/2.0.0 \
55crate://crates.io/mime/0.2.1 \ 56crate://crates.io/mime/0.2.2 \
56crate://crates.io/thread_local/0.2.6 \ 57crate://crates.io/thread_local/0.2.7 \
57crate://crates.io/utf8-ranges/0.1.3 \ 58crate://crates.io/utf8-ranges/0.1.3 \
58crate://crates.io/net2/0.2.23 \ 59crate://crates.io/net2/0.2.26 \
59crate://crates.io/dbus/0.3.3 \ 60crate://crates.io/dbus/0.4.1 \
60crate://crates.io/winapi-build/0.1.1 \ 61crate://crates.io/winapi-build/0.1.1 \
61crate://crates.io/chan-signal/0.1.6 \ 62crate://crates.io/chan-signal/0.1.7 \
62crate://crates.io/bit-vec/0.4.3 \ 63crate://crates.io/bit-vec/0.4.3 \
63crate://crates.io/toml/0.1.30 \ 64crate://crates.io/toml/0.2.1 \
64crate://crates.io/quick-error/0.2.2 \ 65crate://crates.io/quick-error/0.2.2 \
65crate://crates.io/ws/0.5.0 \ 66crate://crates.io/ws/0.5.3 \
66crate://crates.io/traitobject/0.0.1 \ 67crate://crates.io/traitobject/0.0.1 \
67crate://crates.io/cfg-if/0.1.0 \ 68crate://crates.io/cfg-if/0.1.0 \
68crate://crates.io/matches/0.1.2 \ 69crate://crates.io/matches/0.1.3 \
69crate://crates.io/getopts/0.2.14 \ 70crate://crates.io/getopts/0.2.14 \
70crate://crates.io/sha1/0.1.1 \ 71crate://crates.io/sha1/0.2.0 \
71crate://crates.io/openssl-sys/0.7.13 \ 72crate://crates.io/openssl-sys/0.7.17 \
72crate://crates.io/cookie/0.2.5 \ 73crate://crates.io/cookie/0.2.5 \
73crate://crates.io/libressl-pnacl-sys/2.1.6 \ 74crate://crates.io/libressl-pnacl-sys/2.1.6 \
74crate://crates.io/lazy_static/0.2.1 \
75crate://crates.io/language-tags/0.2.2 \ 75crate://crates.io/language-tags/0.2.2 \
76crate://crates.io/semver/0.1.20 \ 76crate://crates.io/semver/0.1.20 \
77crate://crates.io/unix_socket/0.5.0 \ 77crate://crates.io/unix_socket/0.5.0 \
78crate://crates.io/memchr/0.1.11 \ 78crate://crates.io/memchr/0.1.11 \
79crate://crates.io/gdi32-sys/0.2.0 \ 79crate://crates.io/gdi32-sys/0.2.0 \
80crate://crates.io/nom/1.2.3 \ 80crate://crates.io/nom/1.2.4 \
81crate://crates.io/mio/0.5.1 \ 81crate://crates.io/mio/0.5.1 \
82crate://crates.io/tempdir/0.3.4 \ 82crate://crates.io/tempdir/0.3.5 \
83crate://crates.io/miow/0.1.2 \ 83crate://crates.io/miow/0.1.3 \
84crate://crates.io/pnacl-build-helper/1.4.10 \ 84crate://crates.io/pnacl-build-helper/1.4.10 \
85crate://crates.io/libc/0.2.12 \ 85crate://crates.io/libc/0.2.17 \
86crate://crates.io/nix/0.5.1 \ 86crate://crates.io/nix/0.5.1 \
87crate://crates.io/byteorder/0.5.3 \
88crate://crates.io/rustc_version/0.1.7 \ 87crate://crates.io/rustc_version/0.1.7 \
89crate://crates.io/slab/0.1.3 \ 88crate://crates.io/slab/0.1.3 \
90crate://crates.io/rustc-serialize/0.3.19 \ 89crate://crates.io/rustc-serialize/0.3.19 \
91crate://crates.io/env_logger/0.3.3 \ 90crate://crates.io/env_logger/0.3.5 \
92crate://crates.io/vecio/0.1.0 \ 91crate://crates.io/vecio/0.1.0 \
93crate://crates.io/rotor/0.6.3 \ 92crate://crates.io/rotor/0.6.3 \
94crate://crates.io/openssl-sys-extras/0.7.13 \ 93crate://crates.io/openssl-sys-extras/0.7.14 \
95crate://crates.io/regex-syntax/0.3.3 \ 94crate://crates.io/regex-syntax/0.3.7 \
96crate://crates.io/bytes/0.3.0 \ 95crate://crates.io/bytes/0.3.0 \
97crate://crates.io/void/1.0.2 \ 96crate://crates.io/void/1.0.2 \
98crate://crates.io/spmc/0.2.1 \ 97crate://crates.io/spmc/0.2.1 \
99crate://crates.io/openssl-verify/0.1.0 \ 98crate://crates.io/openssl-verify/0.1.0 \
100crate-index://crates.io/6127fc24b0b6fe73fe4d339817fbf000b9a798a2 \ 99crate-index://crates.io/7670a5aa394d0dcd7598905b352d1634ca74d84a \
101git://github.com/advancedtelematic/rvi_sota_client \ 100git://github.com/advancedtelematic/rvi_sota_client \
102" 101"
103SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4" 102SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4"
@@ -113,6 +112,18 @@ RDEPENDS_${PN} = " libcrypto \
113 lshw \ 112 lshw \
114 jq \ 113 jq \
115 " 114 "
115do_compile_prepend() {
116 # Fetch and build the specific build of hyper that is specified in cargo.toml.
117 # meta-rust doesn't support fetching crates that don't point to a specific tag
118 # and rvi-sota-client needs a specific work-around to function correctly.
119 make rust-openssl
120}
121
122do_compile_append() {
123 # Ensure that the 'make rust-openssl' above resulted in the local build of
124 # rust-openssl being used rather than the default one.
125 strings target/${TARGET_SYS}/release/sota_client | grep ${EXTENDPE}${PV}-${PR}/git/rust-openssl -q || (bberror "local rust-open ssl package not used"; exit 1)
126}
116 127
117do_install() { 128do_install() {
118 install -d ${D}${bindir} 129 install -d ${D}${bindir}