OpenSDE Packages Database (without history before r20070)
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.

59 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gfs2-utils/gfs2-utils-0001-bison26.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 110117a426f1edc0c3110a7776f10db186bc6f7d Mon Sep 17 00:00:00 2001
  17. From: Andrew Price <anprice@redhat.com>
  18. Date: Wed, 14 Nov 2012 12:22:03 +0000
  19. Subject: libgfs2: Fix build with bison 2.6
  20. Bison 2.6 adds a prototype for yyparse in the generated parser.h,
  21. creating a circular dependency between lexer.{c.h} and parser.h.
  22. This patch adds a typedef which breaks the cycle and allows libgfs2 to
  23. build with bison 2.6 again.
  24. It also fixes a race between libgfs2.la and gfs2l by clarifying gfs2l's
  25. dependency on libgfs2.la.
  26. Signed-off-by: Andrew Price <anprice@redhat.com>
  27. ---
  28. diff --git a/gfs2/libgfs2/Makefile.am b/gfs2/libgfs2/Makefile.am
  29. index 9c4e96b..b57f6d9 100644
  30. --- a/gfs2/libgfs2/Makefile.am
  31. +++ b/gfs2/libgfs2/Makefile.am
  32. @@ -23,7 +23,7 @@ libgfs2_la_CPPFLAGS = -D_FILE_OFFSET_BITS=64 \
  33. gfs2l_SOURCES = gfs2l.c
  34. gfs2l_CPPFLAGS = -I$(top_srcdir)/gfs2/include
  35. -gfs2l_LDADD = $(top_builddir)/gfs2/libgfs2/libgfs2.la
  36. +gfs2l_LDADD = libgfs2.la
  37. # Autotools can't handle header files output by flex so we have to generate it manually
  38. lexer.h: lexer.l
  39. diff --git a/gfs2/libgfs2/parser.y b/gfs2/libgfs2/parser.y
  40. index 084d15e..0321d74 100644
  41. --- a/gfs2/libgfs2/parser.y
  42. +++ b/gfs2/libgfs2/parser.y
  43. @@ -1,3 +1,7 @@
  44. +%code requires {
  45. +/* Required to break a circular dependency introduced with bison 2.6 */
  46. +typedef void* yyscan_t;
  47. +}
  48. %code top {
  49. #include <errno.h>
  50. #include "lang.h"
  51. --
  52. cgit v0.9.1