Thread: clang/llvm
View Single Post
  #2   (View Single Post)  
Old 20th February 2013
bsdnotbdsm bsdnotbdsm is offline
Port Guard
 
Join Date: Jan 2013
Posts: 30
Default

Hello,
To quickly answer your question: I think it is desirable to keep the clang and llvm at identical versions.

But, more elaborate answer for your specific situation: you're not in the position to split clang and llvm versions.
I'm looking at my ports tree (FreeBSD 8.2 amd64, official ports collection, upgraded on Feb 20th 2013):
Quote:
# ls -d /usr/ports/devel/llvm*
/usr/ports/devel/llvm /usr/ports/devel/llvm-devel /usr/ports/devel/llvm31
# ls -d /usr/ports/lang/clang*
/usr/ports/lang/clang /usr/ports/lang/clang-devel /usr/ports/lang/clang31
Therefore, there are two versions of clang/llvm in the ports tree.
Now, if I look at the versioning:
Quote:
# head -1 /usr/ports/devel/llvm/distinfo
SHA256 (llvm-3.2.src.tar.gz) = 125090c4d26740f1d5e9838477c931ed7d9ad70d599ba265f4 6f3a42cb066343
# head -1 /usr/ports/devel/llvm31/distinfo
SHA256 (llvm-3.1.src.tar.gz) = 1ea05135197b5400c1f88d00ff280d775ce778f8f9ea042e25 a1e1e734a4b9ab

# head -1 /usr/ports/lang/clang/distinfo
SHA256 (clang-3.2.src.tar.gz) = 2aaaf03f7c0f6b16fe97ecc81247dc2bf2d4bec7620a77cc74 670b7e07ff5658
# head -1 /usr/ports/lang/clang31/distinfo
SHA256 (clang-3.1.src.tar.gz) = ff63e215dcd3e2838ffdea38502f8d35bab17e487f3c379957 9961e452d5a786
...it looks like there are clang/llvm version 3.2 in the "main" port, and for some reason, version 3.1 is still kept in a port that has "31" termination in its name.

So the solution would be to replace your currently installed ports lang/clang31 and devel/llvm31 with the newer versions lang/clang and devel/llvm.

However a NOTE: clang/llvm being a set of tools used for compiling, I think the upgrade procedure should NOT involve deleting the currently installed version first. You could end up in imposibility to compile any software. Maybe an approach would be installing packages first and then recompile from ports...

Back to the main topic: you can keep your clang/llvm at the same version, be it 3.1 or 3.2
Reply With Quote