NetBSD Problem Report #50902

From dholland@netbsd.org  Mon Mar  7 04:05:27 2016
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(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 F2E297ABDC
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  7 Mar 2016 04:05:26 +0000 (UTC)
Message-Id: <20160307040526.7CAE885EB6@mail.netbsd.org>
Date: Mon,  7 Mar 2016 04:05:26 +0000 (UTC)
From: dholland@NetBSD.org
Reply-To: dholland@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: fonts/fontforge build failure with native X11
X-Send-Pr-Version: 3.95

>Number:         50902
>Category:       xsrc
>Synopsis:       native X11 freetype doesn't install ftttdrv.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 07 04:10:00 +0000 2016
>Closed-Date:    Mon May 30 17:05:56 +0000 2016
>Last-Modified:  Mon May 30 17:05:56 +0000 2016
>Originator:     David A. Holland
>Release:        NetBSD 7.99.26 (20160304)
>Organization:
>Environment:
System: NetBSD macaran 7.99.26 NetBSD 7.99.26 (MACARAN) #35: Fri Mar  4 23:43:26 EST 2016  dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:

fontforge fails to build:
   In file included from freetype.c:28:0:
   fffreetype.h:35:31: fatal error: ftttdrv.h: No such file or directory
    # include FT_TRUETYPE_DRIVER_H
				  ^

This appears to be because the freetype2 in native X comes with
ftttdrv.h but doesn't, for some reason (probably oversight), actually
install it. This is a bug in native X (I assume) but we probably need
to work around it in pkgsrc, especially since it looks like it affects
-7. (-7's native X does not install ftttdrv.h, and the contents of
dist/ in xsrc do include ftttdrv.h, but it's not absolutely certain
without testing that the version of freetype will prompt fontforge to
try to use it.)

>How-To-Repeat:

make

>Fix:

dunno, probably a hack based on checking for NetBSD 7.x, native X, and
the nonexistence of the file is sufficient.

It would be helpful to get a firm confirmation on whether -7 is
affected... and also if -6 is affected.

And also, if there's any reason ftttdrv.h has been left off on purpose.

Once a pkgsrc workaround is in place, change the category to "xsrc"
and the synopsis to "native X11 freetype doesn't install ftttdrv.h",
and lower the severity. While I could file a separate PR for xsrc it
doesn't seem worthwhile.

>Release-Note:

>Audit-Trail:
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50902 CVS commit: pkgsrc/fonts/fontforge
Date: Mon, 7 Mar 2016 04:43:55 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Mon Mar  7 04:43:55 UTC 2016

 Added Files:
 	pkgsrc/fonts/fontforge: hacks.mk

 Log Message:
 Add hack for build failure with native X11 on NetBSD 7.x and -current,
 the symptom being that ftttdrv.h (from freetype2) is not found. It
 turns out that native X11 doesn't install ftttdrv.h for some reason
 (probably an oversight) but that the lack is easily compensated
 because the whole file contains only two substantive lines, neither of
 which appears to be especially important.

 PR 50902.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/fonts/fontforge/hacks.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: pkg-manager->xsrc-manager
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Mon, 07 Mar 2016 04:55:52 +0000
Responsible-Changed-Why:
a pkgsrc workaround has been committed; now we should fix xsrc.


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: xsrc/50902 (native X11 freetype doesn't install ftttdrv.h)
Date: Mon, 7 Mar 2016 05:14:26 +0000

 On Mon, Mar 07, 2016 at 04:55:53AM +0000, dholland@NetBSD.org wrote:
  > Synopsis: native X11 freetype doesn't install ftttdrv.h
  > 
  > Responsible-Changed-From-To: pkg-manager->xsrc-manager
  > Responsible-Changed-By: dholland@NetBSD.org
  > Responsible-Changed-When: Mon, 07 Mar 2016 04:55:52 +0000
  > Responsible-Changed-Why:
  > a pkgsrc workaround has been committed; now we should fix xsrc.

 I haven't tried this yet but I expect it will do the trick, as long as
 there's no reason the file wasn't left off on purpose.

 Index: external/mit/xorg/lib/freetype/freetype/Makefile
 ===================================================================
 RCS file: /cvsroot/src/external/mit/xorg/lib/freetype/freetype/Makefile,v
 retrieving revision 1.20
 diff -u -r1.20 Makefile
 --- Makefile	20 Jul 2015 04:10:40 -0000	1.20
 +++ Makefile	7 Mar 2016 05:11:52 -0000
 @@ -13,7 +13,7 @@
  	ftglyph.h ftgxval.h ftgzip.h ftimage.h ftincrem.h ftlcdfil.h ftlist.h \
  	ftlzw.h ftmac.h ftmm.h ftmodapi.h ftmoderr.h ftotval.h ftoutln.h \
  	ftpfr.h ftrender.h ftsizes.h ftsnames.h ftstroke.h ftsynth.h \
 -	ftsystem.h fttrigon.h fttypes.h ftwinfnt.h \
 +	ftsystem.h fttrigon.h ftttdrv.h fttypes.h ftwinfnt.h \
  	t1tables.h ttnameid.h tttables.h tttags.h ttunpat.h \
  	ftautoh.h ftcffdrv.h ft2build.h

 Index: distrib/sets/lists/xcomp/mi
 ===================================================================
 RCS file: /cvsroot/src/distrib/sets/lists/xcomp/mi,v
 retrieving revision 1.175
 diff -u -r1.175 mi
 --- xcomp/mi	13 Oct 2015 03:32:28 -0000	1.175
 +++ xcomp/mi	7 Mar 2016 05:12:34 -0000
 @@ -5783,6 +5783,7 @@
  ./usr/X11R7/include/freetype2/ftsystem.h		-unknown-	xorg
  ./usr/X11R7/include/freetype2/ftfntfmt.h		-unknown-	xorg
  ./usr/X11R7/include/freetype2/fttrigon.h		-unknown-	xorg
 +./usr/X11R7/include/freetype2/ftttdrv.h			-unknown-	xorg
  ./usr/X11R7/include/freetype2/fttypes.h			-unknown-	xorg
  ./usr/X11R7/include/freetype2/ftwinfnt.h		-unknown-	xorg
  ./usr/X11R7/include/freetype2/ftxf86.h			-unknown-	obsolete


 -- 
 David A. Holland
 dholland@netbsd.org

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: xsrc-manager@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org, dholland@NetBSD.org
Subject: re: xsrc/50902 (native X11 freetype doesn't install ftttdrv.h)
Date: Tue, 08 Mar 2016 01:14:50 +1100

 >  I haven't tried this yet but I expect it will do the trick, as long as
 >  there's no reason the file wasn't left off on purpose.

 no reason i can think of.

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50902 CVS commit: src
Date: Mon, 21 Mar 2016 05:23:39 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Mon Mar 21 05:23:39 UTC 2016

 Modified Files:
 	src/distrib/sets/lists/xcomp: mi
 	src/external/mit/xorg/lib/freetype/freetype: Makefile

 Log Message:
 Install ftttdrv.h, which was apparently overlooked at some point
 (probably because it contains little of substance...) PR 50902.


 To generate a diff of this commit:
 cvs rdiff -u -r1.175 -r1.176 src/distrib/sets/lists/xcomp/mi
 cvs rdiff -u -r1.20 -r1.21 \
     src/external/mit/xorg/lib/freetype/freetype/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 30 May 2016 17:05:56 +0000
State-Changed-Why:
I committed the fix in march


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.