tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/rust and www/curl with http2 option



That plan sounds good to me. Is nghttp2 a problematic dependency?

I think http2 is sufficiently common and mature that it should be
supported in binary packages.

On Wed, Sep 11, 2019 at 11:27 AM Adam <adam%netbsd.org@localhost> wrote:
>
> Greetings,
>
> While trying to fix lang/rust on Darwin, I came across a linking problem which occurs with its internal curl library. (Described here https://github.com/alexcrichton/curl-rust/issues/279, but their solution does not work for me.) It is build by curl-sys module, which checks if curl with http2 support exists in the system. Apple provides such a library with macOS, but it is usually shadowed by curl from PkgSrc which does not have http2 option enabled by default. When I enable http2 for www/curl, when Rust builds and links correctly.
>
> So, I propose enabling http2 as default for www/curl and "buildlinking" lang/rust with www/curl. That way we would provide more modern curl, and introduce a dependency on www/nghttp2, but Rust should build correctly.
>
> Comments are welcome. :)
>
> Kind regards,
> Adam



-- 
Benny


Home | Main Index | Thread Index | Old Index