[Bug 2279208] Review Request: rust-libz-ng-sys - Low-level bindings to zlib-ng

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=2279208



--- Comment #9 from Ben Beasley <code@xxxxxxxxxxxxxxxxxx> ---
(In reply to Fabio Valentini from comment #8)
> It's a bit sad that there are literally *zero* tests in this crate.
> Usually those are helpful in "-sys" crates because if there's at lease *one*
> test, the resulting binary is linked against the C library.
> 
> If there's zero tests, I don't think linking is even attempted once during
> the build. So I can't really verify that this works as expected ... but the
> patch (i.e. the replaced build script) looks sane to me.
> 
> I guess we will see if this works when building zip v1 - the tests built and
> run as part of its build should get linked to z-ng if this crate does its
> job.

Hmm, this is a good point. I tested this with
https://src.fedoraproject.org/rpms/rust-flate2/pull-request/2, but I suppose
without enabling extra features it wouldn’t really be usefully tested there.

As an experiment, I just tried hacking up the flate2 rust2rpm.toml to
explicitly enable the zlib-ng and libz-ng-sys features, resulting in e.g.
“%cargo_test -f libz-ng-sys,zlib-ng”. That worked, but I’m not sure how to
verify that this really caused the tests to link the zlib-ng C library.

As you said, I suppose if there are any problems we’ll just have to go back and
fix them.

Thank you for the review.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2279208

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202279208%23c9
--
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux