Subject: Re: [bug#31025] [core-updates] LLVM 6.0

From: [email-masked] (Ludovic Courtès)
Date: Wed, 04 Apr 2018 13:50:35 +0200

Hello!

Marius Bakke <[email-masked]> skribis:

> This is an update for LLVM and Clang.  I haven't yet found a package
> that actually works with this new version; the consumers I've tested
> does not support LLVM >4.
>
> However they can keep using the old version, and if there turns out to
> be a problem with 6.0 we can fix it later since there are no dependents.

Sounds good!

> From 28e48a152c99c4c0911c794dd449c4df5ed193f5 Mon Sep 17 00:00:00 2001
> From: Marius Bakke <[email-masked]>
> Date: Sat, 31 Mar 2018 22:04:44 +0200
> Subject: [PATCH] gnu: llvm, clang: Update to 6.0.0.
>
> * gnu/packages/llvm.scm (llvm, clang-runtime, clang): Update to 6.0.0.
> (clang-from-llvm)(patches): Set to empty list.
> [arguments]: Set CLANG_RESOURCE_DIR in #:configure-flags.  Adjust
> substitutions depending on major version.
> (llvm-3.8, clang-runtime-3.8, clang-3.8): New public variables.
> (clang-3.7, clang-3.6, clang-3.5)(patches): Add 'clang-3.5-libc-search-path.patch'.
> (clang-3.9.1)(patches): Add 'clang-3.8-libc-search-path.patch'.
> * gnu/packages/patches/clang-6.0-libc-search-path.patch: New file.
> * gnu/packages/patches/clang-libc-search-path.patch: Rename to ...
> * gnu/packages/patches/clang-3.5-libc-search-path.patch: ... this.
> * gnu/local.mk (dist_patch_DATA): Adjust accordingly.
>
> Add CLANG_RESOURCE_DIR (not sure if needed).

Hmm?

Otherwise LGTM!

Does this change the derivation of ‘llvm’ proper?  If not, this could
even go to ‘master’.

Thanks,
Ludo’.