opener: cherry-pick fix to avoid vendored dbus
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 24 Jun 2024 12:37:53 +0000 (14:37 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Thu, 27 Jun 2024 12:30:53 +0000 (14:30 +0200)
this is part of opener 0.7.1 as b6ead409a9a60f7a2705cf5f2be167719959440e

Forwarded: https://github.com/Seeker14491/opener/pull/31

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Workaround for rust-lang/cargo#10788
As described in Cargo Issue 10788, until Rust 1.71 there were
cases where the dependency/feature syntax would not work correctly
when used in combination with the dep:dependency syntax. Workarounds
include adding an explicit feature

dependency = ["dep:dependency"]

but in many (most?) cases it is enough to only enable the dependency feature
if the dependency is already enabled, via the dependency?/feature
syntax.

For context, here are some workarounds employed by others:
- mstange/samply@89456d4
- alexrudy/tonic@f386954
- jwodder/confab@6f0e2fc

Gbp-Pq: Topic prune
Gbp-Pq: Name opener-cherry-pick-fix-to-avoid-vendored-dbus.patch

vendor/opener-0.7.0/Cargo.toml

index 6915256873a2cf1b3071d0d41a0d20ddaf70e010..46739db600fb464a62d8a97714ffe97195e56e3b 100644 (file)
@@ -34,7 +34,7 @@ rustdoc-args = [
 ]
 
 [features]
-dbus-vendored = ["dbus/vendored"]
+dbus-vendored = ["dbus?/vendored"]
 default = ["dbus-vendored"]
 reveal = [
     "dep:url",