Bug 79619

Summary: Firefox port needs to list Freetype 2.1.9 as a dependency
Product: Ports & Packages Reporter: tedm <tedm>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description tedm 2005-04-07 11:10:03 UTC
	

During installation of FreeBSD 4.11-RELEASE if you select to install Xfree it installs Freetype 2.1.7.
This version of Freetype is too old for the current port of Firefox.  If you install the FreeBSD ports
then do a cvsup to get the ports to the current level (which is necessary to build Firefox)
then when you install Firefox it will use the existing Freetype and the compilation of Firefox
will abort with the error messages:

FontMetricsPS.cpp: In method `nsresult nsFontPSFreeType::Init(nsITrueTypeFontCatalogEntry *, nsPSFontGenerator *)':
nsFontMetricsPS.cpp:1144: `struct FTC_ImageTypeRec_' has no member named `face_id'
nsFontMetricsPS.cpp:1145: `struct FTC_ImageTypeRec_' has no member named `width'
nsFontMetricsPS.cpp:1146: `struct FTC_ImageTypeRec_' has no member named `height'
nsFontMetricsPS.cpp: In method `struct FT_FaceRec_ * nsFontPSFreeType::getFTFace()':
nsFontMetricsPS.cpp:1231: `struct FTC_ImageTypeRec_' has no member named `face_id'
nsFontMetricsPS.cpp: In method `void nsFT2Type8Generator::GeneratePSFont(FILE *)':
nsFontMetricsPS.cpp:1625: `struct FTC_ImageTypeRec_' has no member named `face_id'
nsFontMetricsPS.cpp:1627: `struct FTC_ImageTypeRec_' has no member named `width'
nsFontMetricsPS.cpp:1628: `struct FTC_ImageTypeRec_' has no member named `height'
nsFontMetricsPS.cpp:1633: `struct FTC_ImageTypeRec_' has no member named `face_id'
gmake[4]: *** [nsFontMetricsPS.o] Error 1
gmake[4]: Leaving directory `/usr/ports/www/firefox/work/mozilla/gfx/src/ps'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/gfx/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/gfx'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla'
gmake: *** [default] Error 2
*** Error code 2


This was noticed on PR amd64/78913. but nobody checked to see if the newer version
of Freetype was installed under FreeBSD 4.11 RELEASE.  A dependency on Freetype2 2.1.9 needs to be
used to the Firefox port.  Here is the current dependency list, as you can see it lists the
older version of Freetype:

tedsbsddesk# pkg_info -r firefox-1.0.2,1
Information for firefox-1.0.2,1:

Depends on:
Dependency: jpeg-6b_3
Dependency: expat-1.95.8
Dependency: libiconv-1.9.2_1
Dependency: png-1.2.8
Dependency: pkgconfig-0.15.0_1
Dependency: gettext-0.14.1
Dependency: glib-2.6.3_1
Dependency: tiff-3.7.1_2
Dependency: libxml2-2.6.18
Dependency: freetype2-2.1.7_4
Dependency: fontconfig-2.2.3,1
Dependency: lcms-1.14,1
Dependency: libmng-1.0.8
Dependency: XFree86-libraries-4.4.0_3
Dependency: popt-1.7
Dependency: bitstream-vera-1.10
Dependency: libXft-2.1.6
Dependency: shared-mime-info-0.15_9
Dependency: freetype2-2.1.9
Dependency: hicolor-icon-theme-0.5
Dependency: libIDL-0.8.5_1
Dependency: XFree86-fontEncodings-4.4.0
Dependency: desktop-file-utils-0.10_2
Dependency: gnomehier-2.0_6
Dependency: atk-1.9.1
Dependency: XFree86-fontScalable-4.4.0_1
Dependency: pango-1.8.1
Dependency: gtk-2.6.4_1

Fix: 

Temporary workaround:

After cvsupdating ports, cd /usr/ports/print/freetype2 and issue "make "FORCE_PKG_REGISTER=YES" install"
Comment 1 Michael Johnson freebsd_committer freebsd_triage 2005-04-07 11:36:05 UTC
State Changed
From-To: open->closed

Your ports must've been out of date when you first installed freetype and 
you should use portupgrade or mannaully upgrade freetype. 
Please don't 'make install FORCE_PKG_REGISTER' to try to fix a problem. You are more than likely to run in to problems down the road.