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

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

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

commit fdc95482c3b625504c5b53566b0ce8c08fc7dc86
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:22:52 +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
---
 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.17KANT6o077220>