Codebase list rust-libslirp / 8d7250a
ttrpc - apply patch to support nix 0.26 Peter Michael Green 1 year, 4 months ago
6 changed file(s) with 68 addition(s) and 28 deletion(s). Raw diff Collapse all Expand all
0 rust-ttrpc (0.5.2-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package ttrpc 0.5.2 from crates.io using debcargo 2.6.0
4 * Apply upstream patch to support nix 0.26, and adjust depdencies accordingly.
5
6 -- Peter Michael Green <plugwash@debian.org> Sat, 10 Dec 2022 13:56:51 +0000
7
08 rust-ttrpc (0.5.2-2) unstable; urgency=medium
19
210 * Package ttrpc 0.5.2 from crates.io using debcargo 2.5.0
88
99 Files: debian/*
1010 Copyright:
11 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
11 2021-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
1212 2021 Shengjing Zhu <zhsj@debian.org>
1313 License: Apache-2.0
1414
1111 be correct information so you should review and fix this before uploading to
1212 the archive.
1313
14 Files: ./src/asynchronous/client.rs
14 Files: src/asynchronous/client.rs
1515 Copyright: 2020 Ant Financial
1616 License: UNKNOWN-LICENSE; FIXME (overlay)
1717 Comment:
1818 FIXME (overlay): These notices are extracted from files. Please review them
1919 before uploading to the archive.
2020
21 Files: ./src/asynchronous/mod.rs
21 Files: src/asynchronous/mod.rs
2222 Copyright: 2020 Ant Financial
2323 License: UNKNOWN-LICENSE; FIXME (overlay)
2424 Comment:
2525 FIXME (overlay): These notices are extracted from files. Please review them
2626 before uploading to the archive.
2727
28 Files: ./src/asynchronous/server.rs
28 Files: src/asynchronous/server.rs
2929 Copyright: 2020 Ant Financial
3030 License: UNKNOWN-LICENSE; FIXME (overlay)
3131 Comment:
3232 FIXME (overlay): These notices are extracted from files. Please review them
3333 before uploading to the archive.
3434
35 Files: ./src/asynchronous/stream.rs
35 Files: src/asynchronous/stream.rs
3636 Copyright: 2020 Ant Financial
3737 License: UNKNOWN-LICENSE; FIXME (overlay)
3838 Comment:
3939 FIXME (overlay): These notices are extracted from files. Please review them
4040 before uploading to the archive.
4141
42 Files: ./src/asynchronous/unix_incoming.rs
42 Files: src/asynchronous/unix_incoming.rs
4343 Copyright: 2021 Ant Group
4444 License: UNKNOWN-LICENSE; FIXME (overlay)
4545 Comment:
4646 FIXME (overlay): These notices are extracted from files. Please review them
4747 before uploading to the archive.
4848
49 Files: ./src/asynchronous/utils.rs
49 Files: src/asynchronous/utils.rs
5050 Copyright: 2020 Ant Financial
5151 License: UNKNOWN-LICENSE; FIXME (overlay)
5252 Comment:
5353 FIXME (overlay): These notices are extracted from files. Please review them
5454 before uploading to the archive.
5555
56 Files: ./src/common.rs
56 Files: src/common.rs
5757 Copyright: 2020 Ant Financial
5858 License: UNKNOWN-LICENSE; FIXME (overlay)
5959 Comment:
6060 FIXME (overlay): These notices are extracted from files. Please review them
6161 before uploading to the archive.
6262
63 Files: ./src/context.rs
63 Files: src/context.rs
6464 Copyright: 2021 Ant group
6565 License: UNKNOWN-LICENSE; FIXME (overlay)
6666 Comment:
6767 FIXME (overlay): These notices are extracted from files. Please review them
6868 before uploading to the archive.
6969
70 Files: ./src/error.rs
70 Files: src/error.rs
7171 Copyright: 2019 Ant Financial
7272 License: UNKNOWN-LICENSE; FIXME (overlay)
7373 Comment:
7474 FIXME (overlay): These notices are extracted from files. Please review them
7575 before uploading to the archive.
7676
77 Files: ./src/lib.rs
77 Files: src/lib.rs
7878 Copyright: 2019 Ant Financial
7979 License: UNKNOWN-LICENSE; FIXME (overlay)
8080 Comment:
8181 FIXME (overlay): These notices are extracted from files. Please review them
8282 before uploading to the archive.
8383
84 Files: ./src/sync/channel.rs
84 Files: src/sync/channel.rs
8585 Copyright: 2019 Ant Financial
8686 License: UNKNOWN-LICENSE; FIXME (overlay)
8787 Comment:
8888 FIXME (overlay): These notices are extracted from files. Please review them
8989 before uploading to the archive.
9090
91 Files: ./src/sync/client.rs
91 Files: src/sync/client.rs
9292 Copyright: 2019 Ant Financial
9393 License: UNKNOWN-LICENSE; FIXME (overlay)
9494 Comment:
9595 FIXME (overlay): These notices are extracted from files. Please review them
9696 before uploading to the archive.
9797
98 Files: ./src/sync/mod.rs
98 Files: src/sync/mod.rs
9999 Copyright: 2020 Ant Financial
100100 License: UNKNOWN-LICENSE; FIXME (overlay)
101101 Comment:
102102 FIXME (overlay): These notices are extracted from files. Please review them
103103 before uploading to the archive.
104104
105 Files: ./src/sync/server.rs
105 Files: src/sync/server.rs
106106 Copyright: 2019 Ant Financial
107107 License: UNKNOWN-LICENSE; FIXME (overlay)
108108 Comment:
109109 FIXME (overlay): These notices are extracted from files. Please review them
110110 before uploading to the archive.
111111
112 Files: ./src/sync/utils.rs
112 Files: src/sync/utils.rs
113113 Copyright: 2020 Ant Financial
114114 License: UNKNOWN-LICENSE; FIXME (overlay)
115115 Comment:
116116 FIXME (overlay): These notices are extracted from files. Please review them
117117 before uploading to the archive.
118118
119 Files: ./src/ttrpc.proto
119 Files: src/ttrpc.proto
120120 Copyright: 2019 Ant Financial
121121 License: UNKNOWN-LICENSE; FIXME (overlay)
122122 Comment:
125125
126126 Files: debian/*
127127 Copyright:
128 2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
129 2021 Shengjing Zhu <zhsj@debian.org>
128 2021-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
129 2021-2022 Shengjing Zhu <zhsj@debian.org>
130130 License: Apache-2.0
131131
132132 License: Apache-2.0
0 Nix 0.22 merged the "Error" and "Errno" types and deprecated the conversion
1 operations between them. Nix 0.26 removed the deprecated stuff. The code
2 changes to deal with this were taken from the upstream commit described below,
3 the precise dependency changes are local to Debian.
4
5 commit 0e6b1a8651e7ff6a3c709b35587b7020b21c9f54
6 Author: James O. D. Hunt <james.o.hunt@intel.com>
7 Date: Thu Nov 25 14:20:46 2021 +0000
8
9 cargo: Update nix crate
10
11 Updated the `nix` crate to the latest version as this allows `errno`
12 handling to be simplified.
13
14 Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
15
16 --- a/Cargo.toml
17 +++ b/Cargo.toml
18 @@ -44,7 +44,7 @@
19 version = "0.4"
20
21 [dependencies.nix]
22 -version = "0.20.2"
23 +version = ">= 0.22, < 1.0"
24
25 [dependencies.protobuf]
26 version = "2.0"
27 --- a/src/sync/channel.rs
28 +++ b/src/sync/channel.rs
29 @@ -22,8 +22,8 @@ use crate::ttrpc::Code;
30 use crate::MessageHeader;
31
32 fn retryable(e: nix::Error) -> bool {
33 - use ::nix::{errno::Errno, Error};
34 - e == Error::from_errno(Errno::EINTR) || e == Error::from_errno(Errno::EAGAIN)
35 + use ::nix::Error;
36 + e == Error::EINTR || e == Error::EAGAIN
37 }
38
39 fn read_count(fd: RawFd, count: usize) -> Result<Vec<u8>> {
1515
1616 [dependencies.futures]
1717 version = "0.3"
18 @@ -44,7 +44,7 @@
19 version = "0.4"
20
21 [dependencies.nix]
22 -version = "0.20.2"
23 +version = ">=0.20.2"
24
25 [dependencies.protobuf]
26 version = "2.0"
2718 @@ -56,7 +56,7 @@
2819 version = "1"
2920 features = ["rt", "sync", "io-util", "macros", "time"]
00 reduce-features.diff
11 relax-dep.diff
2 nix.diff