Skip to content

Commit

Permalink
[deps] split Versions.make into standalone *.version file (JuliaL…
Browse files Browse the repository at this point in the history
…ang#45720)

* deps: include `$(LibName).version`
* deps: rm `Versions.make`
* repo: update `julia.spdx.json`
* deps: split `unwind.version`, add new `llvmunwind.version`
* deps: split `llvm.version` into `clang.version` + `llvm-tools.version`
* stdlib: Add new makefile `all_jlls.version` to include all `_jll` names
* deps/LibUnwind_jll: fix version mismatch (`Project.toml` and `checksum`), xref: JuliaLang#42782
  • Loading branch information
inkydragon committed Jun 28, 2022
1 parent 4015e0d commit a8d1d36
Show file tree
Hide file tree
Showing 49 changed files with 194 additions and 139 deletions.
1 change: 0 additions & 1 deletion base/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
SRCDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
BUILDDIR := .
JULIAHOME := $(abspath $(SRCDIR)/..)
include $(JULIAHOME)/deps/Versions.make
include $(JULIAHOME)/Make.inc

TAGGED_RELEASE_BANNER := ""
Expand Down
1 change: 0 additions & 1 deletion cli/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
SRCDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
JULIAHOME := $(abspath $(SRCDIR)/..)
BUILDDIR ?= .
include $(JULIAHOME)/deps/Versions.make
include $(JULIAHOME)/Make.inc
include $(JULIAHOME)/deps/llvm-ver.make

Expand Down
1 change: 0 additions & 1 deletion deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ BUILDDIR := scratch
else
BUILDDIR := .
endif
include $(SRCDIR)/Versions.make
include $(JULIAHOME)/Make.inc
include $(SRCDIR)/tools/common.mk
include $(SRCDIR)/tools/git-external.mk
Expand Down
120 changes: 0 additions & 120 deletions deps/Versions.make

This file was deleted.

5 changes: 5 additions & 0 deletions deps/blastrampoline.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
## jll artifact
BLASTRAMPOLINE_JLL_NAME := libblastrampoline

## source build
BLASTRAMPOLINE_VER := 5.1.1
BLASTRAMPOLINE_BRANCH=v5.1.1
BLASTRAMPOLINE_SHA1=bac2f810d523003fbb431ecc6e9ea81c8b86e2d6
4 changes: 4 additions & 0 deletions deps/clang.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## jll artifact
# Clang (paired with LLVM, only here as a JLL download)
CLANG_JLL_NAME := Clang
CLANG_JLL_VER := 14.0.5+0
2 changes: 2 additions & 0 deletions deps/csl.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## jll artifact
CSL_JLL_NAME := CompilerSupportLibraries
1 change: 1 addition & 0 deletions deps/curl.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## CURL ##
include $(SRCDIR)/curl.version

ifeq ($(USE_SYSTEM_LIBSSH2), 0)
$(BUILDDIR)/curl-$(CURL_VER)/build-configured: | $(build_prefix)/manifest/libssh2
Expand Down
5 changes: 5 additions & 0 deletions deps/curl.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
CURL_JLL_NAME := LibCURL

## source build
CURL_VER := 7.83.1
1 change: 1 addition & 0 deletions deps/dsfmt.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## DSFMT ##
include $(SRCDIR)/dsfmt.version

ifneq ($(USE_BINARYBUILDER_DSFMT),1)

Expand Down
5 changes: 5 additions & 0 deletions deps/dsfmt.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
DSFMT_JLL_NAME := dSFMT

## source build
DSFMT_VER := 2.2.4
1 change: 1 addition & 0 deletions deps/gmp.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## GMP ##
include $(SRCDIR)/gmp.version

ifeq ($(SANITIZE),1)
GMP_CONFIGURE_OPTS += --disable-assembly
Expand Down
5 changes: 5 additions & 0 deletions deps/gmp.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
GMP_JLL_NAME := GMP

## source build
GMP_VER := 6.2.1
10 changes: 10 additions & 0 deletions deps/libgit2.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
## jll artifact
LIBGIT2_JLL_NAME := LibGit2

## source build
LIBGIT2_BRANCH=v1.4.3
LIBGIT2_SHA1=465bbf88ea939a965fbcbade72870c61f815e457

## Other deps
# Specify the version of the Mozilla CA Certificate Store to obtain.
# The versions of cacert.pem are identified by the date (YYYY-MM-DD) of their changes.
# See https://curl.haxx.se/docs/caextract.html for more details.
MOZILLA_CACERT_VERSION := 2022-02-01
5 changes: 5 additions & 0 deletions deps/libssh2.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
## jll artifact
LIBSSH2_JLL_NAME := LibSSH2

## source build
LIBSSH2_VER := 1.10.2
LIBSSH2_BRANCH=libssh2-1.10.0
LIBSSH2_SHA1=635caa90787220ac3773c1d5ba11f1236c22eae8
1 change: 1 addition & 0 deletions deps/libsuitesparse.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## LIBSUITESPARSE ##
include $(SRCDIR)/libsuitesparse.version

ifeq ($(USE_BLAS64), 1)
UMFPACK_CONFIG := -DLONGBLAS='long long'
Expand Down
5 changes: 5 additions & 0 deletions deps/libsuitesparse.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
LIBSUITESPARSE_JLL_NAME := SuiteSparse

## source build
LIBSUITESPARSE_VER := 5.10.1
5 changes: 5 additions & 0 deletions deps/libuv.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
## jll artifact
LIBUV_JLL_NAME := LibUV

## source build
LIBUV_VER := 2
LIBUV_BRANCH=julia-uv2-1.44.1
LIBUV_SHA1=1b2d16477fe1142adea952168d828a066e03ee4c
3 changes: 3 additions & 0 deletions deps/lld.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## jll artifact
LLD_JLL_NAME := LLD
LLD_JLL_VER := 14.0.5+0
5 changes: 5 additions & 0 deletions deps/llvm-tools.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
# LLVM_tools (downloads LLVM_jll to get things like `lit` and `opt`)
LLVM_TOOLS_JLL_NAME := LLVM
LLVM_TOOLS_JLL_VER := 14.0.5+0
LLVM_TOOLS_ASSERT_JLL_VER := 14.0.5+0
1 change: 1 addition & 0 deletions deps/llvm.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## LLVM ##
include $(SRCDIR)/llvm.version
include $(SRCDIR)/llvm-ver.make
include $(SRCDIR)/llvm-options.mk

Expand Down
6 changes: 6 additions & 0 deletions deps/llvm.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
## jll artifact
LLVM_JLL_NAME := libLLVM
LLVM_ASSERT_JLL_VER := 14.0.5+0

## source build
LLVM_VER := 14.0.2
LLVM_BRANCH=julia-14.0.5-0
LLVM_SHA1=julia-14.0.5-0
5 changes: 5 additions & 0 deletions deps/llvmunwind.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
LLVMUNWIND_JLL_NAME := LLVMLibUnwind

## source build
LLVMUNWIND_VER := 12.0.1
1 change: 1 addition & 0 deletions deps/mbedtls.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## mbedtls
include $(SRCDIR)/mbedtls.version

ifneq ($(USE_BINARYBUILDER_MBEDTLS), 1)
MBEDTLS_SRC = mbedtls-$(MBEDTLS_VER)
Expand Down
5 changes: 5 additions & 0 deletions deps/mbedtls.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
MBEDTLS_JLL_NAME := MbedTLS

## source build
MBEDTLS_VER := 2.28.0
1 change: 1 addition & 0 deletions deps/mpfr.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## MPFR ##
include $(SRCDIR)/mpfr.version

ifeq ($(USE_SYSTEM_GMP), 0)
$(BUILDDIR)/mpfr-$(MPFR_VER)/build-configured: | $(build_prefix)/manifest/gmp
Expand Down
9 changes: 9 additions & 0 deletions deps/mpfr.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## jll artifact
MPFR_JLL_NAME := MPFR

## source build
MPFR_VER := 4.1.0

# Note: jll use a different version `4.1.1+1` ("stdlib/MPFR_jll/Project.toml")
# See notes in build_tarballs.jl
# https://github.com/JuliaPackaging/Yggdrasil/blob/3c877e18dd9bb9b2e79415e00f661a7e37b2aea9/M/MPFR/build_tarballs.jl#L40-L42
1 change: 1 addition & 0 deletions deps/nghttp2.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## nghttp2
include $(SRCDIR)/nghttp2.version

ifneq ($(USE_BINARYBUILDER_NGHTTP2), 1)

Expand Down
5 changes: 5 additions & 0 deletions deps/nghttp2.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
NGHTTP2_JLL_NAME := nghttp2

## source build
NGHTTP2_VER := 1.47.0
1 change: 1 addition & 0 deletions deps/objconv.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## objconv ##
include $(SRCDIR)/objconv.version

ifneq ($(USE_BINARYBUILDER_OBJCONV),1)

Expand Down
7 changes: 7 additions & 0 deletions deps/objconv.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## jll artifact
# Objconv (we don't ship this, so no need for a fake JLL; therefore we specify the JLL_VER here instead of in a `stdlib/Objconv_jll/Project.toml` file)
OBJCONV_JLL_NAME := Objconv
OBJCONV_JLL_VER := 2.49.1+0

## source build
OBJCONV_VER := 2.49.1
8 changes: 8 additions & 0 deletions deps/openblas.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
## jll artifact
OPENBLAS_JLL_NAME := OpenBLAS

## source build
OPENBLAS_VER := 0.3.20
OPENBLAS_BRANCH=v0.3.20
OPENBLAS_SHA1=0b678b19dc03f2a999d6e038814c4c50b9640a4e

# LAPACK, source-only
LAPACK_VER := 3.9.0
5 changes: 5 additions & 0 deletions deps/openlibm.version
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
## jll artifact
OPENLIBM_JLL_NAME := OpenLibm

## source build
OPENLIBM_VER := 0.8.1
OPENLIBM_BRANCH=v0.8.1
OPENLIBM_SHA1=ae2d91698508701c83cab83714d42a1146dccf85
1 change: 1 addition & 0 deletions deps/p7zip.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## p7zip ##
include $(SRCDIR)/p7zip.version

ifneq ($(USE_BINARYBUILDER_P7ZIP),1)

Expand Down
5 changes: 5 additions & 0 deletions deps/p7zip.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
P7ZIP_JLL_NAME := p7zip

## source build
P7ZIP_VER := 17.04
1 change: 1 addition & 0 deletions deps/patchelf.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## patchelf ##
include $(SRCDIR)/patchelf.version

$(SRCCACHE)/patchelf-$(PATCHELF_VER).tar.bz2: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://github.com/NixOS/patchelf/releases/download/$(PATCHELF_VER)/patchelf-$(PATCHELF_VER).tar.bz2
Expand Down
3 changes: 3 additions & 0 deletions deps/patchelf.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## source build
# Patchelf (we don't ship this or even use a JLL, we just always build it)
PATCHELF_VER := 0.13
1 change: 1 addition & 0 deletions deps/pcre.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## PCRE ##
include $(SRCDIR)/pcre.version

ifneq ($(USE_BINARYBUILDER_PCRE),1)
# Force optimization for PCRE flags (Issue #11668)
Expand Down
5 changes: 5 additions & 0 deletions deps/pcre.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## jll artifact
PCRE_JLL_NAME := PCRE2

## source build
PCRE_VER := 10.40
1 change: 1 addition & 0 deletions deps/tools/bb-install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# 4 cxx11) # signifies a cxx11 ABI dependency

define bb-install
include $$(SRCDIR)/$1.version
TRIPLET_VAR := BB_TRIPLET
ifeq ($(3),true)
TRIPLET_VAR := $$(TRIPLET_VAR)_LIBGFORTRAN
Expand Down
2 changes: 2 additions & 0 deletions deps/unwind.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## UNWIND ##
include $(SRCDIR)/unwind.version
include $(SRCDIR)/llvmunwind.version

ifneq ($(USE_BINARYBUILDER_LIBUNWIND),1)
LIBUNWIND_CFLAGS := -U_FORTIFY_SOURCE $(fPIC) -lz
Expand Down
6 changes: 6 additions & 0 deletions deps/unwind.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## jll artifact
UNWIND_JLL_NAME := LibUnwind

## source build
UNWIND_VER_TAG := 1.5
UNWIND_VER := 1.5.0
Loading

0 comments on commit a8d1d36

Please sign in to comment.