How to fix a dependency to the version at build time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,

I have recently received a bug report for my package ccls, that it
currently fails in certain cases, because it hard codes the paths to
/lib64/clang/$CLANG_VERSION for autocompletion at build time.

This means that I need to make ccls depend on the *exact* clang version
which was available when it was build.

What is the best approach for that?

I know that there is the %requires_eq macro, but afaik it also fixes the
release, which would be overkill in my case.
I have tried this "hack":

Requires: clang = %(rpm -q --qf '%%{version}' clang)

which appears to do the right thing (TM).


However, I am not an expert on RPM macro evaluation and kinda worried
that this uses the clang version that is present on the system building
the srpm, which might not be the version that I want? Or is this not a
problem on Koji?


Thanks in advance,

Dan

Attachment: signature.asc
Description: PGP signature

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux