mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
3.6 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/avm/lyx/hotfix-binutils-gcc.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. Hotfix needed for new binutils (bug is in gcc)
  20. (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625)
  21. --- ./boost/boost/regex/detail/regex_match.hpp.orig 2003-02-20 17:02:07.000000000 +0100
  22. +++ ./boost/boost/regex/detail/regex_match.hpp 2005-06-14 12:11:03.000000000 +0200
  23. @@ -458,6 +458,10 @@
  24. ptr = ptr->next.p;
  25. break;
  26. }
  27. +
  28. +/* HACK! HACK! HACK! */
  29. +default: switch(ptr->type) {
  30. +
  31. case syntax_element_start_line:
  32. outer_line_check:
  33. if(first == temp_match[0].first)
  34. @@ -553,6 +557,10 @@
  35. }
  36. goto failure;
  37. }
  38. +
  39. +/* HACK! HACK! HACK! */
  40. +default: switch(ptr->type) {
  41. +
  42. case syntax_element_within_word:
  43. // both prev and this character must be traits::char_class_word:
  44. if(traits_inst.is_class(*first, traits::char_class_word))
  45. @@ -620,6 +628,10 @@
  46. // OK match:
  47. ptr = ptr->next.p;
  48. break;
  49. +
  50. +/* HACK! HACK! HACK! */
  51. +default: switch(ptr->type) {
  52. +
  53. case syntax_element_buffer_end:
  54. if((first != last) || (flags & match_not_eob))
  55. goto failure;
  56. @@ -662,6 +674,10 @@
  57. continue;
  58. }
  59. goto failure;
  60. +
  61. +/* HACK! HACK! HACK! */
  62. +default: switch(ptr->type) {
  63. +
  64. case syntax_element_jump:
  65. ptr = static_cast<const re_jump*>(ptr)->alt.p;
  66. continue;
  67. @@ -819,6 +835,10 @@
  68. while((first != last) && traits_inst.is_combining(traits_inst.translate(*first, icase)))++first;
  69. ptr = ptr->next.p;
  70. continue;
  71. +
  72. +/* HACK! HACK! HACK! */
  73. +default: switch(ptr->type) {
  74. +
  75. case syntax_element_soft_buffer_end:
  76. {
  77. if(flags & match_not_eob)
  78. @@ -838,6 +858,10 @@
  79. default:
  80. jm_assert(0); // should never get to here!!
  81. return false;
  82. +
  83. +/* HACK! HACK! HACK! */
  84. +} } } } }
  85. +
  86. }
  87. }
  88. @@ -860,6 +884,10 @@
  89. goto end_mark_jump;
  90. case syntax_element_start_line:
  91. goto outer_line_check;
  92. +
  93. +/* HACK! HACK! HACK! */
  94. +default: switch(ptr->type) {
  95. +
  96. case syntax_element_end_line:
  97. // we're at the end so *first is never valid:
  98. if((flags & match_not_eol) == 0)
  99. @@ -881,6 +909,10 @@
  100. }
  101. }
  102. goto failure;
  103. +
  104. +/* HACK! HACK! HACK! */
  105. +default: switch(ptr->type) {
  106. +
  107. case syntax_element_buffer_end:
  108. case syntax_element_soft_buffer_end:
  109. if(flags & match_not_eob)
  110. @@ -917,6 +949,10 @@
  111. continue;
  112. }
  113. goto failure; // neither option is possible
  114. +
  115. +/* HACK! HACK! HACK! */
  116. +default: switch(ptr->type) {
  117. +
  118. case syntax_element_rep:
  119. // if we're moving to a higher id (nested repeats etc)
  120. // zero out our accumualtors:
  121. @@ -959,6 +995,10 @@
  122. default:
  123. goto failure;
  124. }
  125. +
  126. +/* HACK! HACK! HACK! */
  127. +} } }
  128. +
  129. }
  130. failure: