From: "Ludovic Courtès" <ludo@gnu.org>
To: guix-devel@gnu.org, Hartmut Goebel <h.goebel@crazy-compilers.com>
Subject: Re: 07/09: gnu: kinit: Use LIBRARY_PATH to search for dynamically loaded libs.
Date: Sat, 05 Jan 2019 15:24:17 +0100 [thread overview]
Message-ID: <87lg3z5gj2.fsf@gnu.org> (raw)
In-Reply-To: <20190104091145.4226F209C7@vcs0.savannah.gnu.org> (guix-commits's message of "Fri, 4 Jan 2019 04:11:45 -0500 (EST)")
Hi Hartmut,
guix-commits@gnu.org skribis:
> commit 16b8aff85bcdb9799496c4a27257210cd45158e5
> Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
> Date: Thu Mar 1 23:08:44 2018 +0100
>
> gnu: kinit: Use LIBRARY_PATH to search for dynamically loaded libs.
>
> Transfer the NixOS "kdeinit-libpath" patch for kinit as of
> 2018-02-17.
>
> * gnu/packages/patches/kinit-kdeinit-libpath.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/kde-frameworks.scm (kinit)[source]: Use it.
[...]
> ++ // Try to load the library relative to the active profiles.
> ++ QByteArrayList profiles = qgetenv("LIBRARY_PATH").split(':');
> ++ for (const QByteArray &profile: profiles) {
> ++ if (!profile.isEmpty()) {
> ++ l.setFileName(QFile::decodeName(profile) + QStringLiteral("/") + libpath);
> ++ if (l.load()) break;
> ++ }
I find this use of LIBRARY_PATH questionable: it’s the variable normally
used by the compiler driver (gcc) at link time, not by the loader
(ld.so). IOW, it’s really a compile-time variable, and one that has
nothing to do with Qt or KDE.
What about using a different variable for this purpose? It could be
KDE_PLUGIN_PATH or something like this, and we could add it to
‘native-search-paths’ of kinit. We could also avoid the “+ libpath” bit
I suppose.
Thoughts?
Apologies if this has been discussed elsewhere…
Thank you,
Ludo’.
next parent reply other threads:[~2019-01-05 14:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190104091143.6774.92096@vcs0.savannah.gnu.org>
[not found] ` <20190104091145.4226F209C7@vcs0.savannah.gnu.org>
2019-01-05 14:24 ` Ludovic Courtès [this message]
2019-01-07 13:22 ` 07/09: gnu: kinit: Use LIBRARY_PATH to search for dynamically loaded libs Hartmut Goebel
2019-01-08 17:16 ` Ludovic Courtès
2019-01-09 16:10 ` Hartmut Goebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lg3z5gj2.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=h.goebel@crazy-compilers.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.