Thu Dec 11 20:53:04 2008 UTC ()
Fix build with bison 2.4


(jmcneill)
diff -r1.1.1.1 -r1.2 pkgsrc/www/webkit-gtk/distinfo
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-ae

cvs diff -r1.1.1.1 -r1.2 pkgsrc/www/webkit-gtk/distinfo (expand / switch to unified diff)

--- pkgsrc/www/webkit-gtk/distinfo 2008/12/11 19:38:57 1.1.1.1
+++ pkgsrc/www/webkit-gtk/distinfo 2008/12/11 20:53:04 1.2
@@ -1,9 +1,10 @@ @@ -1,9 +1,10 @@
1$NetBSD: distinfo,v 1.1.1.1 2008/12/11 19:38:57 ahoka Exp $ 1$NetBSD: distinfo,v 1.2 2008/12/11 20:53:04 jmcneill Exp $
2 2
3SHA1 (WebKit-r35656.tar.bz2) = 38f403fb332cb445467a2bd9a3143ceefca784ff 3SHA1 (WebKit-r35656.tar.bz2) = 38f403fb332cb445467a2bd9a3143ceefca784ff
4RMD160 (WebKit-r35656.tar.bz2) = 729f5c7e2ef33b6c841d665c839ef6ee47efb71c 4RMD160 (WebKit-r35656.tar.bz2) = 729f5c7e2ef33b6c841d665c839ef6ee47efb71c
5Size (WebKit-r35656.tar.bz2) = 9273112 bytes 5Size (WebKit-r35656.tar.bz2) = 9273112 bytes
6SHA1 (patch-aa) = a89653a6cee06a6573fd8111c0dd35f887782337 6SHA1 (patch-aa) = a89653a6cee06a6573fd8111c0dd35f887782337
7SHA1 (patch-ab) = 19d9ac9a362a8c41025775bc60634dc1e5c3c28c 7SHA1 (patch-ab) = 19d9ac9a362a8c41025775bc60634dc1e5c3c28c
8SHA1 (patch-ac) = bea7fc5d165ca6720d06d068868a285890a1b8c9 8SHA1 (patch-ac) = bea7fc5d165ca6720d06d068868a285890a1b8c9
9SHA1 (patch-ad) = 4ed7d225a499dad3d35ae922a05953cdc7a5b62d 9SHA1 (patch-ad) = 4ed7d225a499dad3d35ae922a05953cdc7a5b62d
 10SHA1 (patch-ae) = 52fc990648792d95006e38e65a577b5808777be7

File Added: pkgsrc/www/webkit-gtk/patches/Attic/patch-ae
$NetBSD: patch-ae,v 1.1 2008/12/11 20:53:04 jmcneill Exp $

https://bugs.webkit.org/show_bug.cgi?id=22205

--- WebCore/css/CSSGrammar.y.orig	2008-08-08 00:50:53.000000000 -0400
+++ WebCore/css/CSSGrammar.y	2008-12-11 15:46:35.000000000 -0500
@@ -93,6 +93,8 @@
 
 %expect 48
 
+%nonassoc LOWEST_PREC
+
 %left UNIMPORTANT_TOK
 
 %token WHITESPACE SGML_CD
@@ -335,7 +337,7 @@
 
 closing_brace:
     '}'
-  | %prec maybe_sgml TOKEN_EOF
+  | %prec LOWEST_PREC TOKEN_EOF
   ;
 
 charset:
@@ -1323,10 +1325,10 @@
       $$.string = $1;
   }
   /* We might need to actually parse the number from a dimension, but we can't just put something that uses $$.string into unary_term. */
-  | DIMEN maybe_space { $$.id = 0; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_DIMENSION }
-  | unary_operator DIMEN maybe_space { $$.id = 0; $$.string = $2; $$.unit = CSSPrimitiveValue::CSS_DIMENSION }
+  | DIMEN maybe_space { $$.id = 0; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; }
+  | unary_operator DIMEN maybe_space { $$.id = 0; $$.string = $2; $$.unit = CSSPrimitiveValue::CSS_DIMENSION; }
   | URI maybe_space { $$.id = 0; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_URI; }
-  | UNICODERANGE maybe_space { $$.id = 0; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE }
+  | UNICODERANGE maybe_space { $$.id = 0; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_UNICODE_RANGE; }
   | hexcolor { $$.id = 0; $$.string = $1; $$.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; }
   | '#' maybe_space { $$.id = 0; $$.string = CSSParserString(); $$.unit = CSSPrimitiveValue::CSS_PARSER_HEXCOLOR; } /* Handle error case: "color: #;" */
   /* FIXME: according to the specs a function can have a unary_operator in front. I know no case where this makes sense */