<p dir="auto">Hi guys!</p>
<p dir="auto">I'm trying to pack julia 0.5.0-rc1, but the mbedtls is failing with this message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[   51s] CMake Error at library/cmake_install.cmake:144 (file):
[   51s]   file RPATH_CHANGE could not write new RPATH:
[   51s] 
[   51s]     $ORIGIN
[   51s] 
[   51s]   to the file:
[   51s] 
[   51s]     /home/abuild/rpmbuild/BUILD/julia-0.5.0-rc1/usr-staging/mbedtls-2.3.0/home/abuild/rpmbuild/BUILD/julia-0.5.0-rc1/usr/lib/libmbedcrypto.so.2.3.0
[   51s] 
[   51s]   No valid ELF RPATH or RUNPATH entry exists in the file;
[   51s] Call Stack (most recent call first):
[   51s]   cmake_install.cmake:37 (include)
[   51s] 
[   51s] 
[   51s] make[2]: *** [Makefile:130: install] Error 1"><pre class="notranslate"><code class="notranslate">[   51s] CMake Error at library/cmake_install.cmake:144 (file):
[   51s]   file RPATH_CHANGE could not write new RPATH:
[   51s] 
[   51s]     $ORIGIN
[   51s] 
[   51s]   to the file:
[   51s] 
[   51s]     /home/abuild/rpmbuild/BUILD/julia-0.5.0-rc1/usr-staging/mbedtls-2.3.0/home/abuild/rpmbuild/BUILD/julia-0.5.0-rc1/usr/lib/libmbedcrypto.so.2.3.0
[   51s] 
[   51s]   No valid ELF RPATH or RUNPATH entry exists in the file;
[   51s] Call Stack (most recent call first):
[   51s]   cmake_install.cmake:37 (include)
[   51s] 
[   51s] 
[   51s] make[2]: *** [Makefile:130: install] Error 1
</code></pre></div>
<p dir="auto">Can anyone help me?</p>
<p dir="auto">The USE_SYSTEM_* options related to libgit2's ssh/proxy handling roughly works but it seems that they can be handled better/more precisely. A few issues I've noticed,</p>
<ol dir="auto">
<li>IIUC mbedtls (and libssh2?) is (are) not used directly but only as dependencies of libgit2. Therefore, when the system version of <code class="notranslate">libgit2</code> is used, these dependencies shouldn't be built.</li>
<li>USE_SYSTEM_MBEDTLS without USE_SYSTEM_CURL does not work (mbedtls is built).</li>
</ol>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tkelman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tkelman">@tkelman</a></p>