From e7dceb1c92caf7f21ef1d7b49c85328c30cffd90 Mon Sep 17 00:00:00 2001 From: Etienne Cordonnier Date: Fri, 3 May 2024 17:47:46 +0200 Subject: clang: use release tarball instead of git For clang 18.1.5, the llvm-project-source repository is about 3GB big, whereas the source tarball is 126MB big. Using the source tarball instead of the git repository speeds up the fetch step significantly. Also, the git repository is getting so big that depending on the network setup, it is necessary to change git http.postBuffer options in order to avoid errors such as "fetch-pack: unexpected disconnect while reading sideband packet". Signed-off-by: Etienne Cordonnier --- recipes-devtools/clang/clang.inc | 4 +--- recipes-devtools/clang/common.inc | 6 ++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index 7918626..fee08b4 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc @@ -1,8 +1,7 @@ LLVM_RELEASE = "" LLVM_DIR = "llvm${LLVM_RELEASE}" -LLVM_GIT ?= "git://github.com/llvm" -LLVM_GIT_PROTOCOL ?= "https" +LLVM_HTTP ?= "https://github.com/llvm" MAJOR_VER = "18" MINOR_VER = "1" @@ -12,7 +11,6 @@ VER_SUFFIX = "" SRCREV ?= "617a15a9eac96088ae5e9134248d8236e34b91b1" PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}${VER_SUFFIX}" -BRANCH = "release/18.x" LLVMMD5SUM = "8a15a0759ef07f2682d2ba4b893c9afe" CLANGMD5SUM = "ff42885ed2ab98f1ecb8c1fc41205343" diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index a8a9929..db3ae0a 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc @@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://llvm/LICENSE.TXT;md5=${LLVMMD5SUM} \ " LICENSE = "Apache-2.0-with-LLVM-exception" -BASEURI ??= "${LLVM_GIT}/llvm-project.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH}" +BASEURI = "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz" +SRC_URI[sha256sum] = "3591a52761a7d390ede51af01ea73abfecc4b1d16445f9d019b67a57edd7de56" + SRC_URI = "\ ${BASEURI} \ file://llvm-config \ @@ -48,7 +50,7 @@ SRC_URI = "\ # Fallback to no-PIE if not set GCCPIE ??= "" -S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/git" +S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/llvm-project-${PV}.src" B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" # We need to ensure that for the shared work directory, the do_patch signatures match -- cgit v1.2.3-54-g00ecf