Subject: pkg/16296: xpdf-1.00nb1 depending on freetype2 and including v1
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Weber <Ephaeton@gmx.net>
List: netbsd-bugs
Date: 04/11/2002 10:42:21
>Number:         16296
>Category:       pkg
>Synopsis:       xpdf-1.00nb1's sources try to include freetype1 includes instead of ft2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 11 01:43:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Martin Weber
>Release:        NetBSD 1.5ZC
>Organization:
	
>Environment:
	
	
System: NetBSD phaeton.entropie.net 1.5ZC NetBSD 1.5ZC (PHAETON) #0: Sun Apr 7 17:12:09 CEST 2002 root@phaeton.entropie.net:/usr/src/sys/arch/i386/compile/PHAETON i386
Architecture: i386
Machine: i386
>Description:
	xpdf-1.00nb1 is marked using freetype2, but in fact it (obviously) tries to include files
	coming only with freetype1. Furthermore the includes from the source does not fit very
	well with the include search directories added to the Makefile in /usr/obj/pkg/print/xpdf/work.i386/xpdf-1.00/xpdf.
	If the source tried to include freetype2 includes, it'd fail (should have to include freetype2/freetype/file.h,
	or the Makefile had to add .../.buildlink/include/freetype2 to the include search directories)
	I do not have the time to test whether the current xpdf builds sanely with freetype v. 1, but I guess
	it does, the old (xpdf-1.00) did, too...
	
>How-To-Repeat:
# pwd
/usr/obj/pkg/print/xpdf/work.i386/xpdf-1.00/xpdf
# grep freetype * | grep include
FTFont.cc:#include "freetype/internal/ftobjs.h"
FTFont.cc:#include "freetype/internal/cfftypes.h"
FTFont.cc:#include "freetype/internal/tttypes.h"
FTFont.h:#include <freetype/freetype.h>
TTFont.h:#include <freetype/freetype.h>
TTFont.h:#include <freetype/ftxpost.h>
TTFont.h:#include <freetype.h>
# grep CXXFLAGS Makefile
CXXFLAGS = -I/usr/obj/pkg/print/xpdf/work.i386/.buildlink/include -I/usr/obj/pkg/print/xpdf/work.i386/.buildlink/include -O2 -march=pentiumpro -march=pentiumpro -I/usr/pkg/share/x11-links/include -DHAVE_CONFIG_H -I.. -I$(GOOSRCDIR) -I$(LTKSRCDIR) -I$(srcdir)  -I/usr/pkg/share/x11-links/include  -I/usr/obj/pkg/print/xpdf/work.i386/.buildlink/include
# ls /usr/obj/pkg/print/xpdf/work.i386/.buildlink/include
X11/       freetype2/ t1lib.h@   t1libx.h@
# ls /usr/obj/pkg/print/xpdf/work.i386/.buildlink/include/freetype2
freetype/   ft2build.h@
# ls /usr/obj/pkg/print/xpdf/work.i386/.buildlink/include/freetype2/freetype/ftxpost.h
ls: /usr/obj/pkg/print/xpdf/work.i386/.buildlink/include/freetype2/freetype/ftxpost.h: No such file or directory
# cd /usr/pkgsrc/print/xpdf && make 

	
>Fix:

Imho make xpdf only depend on freetype1, but graphics/freetype doesn't seem to have a buildlink.mk,
and I don't have any idea how to produce one :)
	
>Release-Note:
>Audit-Trail:
>Unformatted: