Files
gentoo/dev-util/qbs/files/qbs-2.4.1-ldconfig.patch
Ionen Wolkens 69d241cac5 dev-util/qbs: adjust syntax for the ldconfig patch
Just to be correct, it works either way so another revbump
is not necessary.

Closes: https://bugs.gentoo.org/939142
Thanks-to: konsolebox
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2024-09-14 14:29:35 -04:00

18 lines
696 B
Diff

https://bugs.gentoo.org/939142
Exact cause unknown, but running qbs in portage's sandbox hangs
for a few people while running ldconfig, and using "env" seemingly
helps. Better (potentially upstreamable) patch welcome if someone
can figure out the right fix.
--- a/share/qbs/modules/cpp/LinuxGCC.qbs
+++ b/share/qbs/modules/cpp/LinuxGCC.qbs
@@ -48,7 +48,7 @@ UnixGCC {
var paths = [];
var ldconfig = new Process();
try {
- var success = ldconfig.exec("ldconfig", ["-vNX"]);
+ var success = ldconfig.exec("env", ["ldconfig", "-vNX"]);
if (success === -1)
return;
var line;