Hello,

At Imagination Technologies (http://imgtec.com/) Dejan Latinovic has
found a solution to Debian bug #748232.

https://bugs.debian.org/748232

My NMU patch for belle-sip_1.3.0-1.1.dsc is below, at the end of this
message.

With the changes in the NMU patch belle-sip builds successfully on mips,
mipsel and amd64.

Regards,

Aníbal
--
Aníbal Monsalve Salazar <[email protected]>


debdiff belle-sip_1.3.0-1.dsc belle-sip_1.3.0-1.1.dsc
diff -Nru belle-sip-1.3.0/debian/changelog belle-sip-1.3.0/debian/changelog
--- belle-sip-1.3.0/debian/changelog    2014-04-18 01:36:10.000000000 +0100
+++ belle-sip-1.3.0/debian/changelog    2014-05-16 11:29:17.000000000 +0100
@@ -1,3 +1,13 @@
+belle-sip (1.3.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS mips.
+    Add increase-antlr-timeout.patch.
+    Patch by Dejan Latinovic <[email protected]>.
+    Closes: #748232.
+
+ -- Anibal Monsalve Salazar <[email protected]>  Fri, 16 May 2014 11:28:47 
+0100
+
 belle-sip (1.3.0-1) unstable; urgency=medium
 
   [ Felix Lechner ]
diff -Nru belle-sip-1.3.0/debian/patches/increase-antlr-timeout.patch 
belle-sip-1.3.0/debian/patches/increase-antlr-timeout.patch
--- belle-sip-1.3.0/debian/patches/increase-antlr-timeout.patch 1970-01-01 
01:00:00.000000000 +0100
+++ belle-sip-1.3.0/debian/patches/increase-antlr-timeout.patch 2014-05-16 
11:28:41.000000000 +0100
@@ -0,0 +1,40 @@
+From: Dejan Latinovic <[email protected]>
+Subject: fix for belle-sip
+Date: Thu, 15 May 2014 03:06:58 -0700
+
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748232
+
+package belle-sip FTBFS on
+mips, hurd-i386 and sparc with an error:
+
+> error(10):  internal error: 
org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1279): could not even do 
k=1 for decision 157; reason: timed out (>1000ms)
+> 
+> error(10):  internal error: ./belle_sip_message.g : 
java.lang.NullPointerException
+
+I tested it on our local MIPS boards,
+the same error appeared on Cavium boards for mips and mipsel.
+
+In order to avoid this error I created a patch that increases
+antlr3 conversion timeout.
+
+With this patch I was able to successfully build belle-sip
+on Cavium boards.
+
+--- a/src/grammars/Makefile.am 2014-02-05 10:45:57.000000000 +0000
++++ b/src/grammars/Makefile.am 2014-05-13 15:23:46.000000000 +0000
+@@ -12,13 +12,13 @@
+       
+ .NOTPARALLEL  $(builddir)/belle_sip_messageParser.c 
$(builddir)/belle_sip_messageParser.h \
+                               $(builddir)/belle_sip_messageLexer.c 
$(builddir)/belle_sip_messageLexer.h  : belle_sip_message.g 
+-      $(ANTLR)  -make -Xmultithreaded  -fo  $(builddir) 
$(srcdir)/belle_sip_message.g
++      $(ANTLR)  -make -Xmultithreaded -Xconversiontimeout 10000  -fo  
$(builddir) $(srcdir)/belle_sip_message.g
+ 
+ .NOTPARALLEL  $(builddir)/belle_sdpLexer.c \
+                               $(builddir)/belle_sdpParser.c \
+                               $(builddir)/belle_sdpLexer.h \
+                               $(builddir)/belle_sdpParser.h : 
$(srcdir)/belle_sdp.g
+-      $(ANTLR)  -make -Xmultithreaded  -fo $(builddir)  $<
++      $(ANTLR)  -make -Xmultithreaded  -Xconversiontimeout 10000 -fo 
$(builddir)  $<
+ 
+ 
+ AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src 
diff -Nru belle-sip-1.3.0/debian/patches/series 
belle-sip-1.3.0/debian/patches/series
--- belle-sip-1.3.0/debian/patches/series       2014-02-20 23:46:48.000000000 
+0000
+++ belle-sip-1.3.0/debian/patches/series       2014-05-15 11:49:43.000000000 
+0100
@@ -0,0 +1 @@
+increase-antlr-timeout.patch

Attachment: signature.asc
Description: Digital signature

Reply via email to