Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2021 10:23:58 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 870111f811ac - 2021Q3 - graphics/glew-wayland: suggest LD_LIBMAP for session-local override
Message-ID:  <202108201023.17KANwZi077373@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2021Q3 has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=870111f811acb8c11d55bc7c336e1a65215ae6e5

commit 870111f811acb8c11d55bc7c336e1a65215ae6e5
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-08-17 08:52:56 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-08-20 10:23:38 +0000

    graphics/glew-wayland: suggest LD_LIBMAP for session-local override
    
    LD_LIBMAP can be limited to Wayland or KMS console e.g.,
    
    $ cat >>~/.zshrc
    if [[ ( -n $WAYLAND_DISPLAY || -z $DISPLAY ) && $LD_LIBMAP != *GLEW-wayland* ]]; then
       export LD_LIBMAP=libGLEW.so.2=libGLEW-wayland.so.2,$LD_LIBMAP
       export SDL_VIDEODRIVER=wayland,kmsdrm,x11
    fi
    
    (cherry picked from commit fdc95482c3b625504c5b53566b0ce8c08fc7dc86)
---
 graphics/glew-wayland/Makefile    | 2 +-
 graphics/glew-wayland/pkg-message | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/graphics/glew-wayland/Makefile b/graphics/glew-wayland/Makefile
index f75318eb79ec..91d9b00b9bfd 100644
--- a/graphics/glew-wayland/Makefile
+++ b/graphics/glew-wayland/Makefile
@@ -1,4 +1,4 @@
-PORTREVISION=	1
+PORTREVISION=	2
 PKGNAMESUFFIX=	-wayland
 
 # https://github.com/nigels-com/glew/issues/172
diff --git a/graphics/glew-wayland/pkg-message b/graphics/glew-wayland/pkg-message
index 94336daab62f..8382ab7eb533 100644
--- a/graphics/glew-wayland/pkg-message
+++ b/graphics/glew-wayland/pkg-message
@@ -4,6 +4,9 @@
 To enable Wayland support in GLEW for a specific application
   $ LD_PRELOAD=libGLEW-wayland.so <application>
 
+To enable for current session
+  $ export LD_LIBMAP=libGLEW.so.2=libGLEW-wayland.so.2
+
 To enable globally
   $ echo libGLEW.so.2 libGLEW-wayland.so.2 >>/etc/libmap.conf
 EOM



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108201023.17KANwZi077373>