File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -452,10 +452,9 @@ ifneq ($(OS), WINNT)
452
452
endif
453
453
ifeq ($(OS ) , Linux)
454
454
-$(JULIAHOME)/contrib/fixup-libstdc++.sh $(DESTDIR)$(libdir) $(DESTDIR)$(private_libdir)
455
- # We need to bundle ca certs on linux now that we're using libgit2 with ssl
456
- ifeq ($(shell [ -e $(shell openssl version -d | cut -d '"' -f 2) /cert.pem ] && echo exists) ,exists)
457
- -cp $(shell openssl version -d | cut -d '"' -f 2)/cert.pem $(DESTDIR)$(datarootdir)/julia/
458
- endif
455
+
456
+ # Copy over any bundled ca certs we picked up from the system during buildi
457
+ -cp $(build_datarootdir)/julia/cert.pem $(DESTDIR)$(datarootdir)/julia/
459
458
endif
460
459
# Copy in juliarc.jl files per-platform for binary distributions as well
461
460
# Note that we don't install to sysconfdir: we always install to $(DESTDIR)$(prefix)/etc.
Original file line number Diff line number Diff line change @@ -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,12 +63,21 @@ $(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
+ $(build_datarootdir ) /julia/cert.pem : $(CERTFILE )
67
+ mkdir -p $(build_datarootdir ) /julia
68
+ echo " NABIL: Copying over certfile $( CERTFILE) "
69
+ -cp $(CERTFILE ) $@
70
+
59
71
$(BUILDDIR ) /$(LIBGIT2_SRC_DIR ) /build-configured : \
60
72
$(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-mbedtls.patch-applied \
61
73
$(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-openssl-hang.patch-applied \
62
74
$(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-ssh.patch-applied \
63
75
$(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /libgit2-agent-nonfatal.patch-applied
64
76
77
+ ifneq ($(CERTFILE ) ,)
78
+ $(BUILDDIR ) /$(LIBGIT2_SRC_DIR ) /build-configured : $(build_datarootdir ) /julia/cert.pem
79
+ endif
80
+
65
81
$(BUILDDIR ) /$(LIBGIT2_SRC_DIR ) /build-configured : $(SRCDIR ) /srccache/$(LIBGIT2_SRC_DIR ) /source-extracted
66
82
mkdir -p $(dir $@ )
67
83
cd $(dir $@ ) && \
You can’t perform that action at this time.
0 commit comments