From nobody@FreeBSD.org  Tue Jun 25 13:45:05 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id DC0DB1AE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Jun 2013 13:45:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id CCB521BE6
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Jun 2013 13:45:05 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5PDj5wW078943
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Jun 2013 13:45:05 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5PDj51o078942;
	Tue, 25 Jun 2013 13:45:05 GMT
	(envelope-from nobody)
Message-Id: <201306251345.r5PDj51o078942@oldred.freebsd.org>
Date: Tue, 25 Jun 2013 13:45:05 GMT
From: Dmitry Afanasiev <KOT@MATPOCKuH.Ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: x11-fonts/dejavu: fonts.dir and fonts.scale not generated by port
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179965
>Category:       ports
>Synopsis:       x11-fonts/dejavu: fonts.dir and fonts.scale not generated by port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 25 13:50:00 UTC 2013
>Closed-Date:    Wed Feb 12 16:35:13 UTC 2014
>Last-Modified:  Wed Feb 12 16:35:13 UTC 2014
>Originator:     Dmitry Afanasiev
>Release:        9.1
>Organization:
>Environment:
FreeBSD sunspot.elcom.spb.ru 9.1-STABLE FreeBSD 9.1-STABLE #24 r251990: Wed Jun 19 16:13:49 MSK 2013     root@sunspot:/usr/obj/usr/src/sys/sunspot  amd64
>Description:
fonts.dir is necessary to add to Xorg's FontPath:
# xset fp+ /usr/local/lib/X11/fonts/dejavu                 
xset:  bad font path element (#18), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax

fonts.dir can be generated by using x11-fonts/ttmkfdir:
ttmkfdir -o fonts.dir
>How-To-Repeat:
cd /usr/ports/x11-fonts/dejavu && make install clean
xset fp+ /usr/local/lib/X11/fonts/dejavu                 

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sunpoet 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jun 25 13:50:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179965 

From: Rostislav Krasny <rosti.bsd@gmail.com>
To: bug-followup@FreeBSD.org, KOT@MATPOCKuH.Ru
Cc:  
Subject: Re: ports/179965: x11-fonts/dejavu: fonts.dir and fonts.scale not
 generated by port
Date: Mon, 4 Nov 2013 18:26:07 +0200

 I experienced the same problem in 10.0-BETA2.
 I fixed it manually by running following commands as root within the
 dejavu fonts directory:
 
 fc-cache -fs
 mkfontscale
 mkfontdir
 
 The fc-cache probably not necessary. I just copied those commands from
 some web page found by Google.
 
 Unlike ttmkfdir all those commands don't need any additional package
 to be installed. At least in my case. They are part of other packages
 that are installed as dependencies of Xorg.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/179965: commit references a PR
Date: Wed, 12 Feb 2014 15:47:17 +0000 (UTC)

 Author: sunpoet
 Date: Wed Feb 12 15:47:09 2014
 New Revision: 343931
 URL: http://svnweb.freebsd.org/changeset/ports/343931
 QAT: https://qat.redports.org/buildarchive/r343931/
 
 Log:
   - Generate and install fonts.dir and fonts.scale
   - Bump PORTREVISION for package change
   
   PR:		ports/179965
   Submitted by:	Dmitry Afanasiev <KOT@MATPOCKuH.Ru>
 
 Modified:
   head/x11-fonts/dejavu/Makefile
   head/x11-fonts/dejavu/pkg-plist
 
 Modified: head/x11-fonts/dejavu/Makefile
 ==============================================================================
 --- head/x11-fonts/dejavu/Makefile	Wed Feb 12 15:25:20 2014	(r343930)
 +++ head/x11-fonts/dejavu/Makefile	Wed Feb 12 15:47:09 2014	(r343931)
 @@ -3,6 +3,7 @@
  
  PORTNAME=	dejavu
  PORTVERSION=	2.34
 +PORTREVISION=	1
  CATEGORIES=	x11-fonts
  MASTER_SITES=	SF
  DISTNAME=	${PORTNAME}-fonts-ttf-${PORTVERSION}
 @@ -10,13 +11,14 @@ DISTNAME=	${PORTNAME}-fonts-ttf-${PORTVE
  MAINTAINER=	sunpoet@FreeBSD.org
  COMMENT=	Bitstream Vera Fonts clone with a wider range of characters
  
 -BUILD_DEPENDS=	fc-cache:${PORTSDIR}/x11-fonts/fontconfig
 -RUN_DEPENDS:=	${BUILD_DEPENDS}
 +BUILD_DEPENDS=	${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
 +		${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
 +		${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
 +RUN_DEPENDS=	${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig
  
  OPTIONS_DEFINE=	DOCS LINKS
  LINKS_DESC=	Install links of configuration files in conf.d
  
 -NO_BUILD=	yes
  USE_BZIP2=	yes
  
  FCDIR=		${PREFIX}/${FCDIR_REL}
 @@ -37,10 +39,14 @@ PLIST_SUB+=	FCDIR_LINKS="${FCDIR_LINKS}"
  PLIST_SUB+=	FCDIR_LINKS="@comment "
  .endif
  
 +do-build:
 +	@cd ${WRKSRC}/ && ${LOCALBASE}/bin/mkfontscale
 +	@cd ${WRKSRC}/ && ${LOCALBASE}/bin/mkfontdir
 +
  do-install:
  	${MKDIR} ${STAGEDIR}${FCDIR}/ ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ ${STAGEDIR}${FONTSDIR}/
  	${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${STAGEDIR}${FCDIR}/
 -	${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
 +	${INSTALL_DATA} ${WRKSRC}/fonts.* ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
  .if ${PORT_OPTIONS:MDOCS}
  	${MKDIR} ${STAGEDIR}${DOCSDIR}/
  	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
 
 Modified: head/x11-fonts/dejavu/pkg-plist
 ==============================================================================
 --- head/x11-fonts/dejavu/pkg-plist	Wed Feb 12 15:25:20 2014	(r343930)
 +++ head/x11-fonts/dejavu/pkg-plist	Wed Feb 12 15:47:09 2014	(r343931)
 @@ -31,4 +31,6 @@
  %%FONTSDIR_REL%%/DejaVuSerifCondensed-BoldItalic.ttf
  %%FONTSDIR_REL%%/DejaVuSerifCondensed-Italic.ttf
  %%FONTSDIR_REL%%/DejaVuSerifCondensed.ttf
 +%%FONTSDIR_REL%%/fonts.dir
 +%%FONTSDIR_REL%%/fonts.scale
  @dirrm %%FONTSDIR_REL%%
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: sunpoet 
State-Changed-When: Wed Feb 12 16:35:12 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179965 
>Unformatted:
