diff options
author | Phil Wise <phil@advancedtelematic.com> | 2016-11-03 15:27:00 +0100 |
---|---|---|
committer | Phil Wise <phil@advancedtelematic.com> | 2016-11-07 12:13:26 +0100 |
commit | 2642ce54359e46f4eab6e3834f7e6633c1dcb1c6 (patch) | |
tree | 538650d8f15f6b1c264573421e3b3dc4d4db7cf7 /recipes-sota | |
parent | f2c7bb693b95a1ffb3d0ca455a1f12563195288a (diff) | |
download | meta-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.bb | 77 |
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" | |||
2 | HOMEPAGE = "https://github.com/advancedtelematic/rvi_sota_client" | 2 | HOMEPAGE = "https://github.com/advancedtelematic/rvi_sota_client" |
3 | 3 | ||
4 | LICENSE = "MPL-2.0" | 4 | LICENSE = "MPL-2.0" |
5 | |||
6 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea" | 5 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea" |
7 | 6 | ||
8 | inherit cargo systemd | 7 | inherit cargo systemd |
9 | 8 | ||
10 | S = "${WORKDIR}/git" | 9 | S = "${WORKDIR}/git" |
11 | 10 | ||
12 | SRCREV = "484e98981f5ddbf61a9e4ca6190c9f2c2fcdec4c" | 11 | SRCREV = "63437b6978bc1c2e3d6a9a5914fe165fdd2a0f5f" |
13 | PV = "0.2.17.5.g484e989" | 12 | |
14 | PR = "${SRCPV}" | 13 | # Generate with: |
14 | # git describe --tags | cut -b2- | ||
15 | PV = "0.2.20-2-g63437b6" | ||
15 | 16 | ||
16 | BBCLASSEXTEND = "native" | 17 | BBCLASSEXTEND = "native" |
17 | 18 | ||
@@ -24,80 +25,78 @@ FILES_${PN} = " \ | |||
24 | " | 25 | " |
25 | 26 | ||
26 | SRC_URI = " \ | 27 | SRC_URI = " \ |
27 | crate://crates.io/aho-corasick/0.5.2 \ | 28 | crate://crates.io/aho-corasick/0.5.3 \ |
28 | crate://crates.io/time/0.1.35 \ | 29 | crate://crates.io/time/0.1.35 \ |
29 | crate://crates.io/url/1.1.1 \ | 30 | crate://crates.io/url/1.2.1 \ |
30 | crate://crates.io/ws2_32-sys/0.2.1 \ | 31 | crate://crates.io/ws2_32-sys/0.2.1 \ |
31 | crate://crates.io/hyper/0.9.4 \ | 32 | crate://crates.io/hyper/0.9.4 \ |
32 | crate://crates.io/log/0.3.6 \ | 33 | crate://crates.io/log/0.3.6 \ |
33 | crate://crates.io/unicase/1.4.0 \ | 34 | crate://crates.io/unicase/1.4.0 \ |
34 | crate://crates.io/bitflags/0.5.0 \ | 35 | crate://crates.io/bitflags/0.7.0 \ |
35 | crate://crates.io/bit-set/0.2.0 \ | 36 | crate://crates.io/bit-set/0.2.0 \ |
36 | crate://crates.io/lazy_static/0.1.16 \ | 37 | crate://crates.io/lazy_static/0.2.1 \ |
37 | crate://crates.io/rust-crypto/0.2.36 \ | 38 | crate://crates.io/rust-crypto/0.2.36 \ |
38 | crate://crates.io/typeable/0.1.2 \ | 39 | crate://crates.io/typeable/0.1.2 \ |
39 | crate://crates.io/pkg-config/0.3.8 \ | 40 | crate://crates.io/pkg-config/0.3.8 \ |
40 | crate://crates.io/httparse/1.1.2 \ | 41 | crate://crates.io/httparse/1.1.2 \ |
41 | crate://crates.io/openssl/0.7.13 \ | 42 | crate://crates.io/openssl/0.8.3 \ |
42 | crate://crates.io/user32-sys/0.2.0 \ | 43 | crate://crates.io/user32-sys/0.2.0 \ |
43 | crate://crates.io/regex/0.1.71 \ | 44 | crate://crates.io/regex/0.1.77 \ |
44 | crate://crates.io/unicode-normalization/0.1.2 \ | 45 | crate://crates.io/unicode-normalization/0.1.2 \ |
45 | crate://crates.io/idna/0.1.0 \ | 46 | crate://crates.io/idna/0.1.0 \ |
46 | crate://crates.io/unicode-bidi/0.2.3 \ | 47 | crate://crates.io/unicode-bidi/0.2.3 \ |
47 | crate://crates.io/rand/0.3.14 \ | 48 | crate://crates.io/rand/0.3.14 \ |
48 | crate://crates.io/gcc/0.3.28 \ | 49 | crate://crates.io/gcc/0.3.37 \ |
49 | crate://crates.io/chan/0.1.18 \ | 50 | crate://crates.io/chan/0.1.18 \ |
50 | crate://crates.io/kernel32-sys/0.2.2 \ | 51 | crate://crates.io/kernel32-sys/0.2.2 \ |
51 | crate://crates.io/winapi/0.2.7 \ | 52 | crate://crates.io/winapi/0.2.8 \ |
52 | crate://crates.io/crossbeam/0.2.9 \ | 53 | crate://crates.io/crossbeam/0.2.10 \ |
53 | crate://crates.io/bitflags/0.4.0 \ | 54 | crate://crates.io/bitflags/0.4.0 \ |
54 | crate://crates.io/thread-id/2.0.0 \ | 55 | crate://crates.io/thread-id/2.0.0 \ |
55 | crate://crates.io/mime/0.2.1 \ | 56 | crate://crates.io/mime/0.2.2 \ |
56 | crate://crates.io/thread_local/0.2.6 \ | 57 | crate://crates.io/thread_local/0.2.7 \ |
57 | crate://crates.io/utf8-ranges/0.1.3 \ | 58 | crate://crates.io/utf8-ranges/0.1.3 \ |
58 | crate://crates.io/net2/0.2.23 \ | 59 | crate://crates.io/net2/0.2.26 \ |
59 | crate://crates.io/dbus/0.3.3 \ | 60 | crate://crates.io/dbus/0.4.1 \ |
60 | crate://crates.io/winapi-build/0.1.1 \ | 61 | crate://crates.io/winapi-build/0.1.1 \ |
61 | crate://crates.io/chan-signal/0.1.6 \ | 62 | crate://crates.io/chan-signal/0.1.7 \ |
62 | crate://crates.io/bit-vec/0.4.3 \ | 63 | crate://crates.io/bit-vec/0.4.3 \ |
63 | crate://crates.io/toml/0.1.30 \ | 64 | crate://crates.io/toml/0.2.1 \ |
64 | crate://crates.io/quick-error/0.2.2 \ | 65 | crate://crates.io/quick-error/0.2.2 \ |
65 | crate://crates.io/ws/0.5.0 \ | 66 | crate://crates.io/ws/0.5.3 \ |
66 | crate://crates.io/traitobject/0.0.1 \ | 67 | crate://crates.io/traitobject/0.0.1 \ |
67 | crate://crates.io/cfg-if/0.1.0 \ | 68 | crate://crates.io/cfg-if/0.1.0 \ |
68 | crate://crates.io/matches/0.1.2 \ | 69 | crate://crates.io/matches/0.1.3 \ |
69 | crate://crates.io/getopts/0.2.14 \ | 70 | crate://crates.io/getopts/0.2.14 \ |
70 | crate://crates.io/sha1/0.1.1 \ | 71 | crate://crates.io/sha1/0.2.0 \ |
71 | crate://crates.io/openssl-sys/0.7.13 \ | 72 | crate://crates.io/openssl-sys/0.7.17 \ |
72 | crate://crates.io/cookie/0.2.5 \ | 73 | crate://crates.io/cookie/0.2.5 \ |
73 | crate://crates.io/libressl-pnacl-sys/2.1.6 \ | 74 | crate://crates.io/libressl-pnacl-sys/2.1.6 \ |
74 | crate://crates.io/lazy_static/0.2.1 \ | ||
75 | crate://crates.io/language-tags/0.2.2 \ | 75 | crate://crates.io/language-tags/0.2.2 \ |
76 | crate://crates.io/semver/0.1.20 \ | 76 | crate://crates.io/semver/0.1.20 \ |
77 | crate://crates.io/unix_socket/0.5.0 \ | 77 | crate://crates.io/unix_socket/0.5.0 \ |
78 | crate://crates.io/memchr/0.1.11 \ | 78 | crate://crates.io/memchr/0.1.11 \ |
79 | crate://crates.io/gdi32-sys/0.2.0 \ | 79 | crate://crates.io/gdi32-sys/0.2.0 \ |
80 | crate://crates.io/nom/1.2.3 \ | 80 | crate://crates.io/nom/1.2.4 \ |
81 | crate://crates.io/mio/0.5.1 \ | 81 | crate://crates.io/mio/0.5.1 \ |
82 | crate://crates.io/tempdir/0.3.4 \ | 82 | crate://crates.io/tempdir/0.3.5 \ |
83 | crate://crates.io/miow/0.1.2 \ | 83 | crate://crates.io/miow/0.1.3 \ |
84 | crate://crates.io/pnacl-build-helper/1.4.10 \ | 84 | crate://crates.io/pnacl-build-helper/1.4.10 \ |
85 | crate://crates.io/libc/0.2.12 \ | 85 | crate://crates.io/libc/0.2.17 \ |
86 | crate://crates.io/nix/0.5.1 \ | 86 | crate://crates.io/nix/0.5.1 \ |
87 | crate://crates.io/byteorder/0.5.3 \ | ||
88 | crate://crates.io/rustc_version/0.1.7 \ | 87 | crate://crates.io/rustc_version/0.1.7 \ |
89 | crate://crates.io/slab/0.1.3 \ | 88 | crate://crates.io/slab/0.1.3 \ |
90 | crate://crates.io/rustc-serialize/0.3.19 \ | 89 | crate://crates.io/rustc-serialize/0.3.19 \ |
91 | crate://crates.io/env_logger/0.3.3 \ | 90 | crate://crates.io/env_logger/0.3.5 \ |
92 | crate://crates.io/vecio/0.1.0 \ | 91 | crate://crates.io/vecio/0.1.0 \ |
93 | crate://crates.io/rotor/0.6.3 \ | 92 | crate://crates.io/rotor/0.6.3 \ |
94 | crate://crates.io/openssl-sys-extras/0.7.13 \ | 93 | crate://crates.io/openssl-sys-extras/0.7.14 \ |
95 | crate://crates.io/regex-syntax/0.3.3 \ | 94 | crate://crates.io/regex-syntax/0.3.7 \ |
96 | crate://crates.io/bytes/0.3.0 \ | 95 | crate://crates.io/bytes/0.3.0 \ |
97 | crate://crates.io/void/1.0.2 \ | 96 | crate://crates.io/void/1.0.2 \ |
98 | crate://crates.io/spmc/0.2.1 \ | 97 | crate://crates.io/spmc/0.2.1 \ |
99 | crate://crates.io/openssl-verify/0.1.0 \ | 98 | crate://crates.io/openssl-verify/0.1.0 \ |
100 | crate-index://crates.io/6127fc24b0b6fe73fe4d339817fbf000b9a798a2 \ | 99 | crate-index://crates.io/7670a5aa394d0dcd7598905b352d1634ca74d84a \ |
101 | git://github.com/advancedtelematic/rvi_sota_client \ | 100 | git://github.com/advancedtelematic/rvi_sota_client \ |
102 | " | 101 | " |
103 | SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4" | 102 | SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4" |
@@ -113,6 +112,18 @@ RDEPENDS_${PN} = " libcrypto \ | |||
113 | lshw \ | 112 | lshw \ |
114 | jq \ | 113 | jq \ |
115 | " | 114 | " |
115 | do_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 | |||
122 | do_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 | ||
117 | do_install() { | 128 | do_install() { |
118 | install -d ${D}${bindir} | 129 | install -d ${D}${bindir} |