From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: libGL: consider devirtualizing
Date: Wed, 20 Jan 2021 22:50:15 +0100 [thread overview]
Message-ID: <20210120215015.XmYssgX3Xpgn0E1XFYQzFUKxVveku6IcgXU-QQLrTrg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27286@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/issues/27286#issuecomment-763971783
Comment:
`rpi-userland` has an `shlib-provides` entry for `libEGL.so`, and it is installed in `/opt/vc/lib`. Before last week, `rpi-userland` installed an `ld.so.conf.d` file on glibc and a musl linker path configuration to direct the linker to these. I think this is a horrible idea, especially on musl, where that configuration is a single file that will clobber any user's configuration.
To fix this, I dropped the linker path configs and modified the few packages that depend on the `rpi-userland` libs to set rpaths on executables. (Several RPi packages already used the rpath, I just took it all the way.)
While I support installing these kinds of conflicting libraries somewhere else to allow them to coexist when only a few packages need them, I do *not* recommend attempting to modify linker search paths to accommodate them. Setting rpaths is a much better solution because it works as expected on musl and glibc.
(Using rpath can break new-style multilib if the path is static, which is why it's better to use variables like `$ORIGIN`... but `ld.so.conf` configuration will break these multilib setups anyway.)
next prev parent reply other threads:[~2021-01-20 21:50 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-19 22:45 [ISSUE] " st3r4g
2020-12-19 22:50 ` abenson
2021-01-20 20:32 ` ericonr
2021-01-20 20:32 ` ericonr
2021-01-20 21:33 ` st3r4g
2021-01-20 21:36 ` ericonr
2021-01-20 21:45 ` st3r4g
2021-01-20 21:46 ` st3r4g
2021-01-20 21:47 ` st3r4g
2021-01-20 21:47 ` st3r4g
2021-01-20 21:49 ` st3r4g
2021-01-20 21:49 ` ericonr
2021-01-20 21:50 ` ahesford [this message]
2021-01-20 21:56 ` ericonr
2021-01-21 14:48 ` ahesford
2021-01-21 14:55 ` ericonr
2021-01-21 15:32 ` ericonr
2021-01-21 15:49 ` ahesford
2021-01-21 16:17 ` ericonr
2021-01-21 18:00 ` ahesford
2022-05-01 2:14 ` github-actions
2022-05-16 2:07 ` [ISSUE] [CLOSED] " github-actions
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=20210120215015.XmYssgX3Xpgn0E1XFYQzFUKxVveku6IcgXU-QQLrTrg@z \
--to=ahesford@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).