pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56427: TigerVNC can't find any fonts under NetBSD-current



>Number:         56427
>Category:       pkg
>Synopsis:       TigerVNC can't find any fonts under NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 30 15:35:00 +0000 2021
>Originator:     Chavdar Ivanov
>Release:        both -current as of 30-Sept-2021
>Organization:
CI4 Consulting Ltd
>Environment:
NetBSD ymir 9.99.89 NetBSD 9.99.89 (GENERIC) #26: Wed Sep 29 13:56:17 BST 2021  sysbuild@ymir:/home/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
net/tigervnc as installed contains a perl script - /usr/pkg/bin/vncserver - which does not include the correct fonts under NetBSD; the logfile contains:
...
Thu Sep 30 16:17:16 2021
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/misc/
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/TTF/
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/OTF/
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/Type1/
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/100dpi/
_FontTransOpen: Unable to Parse address ${prefix}/share/fonts/X11/75dpi/
...

Subsequently 'xlsfonts' returns only:
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed

(Viewer is RealVNC viewer under Windows 11). 
>How-To-Repeat:
Run 'vncserver' under NetBSD. The error message above is shown before the connection. 
>Fix:
Trivial patch to files/vncserver.pl:
.....
cvs diff: Diffing .
cvs diff: Diffing files
Index: files/vncserver.pl
===================================================================
RCS file: /cvsroot/pkgsrc/net/tigervnc/files/vncserver.pl,v
retrieving revision 1.1
diff -u -r1.1 vncserver.pl
--- files/vncserver.pl  16 May 2021 21:06:42 -0000      1.1
+++ files/vncserver.pl  30 Sep 2021 15:20:59 -0000
@@ -101,6 +101,7 @@
 if (! -l "/usr/lib/X11") {push(@fontpaths, '/usr/lib/X11/fonts');}
 if (! -l "/usr/X11") {push(@fontpaths, '/usr/X11/lib/X11/fonts');}
 if (! -l "/usr/X11R6") {push(@fontpaths, '/usr/X11R6/lib/X11/fonts');}
+if (! -l "/usr/X11R7") {push(@fontpaths, '/usr/X11R7/lib/X11/fonts');}
 push(@fontpaths, '/usr/share/fonts/default');

 @fonttypes = ('misc',
cvs diff: Diffing patches
....



Home | Main Index | Thread Index | Old Index