NetBSD Problem Report #50280
From tsutsui@ceres.dti.ne.jp Sun Sep 27 01:46:34 2015
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id E97A6A5864
for <gnats-bugs@gnats.NetBSD.org>; Sun, 27 Sep 2015 01:46:33 +0000 (UTC)
Message-Id: <201509270146.t8R1kUor004116@mirage.localdomain>
Date: Sun, 27 Sep 2015 10:46:30 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: fonts/unifont does not create fonts.dir index files
X-Send-Pr-Version: 3.95
>Number: 50280
>Category: pkg
>Synopsis: fonts/unifont does not create fonts.dir index files
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 27 01:50:00 +0000 2015
>Closed-Date: Sun Oct 18 10:07:41 +0000 2015
>Last-Modified: Sun Oct 18 10:07:41 +0000 2015
>Originator: Izumi Tsutsui
>Release: NetBSD 7.0
>Organization:
>Environment:
System: NetBSD optiplex 7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64
Architecture: x86_64
Machine: amd64
>Description:
fonts/unifont doesn't create fonts.dir files etc.
(i.e. it doesn't execute mkfontsdir or ttmkfdir etc.)
after installation.
>How-To-Repeat:
# (cd /usr/pkgsrc/fonts/unifont && make package-install)
# ls -l /usr/pkg/share/fonts/X11/misc/
total 4192
-rw-r--r-- 1 root wheel 1359487 Jun 29 11:39 unifont.pcf.gz
-rw-r--r-- 1 root wheel 1370277 Jun 29 11:39 unifont_csur.pcf.gz
-rw-r--r-- 1 root wheel 1440177 Jun 29 11:39 unifont_sample.pcf.gz
# ls -l /usr/pkg/share/fonts/X11/misc/fonts.dir
ls: /usr/pkg/share/fonts/X11/misc/fonts.dir: No such file or directory
# ls -l /usr/pkg/share/fonts/X11/efont/fonts.dir
-rw-r--r-- 1 root wheel 2881 Sep 27 03:37 /usr/pkg/share/fonts/X11/efont/fonts.dir
#
>Fix:
Add proper FONTS, FONTSDIR, and FONTS_DIRS.x11 definitions
in unifont/Makefile as fonts/efont/Makefile etc?
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 29 Sep 2015 08:08:43 +0000
State-Changed-Why:
Please update pkgsrc and try again.
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50280 CVS commit: pkgsrc/fonts/unifont
Date: Tue, 29 Sep 2015 08:08:26 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Tue Sep 29 08:08:25 UTC 2015
Modified Files:
pkgsrc/fonts/unifont: Makefile
Log Message:
Add FONTS_DIRS.* variables for proper installation.
Addresses PR 50280 by tsutsui@
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/fonts/unifont/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: wiz@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/50280 (fonts/unifont does not create fonts.dir index files)
Date: Mon, 5 Oct 2015 23:12:54 +0900
Seems to work fine:
---
# pkg_add /cvs/netbsd/pkgsrc/fonts/unifont/work.i386/.packages/unifont-8.0.01nb1.tgz
unifont-8.0.01nb1: updating font database in /usr/pkg/share/fonts/X11/misc (x11)
unifont-8.0.01nb1: updating font database in /usr/pkg/share/fonts/truetype/unifont (ttf)
unifont-8.0.01nb1: updating font database in /usr/pkg/share/fonts/truetype/unifont (x11)
#
---
though I wonder it's better to have some MESSAGE to suggest
to add ${PREFIX}/share/fonts/truetype/ to font path
as fonts/efont-unicode/MESSAGE does
(and why not ${PREFIX}/share/fonts/X11/TTF/ as all other ttf fonts)..
---
Izumi Tsutsui
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50280 (fonts/unifont does not create fonts.dir index files)
Date: Mon, 5 Oct 2015 18:43:21 +0200
On Mon, Oct 05, 2015 at 02:15:01PM +0000, Izumi Tsutsui wrote:
> The following reply was made to PR pkg/50280; it has been noted by GNATS.
>
> From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
> To: gnats-bugs@NetBSD.org
> Cc: wiz@NetBSD.org, tsutsui@ceres.dti.ne.jp
> Subject: Re: pkg/50280 (fonts/unifont does not create fonts.dir index files)
> Date: Mon, 5 Oct 2015 23:12:54 +0900
>
> Seems to work fine:
> ---
> # pkg_add /cvs/netbsd/pkgsrc/fonts/unifont/work.i386/.packages/unifont-8.0.01nb1.tgz
> unifont-8.0.01nb1: updating font database in /usr/pkg/share/fonts/X11/misc (x11)
> unifont-8.0.01nb1: updating font database in /usr/pkg/share/fonts/truetype/unifont (ttf)
> unifont-8.0.01nb1: updating font database in /usr/pkg/share/fonts/truetype/unifont (x11)
> #
> ---
> though I wonder it's better to have some MESSAGE to suggest
> to add ${PREFIX}/share/fonts/truetype/ to font path
IMO that just adds noise. ${PREFIX}/share/fonts is the canonical
location for fonts from pkgsrc, it is what you should have if you want
to use fonts from pkgsrc.
> as fonts/efont-unicode/MESSAGE does
> (and why not ${PREFIX}/share/fonts/X11/TTF/ as all other ttf fonts)..
Right, it should really be in TTF.
Joerg
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: joerg@britannica.bec.de
Cc: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/50280 (fonts/unifont does not create fonts.dir index files)
Date: Tue, 6 Oct 2015 01:53:32 +0900
> > though I wonder it's better to have some MESSAGE to suggest
> > to add ${PREFIX}/share/fonts/truetype/ to font path
>
> IMO that just adds noise. ${PREFIX}/share/fonts is the canonical
> location for fonts from pkgsrc, it is what you should have if you want
> to use fonts from pkgsrc.
Then why don't you remove most of fonts/*/MESSAGE files
that suggest "xset fp+ foo" or "FontPath foo" etc?
---
Izumi Tsutsui
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 18 Oct 2015 10:07:41 +0000
State-Changed-Why:
confirmed fixed, thanks.
if there are other issues remaining with paths, please file a new PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.