Package: happy Version: 1.15-1 Severity: minor Tags: patch
"man happy" says: -d, --debug Generate a parser that will print debugging information to stderr at run-time, including all the shifts, reductions, state transitions and token inputs performed by the parser. but "happy -d file.y" yields: Fail: /usr/lib/happy-1.15/HappyTemplate-debug: openFile: does not exist (No such file or directory) The attached patch seems to solve the problem. -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-2-k7 Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ISO-8859-1) Versions of packages happy depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libgmp3 4.1.4-6 Multiprecision arithmetic library -- no debconf information
diff -ru happy-1.15.orig/happy/templates/Makefile happy-1.15/happy/templates/Makefile --- happy-1.15.orig/happy/templates/Makefile 2004-10-27 13:29:21.000000000 +0200 +++ happy-1.15/happy/templates/Makefile 2005-09-06 22:39:47.337317231 +0200 @@ -7,6 +7,7 @@ TEMPLATES = \ HappyTemplate \ HappyTemplate-ghc \ + HappyTemplate-debug \ HappyTemplate-coerce \ HappyTemplate-arrays \ HappyTemplate-arrays-ghc \ @@ -58,6 +59,9 @@ HappyTemplate-arrays-coerce.hspp : $(GENERIC_TEMPLATE) $(CPP_IT) $@ -DHAPPY_GHC -DHAPPY_ARRAY -DHAPPY_COERCE $(GENERIC_TEMPLATE) +HappyTemplate-debug.hspp : $(GENERIC_TEMPLATE) + $(CPP_IT) $@ -DHAPPY_DEBUG $(GENERIC_TEMPLATE) + HappyTemplate-arrays-debug.hspp : $(GENERIC_TEMPLATE) $(CPP_IT) $@ -DHAPPY_ARRAY -DHAPPY_DEBUG $(GENERIC_TEMPLATE)