pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44342: pkgsrc: fix ragel build



>Number:         44342
>Category:       pkg
>Synopsis:       pkgsrc: fix ragel build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 07 21:15:00 +0000 2011
>Originator:     Michael Wildpaner
>Release:        pkgsrc-2010Q3
>Organization:
>Environment:
Linux eowyn 2.6.32-24-server #41-Ubuntu SMP Thu Aug 19 02:47:08 UTC 2010 x86_64 
GNU/Linux
>Description:
The compile of devel/ragel fails due to constness of the strrchr return value
on gcc-4.4.3 / Linux.
>How-To-Repeat:
Build devel ragel with gcc-4.4.3 (this was tested on Ubuntu Lucid).
>Fix:
cvs diff: Diffing devel/ragel
Index: devel/ragel/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ragel/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- devel/ragel/distinfo        21 Aug 2009 03:21:05 -0000      1.3
+++ devel/ragel/distinfo        7 Jan 2011 21:04:47 -0000
@@ -3,3 +3,4 @@
 SHA1 (ragel-6.5.tar.gz) = 7bc2cd5fb40d00e71e1d37a6d4d69c83c67f983f
 RMD160 (ragel-6.5.tar.gz) = 162af80f2fdaeb43dc2ce98b1834b17156f27e9f
 Size (ragel-6.5.tar.gz) = 973457 bytes
+SHA1 (patch-aa) = a514c71d5485ae8bda4b60652aa6861834a49b33
cvs diff: Diffing devel/ragel/patches
Index: devel/ragel/patches/patch-aa
===================================================================
RCS file: devel/ragel/patches/patch-aa
diff -N devel/ragel/patches/patch-aa
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ devel/ragel/patches/patch-aa        7 Jan 2011 21:04:47 -0000
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- ragel/main.cpp.orig        2009-03-22 15:57:18.000000000 +0000
++++ ragel/main.cpp
+@@ -336,7 +336,7 @@ void processArgs( int argc, const char *
+                               printStatistics = true;
+                               break;
+                       case '-': {
+-                              char *eq = strchr( pc.paramArg, '=' );
++                              char *eq = (char*) strchr( pc.paramArg, '=' );
+ 
+                               if ( eq != 0 )
+                                       *eq++ = 0;
+@@ -507,7 +507,7 @@ char *makeIntermedTemplate( const char *
+ {
+       char *result = 0;
+       const char *templ = "ragel-XXXXXX.xml";
+-      char *lastSlash = strrchr( baseFileName, '/' );
++      const char *lastSlash = strrchr( baseFileName, '/' );
+       if ( lastSlash == 0 ) {
+               result = new char[strlen(templ)+1];
+               strcpy( result, templ );



Home | Main Index | Thread Index | Old Index