aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/julia/0008-ldconfig-compat.patch
blob: d02237714e204a1d2ecdc707b718c7b5e1a1e1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Thu, 9 Jun 2016 01:15:00 +0200
Subject: [PATCH] Use our find-syslibs script instead of /sbin/ldconfig -p

Julia uses "ldconfig -p" to find system libraries. The problem is that musl's
ldconfig doesn't support the option "-p". Moreover, ldconfig relies on .pc
files that are installed only with -dev subpackages.

This workaround lies in using custom script that adapts output of scanelf to
the format produced by "ldconfig -p".

See https://github.com/JuliaLang/julia/issues/6742.

--- a/src/runtime_ccall.cpp
+++ b/src/runtime_ccall.cpp
@@ -31,7 +31,7 @@
     char *line=NULL;
     size_t sz=0;
 #if defined(__linux__)
-    FILE *ldc = popen("/sbin/ldconfig -p", "r");
+    FILE *ldc = popen("/usr/share/julia/find-syslibs", "r");
 #else
     FILE *ldc = popen("/sbin/ldconfig -r", "r");
 #endif