Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2015 08:47:45 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        x11@FreeBSD.org
Subject:   problems when catalogue:fontpath.d/ as the default font path?
Message-ID:  <20150921.084745.896970510291124655.hrs@allbsd.org>

next in thread | raw e-mail | index | archive | help
----Security_Multipart0(Mon_Sep_21_08_47_45_2015_369)--
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Mon_Sep_21_08_47_45_2015_263)--"
Content-Transfer-Encoding: 7bit

----Next_Part(Mon_Sep_21_08_47_45_2015_263)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

 I would like "catalogue:/path" as the default font search path of
 Xorg server because it greatly simplifies ports which install font
 files.  bapt@ tried this direction in r381876 but it was partially
 reverted not to use "catalogue:" directory because of reports that
 some applications did not work with it.

 As far as I can check, using only "catalogue:" in the font path and
 putting symlinks into the directory to make the configuration be
 equivalent to before worked with no problem.  Does anyone know what
 was the problem?  What I tried are:

  1. Apply the attached patch and build&install xorg-server.

  2. Create fontpath.d directory and put symlinks into it:

     # mkdir /usr/local/etc/X11/fontpath.d
     # cd /usr/local/etc/X11/fontpath.d
     # ln -s /usr/local/share/fonts/* .

-- Hiroki

----Next_Part(Mon_Sep_21_08_47_45_2015_263)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="xorg_fontpath_d.20150921-1.diff"

Index: Mk/bsd.xorg.mk
===================================================================
--- Mk/bsd.xorg.mk	(revision 397466)
+++ Mk/bsd.xorg.mk	(working copy)
@@ -97,8 +97,9 @@
 DISTFILES?=	xorg-server-${PORTVERSION}.tar.bz2
 WRKSRC=		${WRKDIR}/xorg-server-${PORTVERSION}
 USES+=	pathfix
+XORG_SERVER_FONTPATH=	catalogue:${LOCALBASE}/etc/X11/fontpath.d/
 CONFIGURE_ARGS+=	--with-xkb-path=${LOCALBASE}/share/X11/xkb \
-					--with-fontrootdir=${LOCALBASE}/share/fonts
+			--with-default-font-path="${XORG_SERVER_FONTPATH}"

 LIB_PC_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/dri.pc:${PORTSDIR}/graphics/dri
 USE_XORG+=	pciaccess xextproto videoproto fontsproto dri2proto fontutil:build
Index: x11-servers/xorg-nestserver/Makefile
===================================================================
--- x11-servers/xorg-nestserver/Makefile	(revision 397466)
+++ x11-servers/xorg-nestserver/Makefile	(working copy)
@@ -3,7 +3,7 @@

 PORTNAME=	xorg-nestserver
 PORTVERSION=	1.14.7
-PORTREVISION=	2
+PORTREVISION=	3
 PORTEPOCH=	1
 CATEGORIES=	x11-servers
 MASTER_SITES=	XORG/individual/xserver
@@ -40,7 +40,7 @@
 		--disable-vbe \
 		--disable-vgahw \
 		--disable-xvfb \
-		--with-fontrootdir=${PREFIX}/share/fonts
+		--with-default-font-path="${XORG_SERVER_FONTPATH}"

 USE_XORG=	x11 xf86driproto glproto randrproto renderproto fixesproto \
 		damageproto xcmiscproto xextproto xf86miscproto inputproto \
Index: x11-servers/xorg-server/Makefile
===================================================================
--- x11-servers/xorg-server/Makefile	(revision 397466)
+++ x11-servers/xorg-server/Makefile	(working copy)
@@ -3,7 +3,7 @@

 PORTNAME?=	xorg-server
 PORTVERSION=	1.14.7
-PORTREVISION?=	6
+PORTREVISION?=	7
 PORTEPOCH?=	1
 CATEGORIES=	x11-servers
 MASTER_SITES=	XORG/individual/xserver
Index: x11-servers/xorg-vfbserver/Makefile
===================================================================
--- x11-servers/xorg-vfbserver/Makefile	(revision 397466)
+++ x11-servers/xorg-vfbserver/Makefile	(working copy)
@@ -3,7 +3,7 @@

 PORTNAME=	xorg-vfbserver
 PORTVERSION=	1.14.7
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	x11-servers
 MASTER_SITES=	XORG/individual/xserver
@@ -40,7 +40,7 @@
 		--disable-vbe \
 		--disable-vgahw \
 		--enable-xvfb \
-		--with-fontrootdir=${PREFIX}/share/fonts
+		--with-default-font-path="${XORG_SERVER_FONTPATH}"

 USE_XORG=	pixman x11 fixesproto damageproto xcmiscproto xtrans \
 		bigreqsproto randrproto renderproto xextproto inputproto \

----Next_Part(Mon_Sep_21_08_47_45_2015_263)----

----Security_Multipart0(Mon_Sep_21_08_47_45_2015_369)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlX/RaEACgkQTyzT2CeTzy0CTQCgqen2m6vkxCwdaMV/S5caS6AP
JSEAn0dKW5iFK0eeTUhO6ynkIoa3ICZi
=Zx36
-----END PGP SIGNATURE-----

----Security_Multipart0(Mon_Sep_21_08_47_45_2015_369)----



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