package/llvm: bump to version 9.0.0
PATCH 1/3 package/llvm: bump to version 9.0.0
The github download url doesn't contain the llvm 9.0.0 archive, so use the previous url.
Since v9.0.0, it was relicensed to the Apache License 2.0 with LLVM Exceptions. Update the license file hash.
Use host-python3 to build llvm [1]
Disable explicitely Z3 support since there is no such package in Buildroot.
[1] https://github.com/llvm-mirror/llvm/commit/213d1037e9f8b837d61eda9668112d17b0f956d0
See:
http://releases.llvm.org/9.0.0/docs/ReleaseNotes.html
--- package/llvm/llvm.hash | 4 ++-- package/llvm/llvm.mk | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-)
package/llvm/llvm.hash +2 -2
@@ -1,3 +1,3 @@ # locally calculated -sha256 44787a6d02f7140f145e2250d56c9f849334e11f9ae379827510ed72f12b75e7 llvm-8.0.1.src.tar.xz -sha256 24b67da19b1422a819395738cb83ea34eee3fdce52870b0d1758524ba1615069 LICENSE.TXT +sha256 d6a0565cf21f22e9b4353b2eb92622e8365000a9e90a16b09b56f8157eabfe84 llvm-9.0.0.src.tar.xz +sha256 8d85c1057d742e597985c7d4e6320b015a9139385cff4cbae06ffc0ebe89afee LICENSE.TXT
package/llvm/llvm.mk +9 -6
@@ -5,17 +5,16 @@ ################################################################################ # LLVM and Clang should be version bumped together -LLVM_VERSION = 8.0.1 -LLVM_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_VERSION) +LLVM_VERSION = 9.0.0 +LLVM_SITE = http://llvm.org/releases/$(LLVM_VERSION) LLVM_SOURCE = llvm-$(LLVM_VERSION).src.tar.xz -LLVM_LICENSE = NCSA +LLVM_LICENSE = Apache-2.0 with exceptions LLVM_LICENSE_FILES = LICENSE.TXT LLVM_SUPPORTS_IN_SOURCE_BUILD = NO LLVM_INSTALL_STAGING = YES -# http://llvm.org/docs/GettingStarted.html#software -# host-python: Python interpreter 2.7 or newer is required for builds and testing. -HOST_LLVM_DEPENDENCIES = host-python +# LLVM >= 9.0 can use python3 to build. +HOST_LLVM_DEPENDENCIES = host-python3 LLVM_DEPENDENCIES = host-llvm # LLVM >= 9.0 will soon require C++14 support, building llvm 8.x using a
@@ -138,6 +137,10 @@ LLVM_CONF_OPTS += -DLLVM_ENABLE_ZLIB=OFF HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_LIBXML2=OFF LLVM_CONF_OPTS += -DLLVM_ENABLE_LIBXML2=OFF +# Disable optional Z3Prover since there is no such package in Buildroot. +HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_Z3_SOLVER=OFF +LLVM_CONF_OPTS += -DLLVM_ENABLE_Z3_SOLVER=OFF + # We don't use llvm for static only build, so enable PIC HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_PIC=ON LLVM_CONF_OPTS += -DLLVM_ENABLE_PIC=ON
Signature · 1 line
2.23.0
PATCH 2/3 package/clang: bump to version 9.0.0
The github download url doesn't contain the llvm 9.0.0 archive, so use the previous url.
Since v9.0.0, it was relicensed to the Apache License 2.0 with LLVM Exceptions. Update the license file hash.
See:
http://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html
--- package/clang/clang.hash | 4 ++-- package/clang/clang.mk | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
package/clang/clang.hash +2 -2
@@ -1,3 +1,3 @@ # locally calculated -sha256 70effd69f7a8ab249f66b0a68aba8b08af52aa2ab710dfb8a0fba102685b1646 cfe-8.0.1.src.tar.xz -sha256 bdc41b826a9a50c7a31c1b613ca5d46415be68d5cc6da06f91f5bc1db8ad87aa LICENSE.TXT +sha256 7ba81eef7c22ca5da688fdf9d88c20934d2d6b40bfe150ffd338900890aa4610 cfe-9.0.0.src.tar.xz +sha256 ebcd9bbf783a73d05c53ba4d586b8d5813dcdf3bbec50265860ccc885e606f47 LICENSE.TXT
package/clang/clang.mk +3 -3
@@ -5,10 +5,10 @@ ################################################################################ # LLVM and Clang should be version bumped together -CLANG_VERSION = 8.0.1 -CLANG_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(CLANG_VERSION) +CLANG_VERSION = 9.0.0 +CLANG_SITE = http://llvm.org/releases/$(CLANG_VERSION) CLANG_SOURCE = cfe-$(CLANG_VERSION).src.tar.xz -CLANG_LICENSE = NCSA +CLANG_LICENSE = Apache-2.0 with exceptions CLANG_LICENSE_FILES = LICENSE.TXT CLANG_SUPPORTS_IN_SOURCE_BUILD = NO CLANG_INSTALL_STAGING = YES
Signature · 1 line
2.23.0
PATCH 3/3 package/libclc: bump version (release_90)
In reply to Romain NaourSince v9.0.0, it was relicensed to the Apache License 2.0 with LLVM Exceptions. Update the license file hash.
--- package/libclc/libclc.hash | 4 ++-- package/libclc/libclc.mk | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-)
package/libclc/libclc.hash +2 -2
@@ -1,3 +1,3 @@ # locally calculated -sha256 8d7b42fba6db4a124c74f0ac475c1bc515761cbf3d559820b4cbe5b33e94f26c libclc-dabae5a2afb78cba0320a86e3f5f0b5dc83e077c.tar.gz -sha256 45187a46f0637e4e92decb51d8dc3c9e4957b349d0283dfbd6647e8000d9ac7f LICENSE.TXT +sha256 5ea2cd2fa7fa1474d3e0580064e7a22014ef8d64dbbd7c546277fa4beb5acf86 libclc-d1cbc92e2ceee59963f5c3a576382e5bba31f060.tar.gz +sha256 3c536c052db9afd997809e38785c9f2a9e54e2892330fa7c5b438e18a7413479 LICENSE.TXT
package/libclc/libclc.mk +3 -4
@@ -4,12 +4,11 @@ # ################################################################################ -# There are only two releases: release_35 and release_38, but the last -# commit is from 2 years ago. Master has some recent activity. -LIBCLC_VERSION = dabae5a2afb78cba0320a86e3f5f0b5dc83e077c +# Use the latest commit from release_90 branch. +LIBCLC_VERSION = d1cbc92e2ceee59963f5c3a576382e5bba31f060 LIBCLC_SITE = https://git.llvm.org/git/libclc LIBCLC_SITE_METHOD = git -LIBCLC_LICENSE = NCSA or MIT +LIBCLC_LICENSE = Apache-2.0 with exceptions or MIT LIBCLC_LICENSE_FILES = LICENSE.TXT LIBCLC_DEPENDENCIES = host-clang host-llvm
Signature · 1 line
2.23.0
PATCH 1/3 package/llvm: bump to version 9.0.0
In reply to Romain NaourQuoted 16 lines · On Sat, 5 Oct 2019 19:04:10 +0200 Romain Naour <[email protected]> wrote:
The github download url doesn't contain the llvm 9.0.0 archive, so use the previous url.
Since v9.0.0, it was relicensed to the Apache License 2.0 with LLVM Exceptions. Update the license file hash.
Use host-python3 to build llvm [1]
Disable explicitely Z3 support since there is no such package in Buildroot.
[1] https://github.com/llvm-mirror/llvm/commit/213d1037e9f8b837d61eda9668112d17b0f956d0
Quoted 7 lines
Signed-off-by Romain Naour <[email protected]>Cc Valentin Korenblit <[email protected]>Cc Joseph Kogut <[email protected]>--- package/llvm/llvm.hash | 4 ++-- package/llvm/llvm.mk | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-)
Series applied. To be honest, on the llvm patch, I was not sure about forcing host-python3. Indeed, LLVM supports both Python 2 and Python 3, and normally in such cases, we do something like this:
ifeq ($(BR2_PACKAGE_PYTHON3),y)FOO_DEPENDENCIES += host-python3
elseFOO_DEPENDENCIES += host-python
endif
So that we re-use the same host-python as the one already being built by Buildroot, if any. But I wasn't sure it was really useful in this specific case, LLVM anyway takes ages to build.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com