Re: [Rpm-maint] [rpm-software-management/rpm] check for rpmlib version (Discussion #2841)

2024-01-15 Thread Oliver Kurth
I got that. It would be good if `rpmlib` had a macro that can just be tested, to save some work, and not having to write a hack to test for it. If you (or anyone) knows of any similar code that does that, it would be great if you can share. -- Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] check for rpmlib version (Discussion #2841)

2024-01-14 Thread Panu Matilainen
FWIW, this isn't an rpm issue at all. It's like any old feature test, you test for the symbol in cmake, and define something you *can* test with ifdef. There are multiple ways to do that. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/discus

Re: [Rpm-maint] [rpm-software-management/rpm] check for rpmlib version (Discussion #2841)

2024-01-12 Thread Oliver Kurth
Thanks for replying. I have this code: ``` ... } else if (strcmp(token, "nodb") == 0){ pConf->rpmTransFlags |= RPMTRANS_FLAG_NODB; } else if (strcmp(token, "noconfigs") == 0){ pConf->rpmTransFlags |= RPMTRANS_F