CEF and icu: fix CEF dependencies and icu package
[AGL/meta-agl-demo.git] / recipes-connectivity / kuksa-val / kuksa-databroker / 0001-Remove-protobuf-src-usage.patch
1 From 4c21bc033a84949b557a78e5147b7bd1d4f38aff Mon Sep 17 00:00:00 2001
2 From: Scott Murray <scott.murray@konsulko.com>
3 Date: Mon, 7 Aug 2023 15:19:34 -0400
4 Subject: [PATCH] Remove protobuf-src usage
5
6 The vendoring of a protoc and libprotobuf build that was added in
7 commit 890703c9 by using protobuf-src is not really workable with
8 OpenEmbedded / Yocto Project, and somewhat undesirable for any
9 distribution package builds when it comes to transparency and
10 reproducibility.  Remove it so that building in OE/YP will work.
11
12 Upstream-Status: Pending
13
14 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
15 ---
16  Cargo.lock                                   | 19 -------------------
17  kuksa_databroker/databroker-proto/Cargo.toml |  1 -
18  kuksa_databroker/databroker-proto/build.rs   |  1 -
19  3 files changed, 21 deletions(-)
20
21 diff --git a/Cargo.lock b/Cargo.lock
22 index 54defdf..2795ace 100644
23 --- a/Cargo.lock
24 +++ b/Cargo.lock
25 @@ -170,15 +170,6 @@ version = "1.1.0"
26  source = "registry+https://github.com/rust-lang/crates.io-index"
27  checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
28  
29 -[[package]]
30 -name = "autotools"
31 -version = "0.2.6"
32 -source = "registry+https://github.com/rust-lang/crates.io-index"
33 -checksum = "aef8da1805e028a172334c3b680f93e71126f2327622faef2ec3d893c0a4ad77"
34 -dependencies = [
35 - "cc",
36 -]
37 -
38  [[package]]
39  name = "axum"
40  version = "0.6.19"
41 @@ -536,7 +527,6 @@ version = "0.4.0"
42  dependencies = [
43   "prost",
44   "prost-types",
45 - "protobuf-src",
46   "tonic",
47   "tonic-build",
48  ]
49 @@ -2258,15 +2248,6 @@ dependencies = [
50   "prost",
51  ]
52  
53 -[[package]]
54 -name = "protobuf-src"
55 -version = "1.1.0+21.5"
56 -source = "registry+https://github.com/rust-lang/crates.io-index"
57 -checksum = "c7ac8852baeb3cc6fb83b93646fb93c0ffe5d14bf138c945ceb4b9948ee0e3c1"
58 -dependencies = [
59 - "autotools",
60 -]
61 -
62  [[package]]
63  name = "quote"
64  version = "1.0.32"
65 diff --git a/kuksa_databroker/databroker-proto/Cargo.toml b/kuksa_databroker/databroker-proto/Cargo.toml
66 index af73696..023c709 100644
67 --- a/kuksa_databroker/databroker-proto/Cargo.toml
68 +++ b/kuksa_databroker/databroker-proto/Cargo.toml
69 @@ -25,4 +25,3 @@ prost-types = { workspace = true }
70  
71  [build-dependencies]
72  tonic-build = { workspace = true, features = ["transport", "prost"] }
73 -protobuf-src = "1.1.0"
74 diff --git a/kuksa_databroker/databroker-proto/build.rs b/kuksa_databroker/databroker-proto/build.rs
75 index d02a006..d3a70ac 100644
76 --- a/kuksa_databroker/databroker-proto/build.rs
77 +++ b/kuksa_databroker/databroker-proto/build.rs
78 @@ -12,7 +12,6 @@
79  ********************************************************************************/
80  
81  fn main() -> Result<(), Box<dyn std::error::Error>> {
82 -    std::env::set_var("PROTOC", protobuf_src::protoc());
83      tonic_build::configure()
84          .compile_well_known_types(false)
85          .protoc_arg("--experimental_allow_proto3_optional")
86 -- 
87 2.41.0
88