Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

check for rpmlib version #2840

Closed
oliverkurth opened this issue Jan 11, 2024 · 0 comments
Closed

check for rpmlib version #2840

oliverkurth opened this issue Jan 11, 2024 · 0 comments

Comments

@oliverkurth
Copy link

Is there a way to check at compile time for the rpmlib version?

In this particular case I want to use the enum value RPMTRANS_FLAG_NODB of enum rpmtransFlags_e in include/rpm/rpmts.h, but stay compatible with older versions that do not have this implemented. Since it's an enum, I cannot use #ifdef. So alternatively I thought I can use a macro that lets me check the version of rpmlib.

@rpm-software-management rpm-software-management locked and limited conversation to collaborators Jan 12, 2024
@pmatilai pmatilai converted this issue into discussion #2841 Jan 12, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant