Package: xfree86 Version: 4.2.1-2 Severity: normal Tags: patch Building XFree86 fails with the following error:
make[4]: Entering directory `/home/kalle/build/i386-pc-linux-gnu/Debian/xfree86-4.2.1/build-tree/xc/lib/Xft' flex -l xftlex.l sed 's/yy/XftConfig/g' lex.yy.c | sed 's/__REALLY_YY__/yy/' > xftlex.c && rm -f lex.yy.c bison -y -d xftgram.y xftgram.y:161.8-168.6: type clash (`' `ival') on default action xftgram.y:168.8: parse error, unexpected ":", expecting ";" or "|" xftgram.y:169.3-6: $$ of `matrix' has no declared type make[4]: *** [xftgram.c] Error 1 make[4]: Leaving directory `/home/kalle/build/i386-pc-linux-gnu/Debian/xfree86-4.2.1/build-tree/xc/lib/Xft' make[3]: *** [depend] Error 2 make[3]: Leaving directory `/home/kalle/build/i386-pc-linux-gnu/Debian/xfree86-4.2.1/build-tree/xc/lib' make[2]: *** [depend] Error 2 make[2]: Leaving directory `/home/kalle/build/i386-pc-linux-gnu/Debian/xfree86-4.2.1/build-tree/xc' make[1]: *** [World] Error 2 make[1]: Leaving directory `/home/kalle/build/i386-pc-linux-gnu/Debian/xfree86-4.2.1/build-tree/xc' make: *** [debian/stampdir/build] Error 2 The following patch makes Bison accept the file; I'll try to build XFree86 with it after I get a number for this bug.
--- xc/lib/Xft/xftgram.y.~1~ 2001-05-16 13:32:54.000000000 +0300 +++ xc/lib/Xft/xftgram.y 2002-10-12 18:46:16.000000000 +0300 @@ -165,6 +165,7 @@ matrix.yx = $4; matrix.__REALLY_YY__ = $5; } + ; number : INTEGER { $$ = (double) $1; } | DOUBLE
-- System Information Debian Release: testing/unstable Kernel Version: Linux Astalo 2.4.18-kon.astalo.1 #1 ke kesä 26 12:20:32 EEST 2002 i686 AMD Duron(tm) processor AuthenticAMD GNU/Linux Versions of the packages xfree86 build-depends on: ii dpkg 1.10.9 Package maintenance system for Debian ii flex 2.5.4a-27 A fast lexical analyzer generator. ii bison 1.50-2 A parser generator that is compatible with Y ii bsdmainutils 5.20020211-5 More utilities from FreeBSD. ii groff 1.18-4 GNU troff text-formatting system ii zlib1g-dev 1.1.4-3 compression library - development ^^^ (Provides virtual package libz-dev) ii libncurses5-de 5.2.20020112a- Developer's libraries and docs for ncurses ^^^ (Provides virtual package libncurses-dev) ii libpam0g-dev 0.76-4 Development files for PAM ^^^ (Provides virtual package libpam-dev) ii libfreetype6-d 2.1.2-5 FreeType 2 font engine, development files ii libpaperg 1.1.8 Library for handling paper characteristics ii tetex-bin 1.0.7+20011202 teTeX binary files ii debhelper 4.1.16 helper programs for debian/rules ii html2text 1.3.0.2-1 An advanced HTML to text converter. ii libglide2-dev 2001.01.26-1.1 development files for libglide2 ii libglide3-dev 2001.01.26-1.1 development files for libglide3 ii kernel-headers 2.4.18-5 Header files related to Linux kernel version ^^^ (Provides virtual package kernel-headers-2.4)