ChanServ changed the topic of #haiku-3rdparty to: Third party devtalk for the Haiku® operating system | Main Haiku channel: #haiku | Bored? Tons of stuff to work on here: https://github.com/HaikuArchives | Logs: https://oftc.irclog.whitequark.org/haiku-3rdparty
freakazoid332 has quit [Remote host closed the connection]
frkazoid333 has joined #haiku-3rdparty
yann64[m] has joined #haiku-3rdparty
<yann64[m]> Hi, how can I require having llvm version >= 17 in a recipe?
<yann64[m]> I have : llvm$SecondaryArchSuffix >= 17 in my REQUIRES section
<yann64[m]> Yet when testing the package, it does not recognise that llvm20 is already installed
<Hanicef[m]> is it for libllvm or clang?
<Begasus[m]> devel:libllvm_17 ?
<Begasus[m]> if you want llvm20 maybe cmd:clang(d) >= 20
<Hanicef[m]> i think find_package(LLVM 17...99 CONFIG) will do it
<Begasus[m]> depends if you want to use it in a recipe, then no find_package should be needed, note ... some of the LLVM packages (mainly clang) conflict, so you can only have one installed
<Begasus[m]> been switching locale recipes to use LLVM for a bit over a week here
<Begasus[m]> llvm20* :)
<yann64[m]> I am making a recipe for the Odin language, it needs llvm both for compiling the Odin binary, and once installed as a backend (as Odin is like a transpiler)
<Begasus[m]> LLVM_CONFIG=/boot/system/bin/llvm-config (this will only take the one installed on the system)
<Begasus[m]> if things are fine with LLVM20 I would go with that, it will make sure nothing brakes in the short run (or shouldn't) :)
<Begasus[m]> cmd:clang etc are without secondaryArchSuffix *
<Begasus[m]> this isn't a small package it seems :)
<Begasus[m]> yann64: did you try a build outside of haikuporter?
<Begasus[m]> eg manual build in Terminal
<Begasus[m]> clang++ src/main.cpp so it needs cmd:clang++
<yann64[m]> Begasus[m]: No, will try later tonight
<Begasus[m]> nvm, build is pretty fast :)
<yann64[m]> <Begasus[m]> "nvm, build is pretty fast :)" <- Indeed
<Begasus[m]> k, recipe with some changes is fine, but I think it need more then just the binary to be present
<Begasus[m]> https://archlinux.org/packages/extra/x86_64/odin/ (check package contents there)
<Begasus[m]> food* :)
<yann64[m]> <Begasus[m]> "k, recipe with some changes is..." <- indeed, I am doing this in steps, will investigate the remaining libs tonight and later this week
<Begasus[m]> +1
<Begasus[m]> k, pasting what I did here: https://bpa.st/WX3A
<Begasus[m]> don't look at it if you want to do it yourself :)
<Begasus[m]> just a basic recipe as you did with some changes (needed)
jmairboeck has joined #haiku-3rdparty
jmairboeck has quit [Quit: Konversation terminated!]
frkazoid333 has quit [Read error: Connection reset by peer]
frkazoid333 has joined #haiku-3rdparty