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

Enable compilation with librhsm #3679

Merged
merged 2 commits into from
May 16, 2022
Merged

Conversation

cgwalters
Copy link
Member

@cgwalters cgwalters commented May 13, 2022

Enable compilation with librhsm

First, add a generic --enable-featuresrs=$x autoconf bit which just passes
through to cargo build --features $x so we don't need to mirror all
future options in autoconf.

Use this to add --enable-featuresrs=rhsm which basically boils
down to passing -DENABLE_RHSM_SUPPORT=1 to the libdnf cmake bits.

This is important for subscriptions on RHEL.


spec: Add bcond for rhsm mirroring libdnf

Do the same thing the libdnf spec is doing to enable the feature.


First, add a generic `--enable-featuresrs=$x` autoconf bit which just passes
through to `cargo build --features $x` so we don't need to mirror all
future options in autoconf.

Use this to add `--enable-featuresrs=rhsm` which basically boils
down to passing `-DENABLE_RHSM_SUPPORT=1` to the libdnf cmake bits.

This is important for subscriptions on RHEL.
Do the same thing the libdnf spec is doing to enable the feature.
Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm :shipit:

@cgwalters cgwalters merged commit f9d4d30 into coreos:main May 16, 2022
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