Bug 225053 - misc/raspberrypi-userland: conflicts with mesa-libs
Summary: misc/raspberrypi-userland: conflicts with mesa-libs
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks: 264431
  Show dependency treegraph
 
Reported: 2018-01-10 15:59 UTC by Zsolt Udvari
Modified: 2022-06-16 14:12 UTC (History)
2 users (show)

See Also:


Attachments
New prefix to raspberrypi_userland (5.12 KB, patch)
2019-07-12 16:30 UTC, adr
no flags Details | Diff
(naive) libglvnd support (7.62 KB, patch)
2020-05-27 11:35 UTC, Jan Beich
no flags Details | Diff
misc/raspberrypi-userland: move libraries to ${LOCALBASE}/share/vc (30.43 KB, patch)
2022-06-04 02:40 UTC, Robert Clausecker
fuz: maintainer-approval+
koobs: maintainer-approval? (sunpoet)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zsolt Udvari freebsd_committer freebsd_triage 2018-01-10 15:59:32 UTC
I've installed multimedia/kodi to my RPi - it requires raspberrypi-userland.
I want to install print/hplip and it requires mesa-libs.

But it's impossible:
  - mesa-libs-17.3.1 conflicts with raspberrypi-userland-20161026 on /usr/local/include/EGL/egl.h
Comment 1 Zsolt Udvari freebsd_committer freebsd_triage 2018-07-04 15:28:17 UTC
What about this report?
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2018-07-04 16:24:45 UTC
(In reply to Zsolt Udvari from comment #1)
Sorry for the late reply.
Nothing much I can do, pkg still lacks the "provides/requires" feature...
Comment 3 Jan Beich freebsd_committer freebsd_triage 2018-12-07 16:59:46 UTC
USES=gl can probably follow USES=jpeg example by providing a way to override graphics/mesa-libs dependency.
Comment 4 adr 2019-07-12 16:30:41 UTC
Created attachment 205725 [details]
New prefix to raspberrypi_userland
Comment 5 adr 2019-07-12 16:36:08 UTC
This conflict is preventing the use of hardware accelerated support in an X environment. Xine, vlc, gstreamer, mpv, ... Like it or not, the Raspberry Pi family of computers are one of the most popular arm machines today. The new opengl driver can be useful in the future with a more powerful hardware, but for  now, this is the better option (and the only one in BSD?) for playing HD video, and through gstreamer, playing videos on a web browser with an acceptable quality. Vlc has a new driver that integrates perfectly the player with the X environment. I'm attaching patches for raspberrypi-userland and for omxplayer to use LOCALBASE/share/vc as the prefix of the userland, adding -I with this path to omxplayer and adding a message to advise the user to change LD_LIBRARY_PATH. If this is accepted, I'll correct the other ports that can use raspberrypi-userland.
Comment 6 Jan Beich freebsd_committer freebsd_triage 2020-05-27 11:35:41 UTC
Created attachment 214912 [details]
(naive) libglvnd support

Does this help? Apply bug 246767 first.

Disclaimer: I've never had Raspberry Pi. Besides, Mesa already has some drivers for Raspberry Pi.
Comment 7 Jan Beich freebsd_committer freebsd_triage 2020-05-27 11:54:50 UTC
Comment on attachment 214912 [details]
(naive) libglvnd support

Nevermind, libglvnd doesn't provide DISPMANX_ELEMENT_HANDLE_T and EGL_DISPMANX_WINDOW_T in <EGL/eglplatform.h> which is required by multimedia/omxplayer.
Comment 8 Zsolt Udvari freebsd_committer freebsd_triage 2020-05-27 12:19:51 UTC
(In reply to Jan Beich from comment #6)
My RPi went awry so I can't test it.
Comment 9 Robert Clausecker freebsd_committer freebsd_triage 2022-06-04 02:40:42 UTC
Created attachment 234432 [details]
misc/raspberrypi-userland: move libraries to ${LOCALBASE}/share/vc

I've taken the patch from attachment #205725 [details] of comment #4 and slightly touched it up.  I've also added a patch to multimedia/libcec (see bug #264431) so it uses the correct library.  It might be nice if sunpoet@ could check this.

While at this, I noticed that multimedia/libcec has a library dependency on Python at runtime, so maybe USES=python:build should be changed to USES=python.

Tested misc/raspberrypi-userland, multimedia/omxplayer, and multimedia/libcec with Poudriere on armv7 FreeBSD 13.

---

[PATCH] misc/raspberrypi-userland: move libraries to ${LOCALBASE}/share/vc

The port installs a bunch of OpenGL libraries with conflict with
libglvnd and friends.  Move the Raspberry Pi specific libraries
to a different prefix so they don't conflict.

Also update dependent ports so they can find these libraries.

Reported by:    Zsolt Udvari <uzsolt@uzsolt.hu>
PR:             225053
Co-Authored-by: adr <adr@sdf.org>
Comment 10 Kubilay Kocak freebsd_committer freebsd_triage 2022-06-04 08:59:06 UTC
(In reply to Robert Clausecker from comment #9)

Thanks Robert. If resolution of this issue depends on (should be committed after), resolution of bug 264431 please add it to this issues 'Depends On' field.

Also if the original patch by adr@ is obsoleted by yours, let us know so we can mark it as such

^Triage: Port is unmaintained, approval set in comment 9 is:

  Approved by: portmgr (blanket: unmaintained port)
Comment 11 Robert Clausecker freebsd_committer freebsd_triage 2022-06-04 10:48:55 UTC
(In reply to Kubilay Kocak from comment #10)

Yes, attachment #205725 [details] is obsoleted by #234432.  Note that the patch also touches two other ports to fix some paths in these.  One of these ports is maintained by sunpoet@, the other one is unmaintained.

As for the "DependsOn", it's exactly the other way round: attachment #234432 [details] also fixes bug #264431.
Comment 12 commit-hook freebsd_committer freebsd_triage 2022-06-16 14:09:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=20a2ff573498fb0c81360ca7f032ce7d5fb4e980

commit 20a2ff573498fb0c81360ca7f032ce7d5fb4e980
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-16 14:02:34 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-16 14:02:34 +0000

    misc/raspberrypi-userland: Avoid CONFLICTS with mesa-libs

    - Bump PORTREVISION for package change

    PR:             225053
    Submitted by:   Robert Clausecker <fuz@fuz.su>

 misc/raspberrypi-userland/Makefile                |  15 +-
 misc/raspberrypi-userland/pkg-message (new)       |   3 +
 misc/raspberrypi-userland/pkg-plist               | 566 +++++++++++-----------
 multimedia/libcec/Makefile                        |   3 +-
 multimedia/omxplayer/Makefile                     |   2 +-
 multimedia/omxplayer/files/patch-Makefile         |   4 +-
 multimedia/omxplayer/files/patch-Makefile.include |   4 +-
 7 files changed, 300 insertions(+), 297 deletions(-)
Comment 13 Po-Chuan Hsieh freebsd_committer freebsd_triage 2022-06-16 14:11:28 UTC
Committed. Thanks!