Package: libical
Version: 0.48-1
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu precise
Tags: patch

We are now carrying this in Ubuntu. The fix is committed upstream; you
may want to carry this until an upstream update.

debian/patches/fix_arm_ftbfs.patch:

From: Robie Basak <robie.ba...@canonical.com>
Subject: Fix libicalss parser for non-Intel architectures

The test suite fails on ARM and PowerPC because the libicalss lexer
performs unput(EOF) which is not permitted. On these architectures, this
gets interpreted as unput(255), creating an extra token which then
causes the parser to return a syntax error.

Instead, the lexer should just ignore EOF and not attempt to unput it.
The input stream will remain at EOF and the lexer will return an EOF as
the next token as needed.

Forwarded: 
https://sourceforge.net/tracker/?func=detail&aid=3517199&group_id=16077&atid=316077
Bug-Ubuntu: https://bugs.launchpad.net/bugs/979846
Last-Update: 2012-04-12

--- a/src/libicalss/icalsslexer.c
+++ b/src/libicalss/icalsslexer.c
@@ -936,7 +936,9 @@
 YY_RULE_SETUP
 {
        int c = input();
-       unput(c);
+       if (c != EOF) {
+               unput(c);
+       }
        if(c!='\''){
                sslval.v_string= icalmemory_tmp_copy(sstext);
                return STRING;
--- a/src/libicalss/icalsslexer.l
+++ b/src/libicalss/icalsslexer.l
@@ -111,7 +111,9 @@
 
 \'[\@\*A-Za-z0-9\-\.\:\ ]+\' {
        int c = input();
-       unput(c);
+       if (c != EOF) {
+               unput(c);
+       }
        if(c!='\''){
                sslval.v_string= icalmemory_tmp_copy(yytext);
                return STRING;

Attachment: signature.asc
Description: Digital signature

Reply via email to