Package: src:libgit2
Version: 0.24.1-3
Severity: important

Dear Maintainer,

The 0.5.0 release of julia will use libgit2 to retrieve Julia package
repositories via https://. I have prepared a preliminary package [1],
which fails to clone a git repository [2]:

julia> Pkg.init()
INFO: Initializing package repository /home/peter/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Net, Failed to resolve address for https: 
Name or service not known)
 in init() at ./pkg/pkg.jl:70


julia upstream says [3] that libgit2 must be linked directly to a TLS
library in order to clone via https://, and that libcurl-gnutls is
used only for proxy support. I have rebuilt libgit2 with libssl-dev
using the attached patch, which enables julia to clone via https://.

Could you please provide a variant of libgit2 that is linked to
OpenSSL? To avoid multiple TLS libraries in the same program,
that variant should probably also link with libcurl4-openssl-dev.

(I marked this bug important since TLS is essential nowadays.)

Regards,
Peter

[1] https://anonscm.debian.org/git/pkg-julia/julia.git?h=debian%2Fexperimental
[2] https://github.com/JuliaLang/julia/issues/17661
[3] https://github.com/JuliaLang/julia/issues/17661#issuecomment-235961453
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,8 @@ Priority: extra
 Maintainer: Russell Sim <russell....@gmail.com>
 Build-Depends: debhelper (>= 9.20160114),
                python-minimal (>= 2.4.0), pkg-config,
-               cmake, libz-dev, libcurl4-gnutls-dev,
-               libssh2-1-dev, libhttp-parser-dev
+               cmake, libz-dev, libcurl4-openssl-dev,
+               libssh2-1-dev, libhttp-parser-dev, libssl-dev
 Standards-Version: 3.9.7
 Homepage: http://libgit2.github.com/
 Vcs-Git: https://anonscm.debian.org/cgit/collab-maint/libgit2.git/
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,7 @@ TEST_TMPDIR := $(CURDIR)/tmp-test
 override_dh_auto_configure:
 	dh_auto_configure --builddirectory=build-debian-release -- \
 		-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-		-DUSE_OPENSSL:BOOL=OFF \
+		-DUSE_OPENSSL:BOOL=ON \
 		-DTHREADSAFE:BOOL=ON \
 		-DBUILD_CLAR:BOOL=ON \
 		-DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)
@@ -22,7 +22,7 @@ override_dh_auto_configure:
 	dh_auto_configure --builddirectory=build-debian-devel -- \
 		-DCMAKE_BUILD_TYPE:STRING=Release \
 		-DTHREADSAFE:BOOL=ON \
-		-DUSE_OPENSSL:BOOL=OFF \
+		-DUSE_OPENSSL:BOOL=ON \
 		-DBUILD_CLAR:BOOL=OFF \
 		-DBUILD_SHARED_LIBS:BOOL=OFF \
 		-DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)

Reply via email to