]> xenbits.xensource.com Git - xen-guest-agent.git/commitdiff
ci: workaround inability to use specify a feature in a cargo patch
authorYann Dirson <yann.dirson@vates.fr>
Wed, 24 Jan 2024 15:52:26 +0000 (16:52 +0100)
committerYann Dirson <yann.dirson@vates.fr>
Wed, 24 Jan 2024 16:04:16 +0000 (17:04 +0100)
For some undocumented reason we're not allowed to make use of features
added by the patched dependency we want to use.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
devscripts/cargo-freebsd-netlink.toml

index 99fa7fc2b2bac2c1c8d03a7176b7b66e0a0c4468..329bb68c9f8d0e736e1da54eb758486307e18b0a 100644 (file)
@@ -1,3 +1,10 @@
-[patch.crates-io]
-libc = { git = "https://github.com/xcp-ng/rust-libc.git", branch = "freebsd-netlink-0.2" }
-rtnetlink = { git = "https://github.com/xcp-ng/rust-rtnetlink.git", branch = "freebsd" }
+[patch.crates-io.libc]
+git = "https://github.com/xcp-ng/rust-libc.git"
+#branch = "freebsd-netlink-0.2"
+# cannot specify a cargo feature here, so use a version exposing
+# freebsd-netlink support without needing a feature
+rev = "bfe4c69a83a9e6fc4fe92867c7ebbc471b723ccb"
+
+[patch.crates-io.rtnetlink]
+git = "https://github.com/xcp-ng/rust-rtnetlink.git"
+branch = "freebsd"