svn commit: r551440 - in head/x11-wm/compiz: . files
Mateusz Piotrowski
0mp at FreeBSD.org
Sun Oct 4 19:04:21 UTC 2020
Author: 0mp
Date: Sun Oct 4 19:04:20 2020
New Revision: 551440
URL: https://svnweb.freebsd.org/changeset/ports/551440
Log:
x11-wm/compiz: Fix compiz-manager texture size parsing error
compiz-manager doesn't cover the possibility of duplicate output from
glxinfo at line 238, which causes check_texture_size() to fail. Let's fix
it by limiting the number of output lines to 1.
PR: 247476
Submitted by: Vladimir Bychik
Approved by: maintainer (Chris Hutchinson)
MFH: 2020Q4
Modified:
head/x11-wm/compiz/Makefile
head/x11-wm/compiz/files/compiz-manager.in
Modified: head/x11-wm/compiz/Makefile
==============================================================================
--- head/x11-wm/compiz/Makefile Sun Oct 4 19:03:58 2020 (r551439)
+++ head/x11-wm/compiz/Makefile Sun Oct 4 19:04:20 2020 (r551440)
@@ -2,7 +2,7 @@
PORTNAME= compiz
PORTVERSION= 0.8.8
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= x11-wm
MASTER_SITES= https://BSDforge.com/projects/source/x11-wm/compiz/
Modified: head/x11-wm/compiz/files/compiz-manager.in
==============================================================================
--- head/x11-wm/compiz/files/compiz-manager.in Sun Oct 4 19:03:58 2020 (r551439)
+++ head/x11-wm/compiz/files/compiz-manager.in Sun Oct 4 19:04:20 2020 (r551440)
@@ -235,7 +235,7 @@ check_nvidia()
# Check if the max texture size is large enough compared to the resolution
check_texture_size()
{
- TEXTURE_LIMIT=$(glxinfo -l | grep GL_MAX_TEXTURE_SIZE | sed 's/.*=[^0-9]//g')
+ TEXTURE_LIMIT=$(glxinfo -l | grep GL_MAX_TEXTURE_SIZE | head -n 1 | sed 's/.*=[^0-9]//g')
RESOLUTION=$(xdpyinfo | grep -i dimensions: | sed 's/[^0-9]*pixels.*(.*).*//' | sed 's/[^0-9x]*//')
VRES=$(echo $RESOLUTION | sed 's/.*x//')
HRES=$(echo $RESOLUTION | sed 's/x.*//')
More information about the svn-ports-all
mailing list