Github messages for voidlinux
 help / color / mirror / Atom feed
From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: libGL: consider devirtualizing
Date: Thu, 21 Jan 2021 19:00:17 +0100	[thread overview]
Message-ID: <20210121180017.-t7acnMR7fG-Mk4hiT8mQvGJi8zo2q-UMeyENcixttw@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: 2523 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/27286#issuecomment-764832165

Comment:
I don't think this is really an issue for `rpi-userland`:
- The `libEGL.so` and `libGLESv2.so` shipped by `rpi-userland` have no versions. The only `shlib-requires` for `libEGL.so` in the `armv7l` repo are `ioquake3-rpi` and `libvlc`, both of which have always set `rpath`. Only `ioquake3-rpi` has an `shlib-requires` on `libGLESv2.so`. Having a glibc search path here doesn't solve any problems.
- There is a possibility that some packages `dlopen` an unversioned `libEGL.so` or `libGLESv2.so` but, in that case, those packages would be broken even against `libglvnd` without `libglvnd-devel`. Installing `rpi-userland` might allow these applications to work if `libglvnd-devel` weren't installed and the search path were modified. However, having *both* `rpi-userland` and `libglvnd-devel` installed could cause unexpected behavior. You might want the `rpi-userland` version but wind up with `libglvnd-devel`, or you might want `libglvnd` and wind up with `rpi-userland` just because you installed it for some other utility. (For me, the biggest feature of `rpi-userland` is its `vcgencmd` to query the VideoCore hardware and do things like flash RPi4 firmware. The OpenGL stuff isn't even relevant for me because I run the `aarch64` version which doesn't include these libraries.)

Given that `rpi-userland` has broader utility than providing vendor-specific OpenGL, and may be installed for that purpose; and given that trying to hook `rpi-userland` into everyday OpenGL workflows seems to be a corner case that probably isn't satisfactorily resolved even by an addition to the glibc linker path; I think we should leave `rpi-userland` as is and, if somebody reports some unexpected breakage, we can resume the discussion about the best fix.

This doesn't bear on the virtual `libGL` anyway, so de-virtualizing that library can proceed anyway.

Regarding `sunxi-mali`, I assume specific directories in `/etc/ld.so.conf` or its includes take precedence over the trusted locations like `/usr/lib`. That package installs versioned `libEGL.so.1` and `libGLESv2.so.2` which directly replace the `libglvnd` libraries, so modifying the linker path will work as expected in that case. I support that for `sunxi-mali` because the *only* value to `sunxi-mali` seems to be as a vendored OpenGL, so installing it can reasonably be expected to override the generic implementation.

  parent reply	other threads:[~2021-01-21 18:00 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
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 [this message]
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=20210121180017.-t7acnMR7fG-Mk4hiT8mQvGJi8zo2q-UMeyENcixttw@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).