From owner-freebsd-x11@freebsd.org Sun Sep 20 23:49:29 2015 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9511CA06902 for ; Sun, 20 Sep 2015 23:49:29 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 709531B30 for ; Sun, 20 Sep 2015 23:49:29 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6DCEBA068FE; Sun, 20 Sep 2015 23:49:29 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D56BA068FD for ; Sun, 20 Sep 2015 23:49:29 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.allbsd.org", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 486161B2E; Sun, 20 Sep 2015 23:49:28 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from alph.d.allbsd.org (alph.d.allbsd.org [IPv6:2001:2f0:104:e010:862b:2bff:febc:8956] (may be forged)) (authenticated bits=56) by mail.allbsd.org (8.14.9/8.14.9) with ESMTP id t8KNnDOd078922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 21 Sep 2015 08:49:14 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.d.allbsd.org (8.15.2/8.14.9) with ESMTPA id t8KNnB3t033111; Mon, 21 Sep 2015 08:49:13 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Mon, 21 Sep 2015 08:47:45 +0900 (JST) Message-Id: <20150921.084745.896970510291124655.hrs@allbsd.org> To: x11@FreeBSD.org Subject: problems when catalogue:fontpath.d/ as the default font path? From: Hiroki Sato X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart0(Mon_Sep_21_08_47_45_2015_369)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.6 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mail.allbsd.org [IPv6:2001:2f0:104:e001::32]); Mon, 21 Sep 2015 08:49:20 +0900 (JST) X-Spam-Status: No, score=-98.0 required=13.0 tests=CONTENT_TYPE_PRESENT, RCVD_IN_AHBL, RCVD_IN_AHBL_PROXY, RCVD_IN_AHBL_SPAM, RDNS_NONE, USER_IN_WHITELIST autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on gatekeeper.allbsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2015 23:49:29 -0000 ----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)----