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

build-sys: Rollup rework v1 #2526

Conversation

cgwalters
Copy link
Member

Move libdnf build over to Cargo

This is now further migration towards Cargo/Rust possible
because we switched our main binary. We've had an internal
libdnf-sys crate for a while, but now it can take over
the build of the underlying library too (like many -sys
crates support).

This itself is just an incremental step towards migrating
the main rpm-ostree build system to e.g. cmake too (or
perhaps directly with the cc crate, not sure yet) and
driving it via cargo too.


build-sys: Move -lcap linkage purely to Rust

Now that we are generating solely a Rust binary, we can
have the canonical list of things to link on the Rust side.


build-sys: Move -lstdc++ -lrt into Cargo

More draining.


build-sys: Move -lm -ldl linkage into Cargo

More Rust, less shell/m4 - the world gets slightly better.


build-sys: Drop Fedora 25+ rpm version check

I think we can just assume this nowadays.

@cgwalters
Copy link
Member Author

Split this out of #2518 as I think it's the later linker cleanups which are provoking the GNU ld bug at least.

@cgwalters cgwalters force-pushed the libdnf-sys-build-cargo-smaller branch from 2eafe42 to c673a13 Compare February 1, 2021 21:33
Now that we are generating solely a Rust binary, we can
have the canonical list of things to link on the Rust side.
@cgwalters cgwalters force-pushed the libdnf-sys-build-cargo-smaller branch from c673a13 to f25cd09 Compare February 2, 2021 01:23
Copy link
Contributor

@lucab lucab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, lucab

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit ded61a4 into coreos:master Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants