tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to patch a crate?
On Fri, 28 Aug 2020 11:10:36 +0000
voidpin <voidpin%protonmail.com@localhost> wrote:
> I'm trying to build 'librespot' in wip but, I'm getting a Rust "out-of-scope" error
> while compiling 'get_if_addrs', one of the dependency crates.
>
> Unfortunately, 'get_if_addrs' is a archived crate.
>
> Is it possible to patch a crate? If so, what's the recommended way to do this?
Yes. You can create a patch relative to WRKSRC.
See
wip/alacritty/patches/patch-vendor_winit_src_platform__impl_linux_mod.rs
for a current example. It is not ideal to do this because it generates
a pkglint warning, but it works.
Please also send the patch to the upstream crate maintainer.
-Tobias
Home |
Main Index |
Thread Index |
Old Index