ftjam-2.5.3-i-hate-yacc.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. diff -Naurp ftjam-2.5.3rc2-orig/Jambase ftjam-2.5.3rc2/Jambase
  2. --- ftjam-2.5.3rc2-orig/Jambase 2007-06-05 08:20:19.000000000 -0600
  3. +++ ftjam-2.5.3rc2/Jambase 2008-07-21 19:26:02.000000000 -0600
  4. @@ -813,7 +813,7 @@ else if $(UNIX)
  5. LINKLIBS ?= ;
  6. OPTIM ?= -O ;
  7. RANLIB ?= ranlib ;
  8. - YACC ?= yacc ;
  9. + YACC ?= bison -y ;
  10. YACCGEN ?= .c ;
  11. YACCFILES ?= y.tab ;
  12. YACCFLAGS ?= -d ;
  13. @@ -882,10 +882,10 @@ DC ?= dmd ;
  14. SUFLIB ?= .a ;
  15. SUFOBJ ?= .o ;
  16. UNDEFFLAG ?= "-u _" ;
  17. - YACC ?= ;
  18. - YACCGEN ?= ;
  19. - YACCFILES ?= ;
  20. - YACCFLAGS ?= ;
  21. + YACC ?= bison -y ;
  22. + YACCGEN ?= .c ;
  23. + YACCFILES ?= y.tab ;
  24. + YACCFLAGS ?= -d ;
  25. HDRPATTERN =
  26. "^[ ]*#[ ]*include[ ]*[<\"]([^\">]*)[\">].*$" ;
  27. diff -Naurp ftjam-2.5.3rc2-orig/jambase.c ftjam-2.5.3rc2/jambase.c
  28. --- ftjam-2.5.3rc2-orig/jambase.c 2007-06-05 08:31:08.000000000 -0600
  29. +++ ftjam-2.5.3rc2/jambase.c 2008-07-21 19:27:55.000000000 -0600
  30. @@ -632,7 +632,7 @@ const char *jambase[] = {
  31. "LINKLIBS ?= ;\n",
  32. "OPTIM ?= -O ;\n",
  33. "RANLIB ?= ranlib ;\n",
  34. -"YACC ?= yacc ;\n",
  35. +"YACC ?= bison -y ;\n",
  36. "YACCGEN ?= .c ;\n",
  37. "YACCFILES ?= y.tab ;\n",
  38. "YACCFLAGS ?= -d ;\n",
  39. @@ -695,10 +695,10 @@ const char *jambase[] = {
  40. "SUFLIB ?= .a ;\n",
  41. "SUFOBJ ?= .o ;\n",
  42. "UNDEFFLAG ?= \"-u _\" ;\n",
  43. -"YACC ?= ;\n",
  44. -"YACCGEN ?= ;\n",
  45. -"YACCFILES ?= ;\n",
  46. -"YACCFLAGS ?= ;\n",
  47. +"YACC ?= bison -y ;\n",
  48. +"YACCGEN ?= .c ;\n",
  49. +"YACCFILES ?= y.tab ;\n",
  50. +"YACCFLAGS ?= -d ;\n",
  51. "\n",
  52. "HDRPATTERN =\n",
  53. "\"^[ ]*#[ ]*include[ ]*[<\\\"]([^\\\">]*)[\\\">].*$\" ;\n",