libmount - fix to build with nix 0.26
Peter Michael Green
1 year, 4 months ago
|
0 |
rust-libmount (0.1.15-6) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* Package libmount 0.1.15 from crates.io using debcargo 2.6.0
|
|
4 |
* Relax nix dependency to ">= 0.22, < 1.0"
|
|
5 |
* Eliminate use of use of function as_errno which was deprecated in nix
|
|
6 |
0.22 and removed in nix 0.26.
|
|
7 |
|
|
8 |
-- Peter Michael Green <plugwash@debian.org> Sat, 10 Dec 2022 11:36:43 +0000
|
|
9 |
|
0 | 10 |
rust-libmount (0.1.15-5) unstable; urgency=medium
|
1 | 11 |
|
2 | 12 |
* Team upload.
|
10 | 10 |
be correct information so you should review and fix this before uploading to
|
11 | 11 |
the archive.
|
12 | 12 |
|
13 | |
Files: ./LICENSE-MIT
|
|
13 |
Files: LICENSE-MIT
|
14 | 14 |
Copyright: 2016 The libmount Developers
|
15 | 15 |
License: UNKNOWN-LICENSE; FIXME (overlay)
|
16 | 16 |
Comment:
|
|
0 |
nix 0.22 deprecated as_errno and made it into a no-op
|
|
1 |
nix 0.26 removed it.
|
|
2 |
|
|
3 |
Index: libmount/Cargo.toml
|
|
4 |
===================================================================
|
|
5 |
--- libmount.orig/Cargo.toml
|
|
6 |
+++ libmount/Cargo.toml
|
|
7 |
@@ -28,7 +28,7 @@ path = "src/lib.rs"
|
|
8 |
version = "0.2.28"
|
|
9 |
|
|
10 |
[dependencies.nix]
|
|
11 |
-version = "0.14"
|
|
12 |
+version = ">= 0.22, < 1.0"
|
|
13 |
|
|
14 |
[dependencies.quick-error]
|
|
15 |
version = "2.0"
|
|
16 |
Index: libmount/src/lib.rs
|
|
17 |
===================================================================
|
|
18 |
--- libmount.orig/src/lib.rs
|
|
19 |
+++ libmount/src/lib.rs
|
|
20 |
@@ -85,7 +85,7 @@ impl OSError {
|
|
21 |
fn from_nix(err: nix::Error, explain: Box<Explainable>) -> OSError {
|
|
22 |
OSError(
|
|
23 |
MountError::Io(
|
|
24 |
- err.as_errno().map_or_else(|| io::Error::new(io::ErrorKind::Other, err), io::Error::from),
|
|
25 |
+ io::Error::from(err),
|
|
26 |
),
|
|
27 |
explain,
|
|
28 |
)
|
1 | 1 |
===================================================================
|
2 | 2 |
--- libmount.orig/Cargo.toml
|
3 | 3 |
+++ libmount/Cargo.toml
|
4 | |
@@ -28,7 +28,7 @@ path = "src/lib.rs"
|
5 | |
version = "0.2.28"
|
6 | |
|
7 | |
[dependencies.nix]
|
8 | |
-version = "0.14"
|
9 | |
+version = ">= 0.23, < 0.26"
|
10 | |
|
11 | |
[dependencies.quick-error]
|
12 | |
version = "1.2.0"
|
13 | 4 |
@@ -36,7 +36,7 @@ version = "1.2.0"
|
14 | 5 |
version = "0.2.1"
|
15 | 6 |
|
0 | 0 |
relax-deps.diff
|
1 | 1 |
quick-error-2.patch
|
2 | 2 |
tolerate-no-root-mount.diff
|
|
3 |
nix.diff
|