From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#30655: xset(1) not accepting symlink to font path Date: Thu, 01 Mar 2018 20:47:02 +0300 Message-ID: <87vaefwuw9.fsf@gmail.com> References: <20180228225429.09cd9fd8@jasniac.instanton> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erSJJ-00049C-EY for bug-guix@gnu.org; Thu, 01 Mar 2018 12:48:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erSJG-0007XJ-25 for bug-guix@gnu.org; Thu, 01 Mar 2018 12:48:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59917) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erSJF-0007XA-Ui for bug-guix@gnu.org; Thu, 01 Mar 2018 12:48:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1erSJF-0007m8-KG for bug-guix@gnu.org; Thu, 01 Mar 2018 12:48:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180228225429.09cd9fd8@jasniac.instanton> (Marco van Hulten's message of "Wed, 28 Feb 2018 22:54:29 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Marco van Hulten Cc: 30655@debbugs.gnu.org Marco van Hulten (2018-02-28 22:54 +0100) wrote: > Hello, > > When I follow the manual at > https://www.gnu.org/software/guix/manual/html_node/Application-Setup.html#X11-Fonts , > I get the message that there is something wrong with the directory I'm > trying to add it: > > > gast@graviton ~$ xset +fp ~/.guix-profile/share/fonts/truetype > xset: bad font path element (#0), possible causes are: > Directory does not exist or has wrong permissions > Directory missing fonts.dir > Incorrect font server address or syntax > gast@graviton ~$ ls -l ~/.guix-profile/share/fonts/truetype/fonts.dir > lrwxrwxrwx 2 root root 84 Jan 1 1970 > /home/gast/.guix-profile/share/fonts/truetype/fonts.dir -> > /gnu/store/5kp6hj8mk6pgfl4x3cgabl7z379jyyrl-fonts-dir/share/fonts/truetype/fonts.dir > gast@graviton ~$ xset +fp /gnu/store/5kp6hj8mk6pgfl4x3cgabl7z379jyyrl-fonts-dir/share/fonts/truetype > > > The last command exits with code 0. Apparently, xset(1) does not want > me to add symlink(2)s that point to valid directories. Sounds familiar. I recall I dealt with this problem some time ago. In short, it was introduced by one of the dependencies of X server (libXfont): https://cgit.freedesktop.org/xorg/lib/libXfont/commit/?id=7b377456f95d2ec3ead40f4fb74ea620191f88c8 X server allowed to use symlinks for fonts before that commit, but not anymore. I fixed it on my side simply by making 'my-xorg-server' package that uses a "fixed" version of libxfont (that supports symlinks). If anyone is interested, I also wrote a descriptive commit message here: https://notabug.org/alezost/guix-config/commit/161d5e2e36e53c0d9c46181e10e1595e607748dd -- Alex