==> "mf" == Michael Fratoni <mfratoni@tuxfan.homeip.net> writes: mf> Try building it as root. I haven't looked into much yet, but mf> freetype fails to build if you are building the rpms in a mf> non-root environment (It fails here at any rate on a clean mf> install.). Read the following: http://freshrpms.net/docs/fight.html Running rpm as root is unwise, unless you blindly trust the .spec file author. mf> It looks as some of the libraries don't get mf> installed, which causes the build to fail when processing the mf> %files section of the spec file. mf> The errors I get: RPM build errors: File not found by glob: mf> /home/mfratoni/rpmbuild/tmp/freetype-2.1.2-root/usr/lib/libttf.so.* mf> File not found: mf> /home/mfratoni/rpmbuild/tmp/freetype-2.1.2-root/usr/lib/libttf.so mf> As root, it builds fine, with only a warning: warning: mf> Installed (but unpackaged) file(s) found: mf> /usr/share/aclocal/freetype2.m4 I've attached the patch I made to freetype.spec. I enabled anti- aliasing for ft1 and ft2, and picked up the missing files. I also noticed that I needed to set my '--target' in rpm to i386-redhat-linux-gnu or something else that included '-gnu' so that the configure scripts properly knew to build shared libraries (like, libttf.so). I'm not sure the results are satisfactory -- it appears to be over- aliasing some of the glyphs (lowercase 'k' being an example). Carl
--- freetype.spec.orig 2002-11-01 08:27:26.000000000 -0800 +++ freetype.spec 2002-10-29 09:46:24.000000000 -0800 @@ -1,6 +1,6 @@ # Disables freetype 1 and 2 bytecode interpreter. Setting to 0 enables # the bytecode interpreter in both freetype 1 and 2. -%define without_bytecode_interpreter 1 +%define without_bytecode_interpreter 0 %define ft1 freetype-pre1.4 @@ -13,7 +13,7 @@ Summary: A free and portable TrueType font rendering engine. Name: freetype Version: 2.1.2 -Release: 7 +Release: 7.ursus.1 License: GPL Group: System Environment/Libraries URL: http://www.freetype.org @@ -108,7 +108,9 @@ %if ! %{without_bytecode_interpreter} %patch20 -p0 -b .enable-ft2-bci -%else +%endif + +%if %{without_bytecode_interpreter} %patch21 -p0 -b .disable-ft1-bci %endif @@ -232,6 +234,8 @@ %{_libdir}/libfreetype.so %{_bindir}/freetype-config +%{_datadir}/aclocal/freetype2.m4 + %changelog * Wed Aug 28 2002 Owen Taylor <otaylor@redhat.com> - Fix a bug with PCF metrics