Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bzip2-sys] use the system bzip2 if found via pkg-config #58

Merged
merged 2 commits into from
May 27, 2020

Conversation

michel-slm
Copy link
Contributor

@michel-slm michel-slm commented May 24, 2020

Similar approach to libz-sys: https://github.com/rust-lang/libz-sys/blob/master/build.rs

Signed-off-by: Michel Alexandre Salim [email protected]


This change is Reviewable

@alexcrichton
Copy link
Owner

Looks like rustfmt is failing? Otherwise seems reasonable!

@michel-slm
Copy link
Contributor Author

Ah, let me fix that, thanks for flagging!

Signed-off-by: Michel Alexandre Salim <[email protected]>
@michel-slm
Copy link
Contributor Author

tested by building the upcoming Fedora RPM that includes this patch in Mock, with the bundled bzip2 stripped; it builds fine if the development headers for bzip2 are found via pkgconfig

https://salimma.fedorapeople.org/specs/rust/rust-bzip2-sys-0.1.8+1.0.8-1.fc32.src.rpm

@alexcrichton alexcrichton merged commit 2fb501e into alexcrichton:master May 27, 2020
@michel-slm michel-slm deleted the use-system-bzip2 branch June 14, 2020 22:28
@BusyJay
Copy link
Contributor

BusyJay commented Mar 8, 2021

This is clearly a breaking changes for dependents that expect to link bzip2 statically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants