@@ -40,6 +40,13 @@ ifeq ($(OS),Linux)
40
40
LIBGIT2_OPTS += -DUSE_OPENSSL=OFF -DUSE_MBEDTLS=ON -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
41
41
endif
42
42
43
+ # We need to bundle ca certs on linux now that we're using libgit2 with ssl
44
+ ifeq ($(OS ) ,Linux)
45
+ ifeq ($(shell [ -e $(shell openssl version -d | cut -d '"' -f 2) /cert.pem ] && echo exists) ,exists)
46
+ CERTFILE =$(shell openssl version -d | cut -d '"' -f 2) /cert.pem
47
+ endif
48
+ endif
49
+
43
50
$(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-ssh.patch-applied : $(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /source-extracted
44
51
cd $(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) && patch -p0 -f < $(SRCDIR ) /patches/libgit2-ssh.patch
45
52
echo 1 > $@
@@ -56,11 +63,22 @@ $(SRCDIR)/srccache/$(LIBGIT2_SRC_DIR)/libgit2-openssl-hang.patch-applied: $(SRCD
56
63
cd $(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) && patch -p1 -f < $(SRCDIR ) /patches/libgit2-openssl-hang.patch
57
64
echo 1 > $@
58
65
66
+ ifeq ($(CERTFILE ) ,)
67
+ $(build_datarootdir ) /julia/cert.pem :
68
+ touch $@
69
+ else
70
+ $(build_datarootdir ) /julia/cert.pem : $(CERTFILE )
71
+ mkdir -p $(build_datarootdir ) /julia
72
+ echo " NABIL: Copying over certfile $( CERTFILE) "
73
+ -cp $(CERTFILE ) $@
74
+ endif
75
+
59
76
$(BUILDDIR ) /$(LIBGIT2_SRC_DIR ) /build-configured : \
60
77
$(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-mbedtls.patch-applied \
61
78
$(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-openssl-hang.patch-applied \
62
79
$(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-ssh.patch-applied \
63
- $(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-agent-nonfatal.patch-applied
80
+ $(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-agent-nonfatal.patch-applied \
81
+ $(build_datarootdir ) /julia/cert.pem
64
82
65
83
$(BUILDDIR ) /$(LIBGIT2_SRC_DIR ) /build-configured : $(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /source-extracted
66
84
mkdir -p $(dir $@ )
0 commit comments