unresolvable: have choice for libLLVM-3.8.so()(64bit) needed by clang: llvm-devel llvm-libs

Hi,

I’ve been trying to build a CodeLite RPM in the OBS (here is the package page) and the problem is that I keep getting the error:


unresolvable: have choice for libLLVM-3.8.so()(64bit) needed by clang: llvm-devel llvm-libs
      have choice for libLLVM-3.8.so()(64bit) needed by clang-libs: llvm-devel llvm-libs

here is my spec file as of revision 2. As you can see on line 24 I’ve tried adding:


Conflicts:      llvm-libs clang-libs

to my spec file in order to fix this error, but that attempted fix failed. In revision 3 I tried adding:

llvm-devel llvm-libs

to my Requires: lines where clang is mentioned, but that too failed. Any ideas how to resolve this issue?

Thanks for your time,
Brenton

I’ve also tried replacing


Requires:       xterm libssh clang

with:


Requires:       xterm libssh clang llvm-devel

and that failed. I’ve also tried replacing it with:


Requires:       xterm libssh clang llvm-libs

but still I get the same error…

Hi
Why not branch the OBS package and update that?
https://build.opensuse.org/package/view_file/devel:tools/codelite/codelite.spec?expand=1

Use bcond (build condiftions) in your spec or project config.

Mostly just building it for Fedora, the spec file you pointed to is for openSUSE. So you suggest I add:


bcond_with llvm-libs llvm-devel

to my spec file?

If so I just tried that and it failed.

Hi
You could try that, but maybe use a Prefers option in your project config as in a “Prefer: -llvm”
https://en.opensuse.org/openSUSE:Build_Service_prjconf#Prefer

Look a bit down, maybe a Substitute.

At the end of the day, have no idea for Fedora stuff…

It worked thanks!