<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[129772] trunk/dports/www/clearsilver</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/129772">129772</a></dd>
<dt>Author</dt> <dd>jmr@macports.org</dd>
<dt>Date</dt> <dd>2014-12-19 23:03:34 -0800 (Fri, 19 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>clearsilver: apply patches from freebsd and upstream to fix build, switch to python27, depend on a specific perl since it installs a module into a specific perl directory</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportswwwclearsilverPortfile">trunk/dports/www/clearsilver/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportswwwclearsilverfilespatchcgi__cgic">trunk/dports/www/clearsilver/files/patch-cgi__cgi.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchcgi__htmlc">trunk/dports/www/clearsilver/files/patch-cgi__html.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchcgi__rfc2388c">trunk/dports/www/clearsilver/files/patch-cgi__rfc2388.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchcs__csparsec">trunk/dports/www/clearsilver/files/patch-cs__csparse.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchcs__cstestc">trunk/dports/www/clearsilver/files/patch-cs__cstest.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__dictc">trunk/dports/www/clearsilver/files/patch-util__dict.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__neo_filesc">trunk/dports/www/clearsilver/files/patch-util__neo_files.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__neo_hashc">trunk/dports/www/clearsilver/files/patch-util__neo_hash.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__neo_hdfc">trunk/dports/www/clearsilver/files/patch-util__neo_hdf.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__neo_netc">trunk/dports/www/clearsilver/files/patch-util__neo_net.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__neo_serverc">trunk/dports/www/clearsilver/files/patch-util__neo_server.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__neo_strc">trunk/dports/www/clearsilver/files/patch-util__neo_str.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__skiplistc">trunk/dports/www/clearsilver/files/patch-util__skiplist.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__ulistc">trunk/dports/www/clearsilver/files/patch-util__ulist.c</a></li>
<li><a href="#trunkdportswwwclearsilverfilespatchutil__ulocksc">trunk/dports/www/clearsilver/files/patch-util__ulocks.c</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportswwwclearsilverPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/www/clearsilver/Portfile (129771 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/Portfile        2014-12-20 05:31:04 UTC (rev 129771)
+++ trunk/dports/www/clearsilver/Portfile        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx"> 
</span><span class="cx"> name                clearsilver
</span><span class="cx"> version             0.10.5
</span><del>-revision        1
</del><ins>+revision        2
</ins><span class="cx"> categories        www python perl
</span><span class="cx"> platforms        darwin
</span><span class="cx"> maintainers        nomaintainer
</span><span class="lines">@@ -22,31 +22,47 @@
</span><span class="cx">                 sha1 138865dc91e27328fe29fcaaac1bc6558f19dd75 \
</span><span class="cx">                 rmd160 bd5c616f326b544df8a74eec71a98a474b408249
</span><span class="cx"> 
</span><del>-patchfiles        patch-rules.mk.in.diff
</del><ins>+patchfiles        patch-rules.mk.in.diff \
+            patch-cgi__cgi.c \
+            patch-cgi__html.c \
+            patch-cgi__rfc2388.c \
+            patch-cs__csparse.c \
+            patch-cs__cstest.c \
+            patch-util__dict.c \
+            patch-util__neo_files.c \
+            patch-util__neo_hash.c \
+            patch-util__neo_hdf.c \
+            patch-util__neo_net.c \
+            patch-util__neo_server.c \
+            patch-util__neo_str.c \
+            patch-util__skiplist.c \
+            patch-util__ulist.c \
+            patch-util__ulocks.c
</ins><span class="cx"> 
</span><del>-depends_lib        port:python25 path:bin/perl:perl5 port:zlib port:gettext
</del><ins>+depends_lib        port:python27 port:perl5.16 port:zlib port:gettext
</ins><span class="cx"> 
</span><ins>+set python_bin  ${prefix}/bin/python2.7
+
</ins><span class="cx"> configure.args        --disable-apache --disable-java --disable-ruby \
</span><span class="cx">                 --disable-csharp \
</span><del>-                --with-python=${prefix}/bin/python2.5 \
-                --with-perl=${prefix}/bin/perl \
</del><ins>+                --with-python=${python_bin} \
+                --with-perl=${prefix}/bin/perl5.16 \
</ins><span class="cx">                 --enable-gettext \
</span><span class="cx">                 --mandir=${prefix}/share/man
</span><span class="cx"> 
</span><span class="cx"> pre-configure        {
</span><del>-        set PYTHON_PATH ${prefix}/lib/python2.5
</del><ins>+        set PYTHON_PATH ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7
</ins><span class="cx"> 
</span><span class="cx">         reinplace &quot;s|PYTHON_SITE=`.*|PYTHON_SITE=${PYTHON_PATH}/site-packages|g&quot; \
</span><span class="cx">                 ${worksrcpath}/configure
</span><span class="cx"> 
</span><del>-        reinplace &quot;s|/usr/local/bin/python|${prefix}/bin/python2.5|g&quot; \
</del><ins>+        reinplace &quot;s|/usr/local/bin/python|${python_bin}|g&quot; \
</ins><span class="cx">                 ${worksrcpath}/scripts/document.py
</span><del>-        reinplace &quot;s|/usr/bin/python|${prefix}/bin/python2.5|g&quot; \
-                ${worksrcpath}/scripts/cs_lint.py
-        reinplace &quot;s|/neo/opt/bin/python|${prefix}/bin/python2.5|g&quot; \
</del><ins>+        reinplace &quot;s|/usr/bin/python|${python_bin}|g&quot; \
+                ${worksrcpath}/scripts/cs_lint.py \
+                ${worksrcpath}/scripts/commitlog.py
+        reinplace &quot;s|/neo/opt/bin/python|${python_bin}|g&quot; \
</ins><span class="cx">                 ${worksrcpath}/scripts/ChangeLog.py
</span><del>-        reinplace &quot;s|/usr/bin/python|${prefix}/bin/python2.5|g&quot; \
-                ${worksrcpath}/scripts/commitlog.py
</del><span class="cx"> 
</span><span class="cx">         reinplace &quot;s|\$(PERL) Makefile.PL|\$(PERL) Makefile.PL installdirs=vendor|g&quot; \
</span><span class="cx">                 ${worksrcpath}/Makefile
</span><span class="lines">@@ -57,12 +73,6 @@
</span><span class="cx">                 ${worksrcpath}/cgi/cgiwrap.c
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# Workaround for #17998
-post-destroot {
-    move ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5 \
-        ${destroot}${prefix}/lib/python2.5
-}
-
</del><span class="cx"> ## stolen from perl5 group code
</span><span class="cx"> post-destroot {
</span><span class="cx">                 foreach packlist [exec find ${destroot} -name .packlist] {
</span></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchcgi__cgic"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-cgi__cgi.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-cgi__cgi.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-cgi__cgi.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+--- ./cgi/cgi.c.orig        2007-07-12 04:38:03.000000000 +0200
++++ ./cgi/cgi.c        2012-04-23 18:02:21.533510630 +0200
+@@ -585,11 +585,11 @@
+   struct _cgi_parse_cb *my_pcb;

+   if (method == NULL || ctype == NULL)
+-    return nerr_raise(NERR_ASSERT, &quot;method and type must not be NULL to register cb&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;method and type must not be NULL to register cb&quot;);

+   my_pcb = (struct _cgi_parse_cb *) calloc(1, sizeof(struct _cgi_parse_cb));
+   if (my_pcb == NULL)
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory to register parse cb&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory to register parse cb&quot;);

+   my_pcb-&gt;method = strdup(method);
+   my_pcb-&gt;ctype = strdup(ctype);
+@@ -600,7 +600,7 @@
+     if (my_pcb-&gt;ctype != NULL)
+       free(my_pcb-&gt;ctype);
+     free(my_pcb);
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory to register parse cb&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory to register parse cb&quot;);
+   }
+   if (!strcmp(my_pcb-&gt;method, &quot;*&quot;))
+     my_pcb-&gt;any_method = 1;
+@@ -753,7 +753,7 @@
+   *cgi = NULL;
+   mycgi = (CGI *) calloc (1, sizeof(CGI));
+   if (mycgi == NULL)
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate space for CGI&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate space for CGI&quot;);

+   mycgi-&gt;time_start = ne_timef();

</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchcgi__htmlc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-cgi__html.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-cgi__html.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-cgi__html.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+--- ./cgi/html.c.orig        2006-10-20 01:26:35.000000000 +0200
++++ ./cgi/html.c        2012-04-23 18:02:55.987510632 +0200
+@@ -388,7 +388,7 @@
+             url = (char *) malloc(url_len+1);
+             if (url == NULL)
+             {
+-              err = nerr_raise(NERR_NOMEM,
++              err = nerr_raise(NERR_NOMEM, &quot;%s&quot;,
+                   &quot;Unable to allocate memory to convert url&quot;);
+               break;
+             }
+@@ -401,7 +401,7 @@
+             url = (char *) malloc(url_len+1);
+             if (url == NULL)
+             {
+-              err = nerr_raise(NERR_NOMEM,
++              err = nerr_raise(NERR_NOMEM, &quot;%s&quot;,
+                   &quot;Unable to allocate memory to convert url&quot;);
+               break;
+             }
+@@ -419,7 +419,7 @@
+           free(esc_url);
+           if (new_url == NULL)
+           {
+-            err = nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory to convert url&quot;);
++            err = nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory to convert url&quot;);
+             break;
+           }
+           err = string_append (out, new_url);
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchcgi__rfc2388c"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-cgi__rfc2388.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-cgi__rfc2388.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-cgi__rfc2388.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,91 @@
</span><ins>+--- ./cgi/rfc2388.c.orig        2006-08-29 10:44:50.000000000 +0200
++++ ./cgi/rfc2388.c        2012-04-23 18:04:40.890511212 +0200
+@@ -44,7 +44,7 @@
+   l = q - p;
+   *val = (char *) malloc (l+1);
+   if (*val == NULL)
+-    return nerr_raise (NERR_NOMEM, &quot;Unable to allocate space for val&quot;);
++    return nerr_raise (NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate space for val&quot;);
+   memcpy (*val, p, l);
+   (*val)[l] = '\0';

+@@ -86,7 +86,7 @@
+       {
+         *val = strdup (&quot;&quot;);
+         if (*val == NULL) 
+-          return nerr_raise (NERR_NOMEM, &quot;Unable to allocate value&quot;);
++          return nerr_raise (NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate value&quot;);
+         return STATUS_OK;
+       }
+     }
+@@ -110,7 +110,7 @@
+       {
+         r = (char *) malloc (al+1);
+         if (r == NULL) 
+-          return nerr_raise (NERR_NOMEM, &quot;Unable to allocate value&quot;);
++          return nerr_raise (NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate value&quot;);
+         memcpy (r, v, al);
+         r[al] = '\0';
+         *val = r;
+@@ -133,7 +133,7 @@
+     cgi-&gt;buflen = 4096;
+     cgi-&gt;buf = (char *) malloc (sizeof(char) * cgi-&gt;buflen);
+     if (cgi-&gt;buf == NULL)
+-      return nerr_raise (NERR_NOMEM, &quot;Unable to allocate cgi buf&quot;);
++      return nerr_raise (NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate cgi buf&quot;);
+   }
+   if (cgi-&gt;unget)
+   {
+@@ -171,7 +171,7 @@
+   cgiwrap_read (cgi-&gt;buf + ofs, to_read, &amp;(cgi-&gt;readlen));
+   if (cgi-&gt;readlen &lt; 0)
+   {
+-    return nerr_raise_errno (NERR_IO, &quot;POST Read Error&quot;);
++    return nerr_raise_errno (NERR_IO, &quot;%s&quot;, &quot;POST Read Error&quot;);
+   }
+   if (cgi-&gt;readlen == 0)
+   {
+@@ -182,7 +182,7 @@
+   if (cgi-&gt;upload_cb)
+   {
+     if (cgi-&gt;upload_cb (cgi, cgi-&gt;data_read, cgi-&gt;data_expected))
+-      return nerr_raise (CGIUploadCancelled, &quot;Upload Cancelled&quot;);
++      return nerr_raise (CGIUploadCancelled, &quot;%s&quot;, &quot;Upload Cancelled&quot;);
+   }
+   cgi-&gt;readlen += ofs;
+   p = memchr (cgi-&gt;buf, '\n', cgi-&gt;readlen);
+@@ -235,7 +235,7 @@
+     if (line-&gt;len &gt; 50*1024*1024)
+     {
+       string_clear(line);
+-      return nerr_raise(NERR_ASSERT, &quot;read_header_line exceeded 50MB&quot;);
++      return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;read_header_line exceeded 50MB&quot;);
+     }
+   }
+   return nerr_pass (err);
+@@ -399,7 +399,7 @@
+             strcmp(tmp, &quot;binary&quot;))
+         {
+           free(tmp);
+-          err = nerr_raise (NERR_ASSERT, &quot;form-data encoding is not supported&quot;);
++          err = nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;form-data encoding is not supported&quot;);
+           break;
+         }
+         free(tmp);
+@@ -559,14 +559,14 @@
+   l = hdf_get_int_value (cgi-&gt;hdf, &quot;CGI.ContentLength&quot;, -1);
+   ct_hdr = hdf_get_value (cgi-&gt;hdf, &quot;CGI.ContentType&quot;, NULL);
+   if (ct_hdr == NULL) 
+-    return nerr_raise (NERR_ASSERT, &quot;No content type header?&quot;);
++    return nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;No content type header?&quot;);

+   cgi-&gt;data_expected = l;
+   cgi-&gt;data_read = 0;
+   if (cgi-&gt;upload_cb)
+   {
+     if (cgi-&gt;upload_cb (cgi, cgi-&gt;data_read, cgi-&gt;data_expected))
+-      return nerr_raise (CGIUploadCancelled, &quot;Upload Cancelled&quot;);
++      return nerr_raise (CGIUploadCancelled, &quot;%s&quot;, &quot;Upload Cancelled&quot;);
+   }

+   err = _header_attr (ct_hdr, &quot;boundary&quot;, &amp;boundary);
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchcs__csparsec"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-cs__csparse.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-cs__csparse.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-cs__csparse.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,160 @@
</span><ins>+--- ./cs/csparse.c.orig        2012-04-23 17:45:37.010509629 +0200
++++ ./cs/csparse.c        2012-04-23 17:49:26.478510015 +0200
+@@ -262,7 +262,7 @@
+   *node = NULL;
+   my_node = (CSTREE *) calloc (1, sizeof (CSTREE));
+   if (my_node == NULL)
+-    return nerr_raise (NERR_NOMEM, &quot;Unable to allocate memory for node&quot;);
++    return nerr_raise (NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for node&quot;);

+   my_node-&gt;cmd = 0;
+   my_node-&gt;node_num = NodeNumber++;
+@@ -375,7 +375,7 @@
+   node = (CS_ERROR *) calloc(1, sizeof(CS_ERROR));
+   if (node == NULL) 
+   {
+-    return nerr_raise (NERR_NOMEM,
++    return nerr_raise (NERR_NOMEM, &quot;%s&quot;,
+         &quot;Unable to allocate memory for error entry&quot;);
+   }

+@@ -406,7 +406,7 @@
+   CS_POSITION pos;

+   if (path == NULL)
+-    return nerr_raise (NERR_ASSERT, &quot;path is NULL&quot;);
++    return nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;path is NULL&quot;);

+   if (parse-&gt;fileload)
+   {
+@@ -791,7 +791,7 @@
+             NEOERR *err;
+             char *mapped_name = sprintf_alloc(&quot;%s%s&quot;, map-&gt;s, c);
+             if (mapped_name == NULL)
+-              return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory to create mapped name&quot;);
++              return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory to create mapped name&quot;);
+             err = hdf_set_value(parse-&gt;hdf, mapped_name, value);
+             free(mapped_name);
+             return nerr_pass(err);
+@@ -814,7 +814,7 @@
+           map-&gt;s = strdup(value);
+           if (tmp != NULL) free(tmp);
+           if (map-&gt;s == NULL &amp;&amp; value != NULL)
+-            return nerr_raise(NERR_NOMEM,
++            return nerr_raise(NERR_NOMEM, &quot;%s&quot;,
+                 &quot;Unable to allocate memory to set var&quot;);

+           return STATUS_OK;
+@@ -2120,9 +2120,9 @@
+   NEOERR *err;

+   if (expr == NULL)
+-    return nerr_raise (NERR_ASSERT, &quot;expr is NULL&quot;);
++    return nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;expr is NULL&quot;);
+   if (result == NULL)
+-    return nerr_raise (NERR_ASSERT, &quot;result is NULL&quot;);
++    return nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;result is NULL&quot;);

+ #if DEBUG_EXPR_EVAL
+   _depth++;
+@@ -2200,7 +2200,7 @@
+           result-&gt;n = arg_eval_num (parse, &amp;arg1);
+           break;
+         case CS_OP_LPAREN:
+-          return nerr_raise(NERR_ASSERT, &quot;LPAREN should be handled above&quot;);
++          return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;LPAREN should be handled above&quot;);
+         default:
+           result-&gt;n = 0;
+           ne_warn (&quot;Unsupported op %s in eval_expr&quot;, expand_token_type(expr-&gt;op_type, 1));
+@@ -2421,7 +2421,7 @@
+         s = strdup(s);
+         if (s == NULL)
+         {
+-          return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory for lvar_eval&quot;);
++          return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for lvar_eval&quot;);
+         }
+       }

+@@ -3442,7 +3442,7 @@
+   memset(&amp;each_map, 0, sizeof(each_map));

+   carg = node-&gt;vargs;
+-  if (carg == NULL) return nerr_raise (NERR_ASSERT, &quot;No arguments in loop eval?&quot;);
++  if (carg == NULL) return nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;No arguments in loop eval?&quot;);
+   err = eval_expr(parse, carg, &amp;val);
+   if (err) return nerr_pass(err);
+   end = arg_eval_num(parse, &amp;val);
+@@ -3532,7 +3532,7 @@
+   CSTREE *node;

+   if (parse-&gt;tree == NULL)
+-    return nerr_raise (NERR_ASSERT, &quot;No parse tree exists&quot;);
++    return nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;No parse tree exists&quot;);

+   parse-&gt;output_ctx = ctx;
+   parse-&gt;output_cb = cb;
+@@ -3605,7 +3605,7 @@
+         s = va_arg(ap, char **);
+         if (s == NULL)
+         {
+-          err = nerr_raise(NERR_ASSERT,
++          err = nerr_raise(NERR_ASSERT, &quot;%s&quot;,
+               &quot;Invalid number of arguments in call to cs_arg_parse&quot;);
+           break;
+         }
+@@ -3615,7 +3615,7 @@
+         i = va_arg(ap, long int *);
+         if (i == NULL)
+         {
+-          err = nerr_raise(NERR_ASSERT,
++          err = nerr_raise(NERR_ASSERT, &quot;%s&quot;,
+               &quot;Invalid number of arguments in call to cs_arg_parse&quot;);
+           break;
+         }
+@@ -3938,7 +3938,7 @@
+   }
+   slice = (char *) malloc (sizeof(char) * (e-b+1));
+   if (slice == NULL)
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory for string slice&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for string slice&quot;);
+   strncpy(slice, s + b, e-b);
+   free(s);
+   slice[e-b] = '\0';
+@@ -4052,7 +4052,7 @@

+   my_parse = (CSPARSE *) calloc (1, sizeof (CSPARSE));
+   if (my_parse == NULL)
+-    return nerr_raise (NERR_NOMEM, &quot;Unable to allocate memory for CSPARSE&quot;);
++    return nerr_raise (NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for CSPARSE&quot;);

+   err = uListInit (&amp;(my_parse-&gt;stack), 10, 0);
+   if (err != STATUS_OK)
+@@ -4079,7 +4079,7 @@
+   if (entry == NULL)
+   {
+     cs_destroy (&amp;my_parse);
+-    return nerr_raise (NERR_NOMEM,
++    return nerr_raise (NERR_NOMEM, &quot;%s&quot;,
+         &quot;Unable to allocate memory for stack entry&quot;);
+   }
+   entry-&gt;state = ST_GLOBAL;
+@@ -4325,7 +4325,7 @@
+   char buf[4096];

+   if (parse-&gt;tree == NULL)
+-    return nerr_raise (NERR_ASSERT, &quot;No parse tree exists&quot;);
++    return nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;No parse tree exists&quot;);

+   node = parse-&gt;tree;
+   return nerr_pass (dump_node (parse, node, 0, ctx, cb, buf, sizeof(buf)));
+--- cs/csparse.c.orig        2014-12-20 17:50:47.000000000 +1100
++++ cs/csparse.c        2014-12-20 17:52:04.000000000 +1100
+@@ -3717,7 +3717,7 @@ static NEOERR * _builtin_str_crc(CSPARSE
+   if (val.op_type &amp; (CS_TYPE_VAR | CS_TYPE_STRING))
+   {
+     char *s = arg_eval(parse, &amp;val);
+-    if (s) result-&gt;n = ne_crc((unsigned char *)s, strlen(s));
++    if (s) result-&gt;n = (INT32) ne_crc((unsigned char *)s, strlen(s));
+   }
+   if (val.alloc) free(val.s);
+   return STATUS_OK;
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchcs__cstestc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-cs__cstest.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-cs__cstest.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-cs__cstest.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- ./cs/cstest.c.orig        2006-03-13 00:54:15.000000000 +0100
++++ ./cs/cstest.c        2012-04-23 17:54:05.809909855 +0200
+@@ -30,7 +30,7 @@
+   int x = 0;

+   if (s == NULL)
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to duplicate string in test_strfunc&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to duplicate string in test_strfunc&quot;);

+   while (s[x]) {
+     s[x] = tolower(s[x]);
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__dictc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__dict.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__dict.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__dict.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+--- ./util/dict.c.orig        2005-07-01 02:48:26.000000000 +0200
++++ ./util/dict.c        2012-04-23 17:58:36.491954556 +0200
+@@ -92,14 +92,14 @@

+   /* check if we can set a new value */
+   if(! (newval-&gt;value || newval-&gt;new))
+-    return nerr_raise(NERR_ASSERT, &quot;value or new are NULL&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;value or new are NULL&quot;);

+   if(! (my_item = calloc(1, sizeof(struct dictItem))))
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate new dictItem&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate new dictItem&quot;);

+   if(! (my_item-&gt;id = strdup(id))) {
+     free(my_item);
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate new id for dictItem&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate new id for dictItem&quot;);
+   }

+   /* set new value */
+@@ -171,7 +171,7 @@

+   /* check for entry (maybe not found...) */
+   if(! entry)
+-    return nerr_raise(NERR_NOT_FOUND, &quot;Entry is NULL&quot;);
++    return nerr_raise(NERR_NOT_FOUND, &quot;%s&quot;, &quot;Entry is NULL&quot;);

+   /* only use entry if not deleted */
+   if(! entry-&gt;deleted) {
+@@ -226,7 +226,7 @@
+   /* create new item and insert entry */
+   entry = calloc(1, sizeof(struct dictEntry));
+   if (entry == NULL)
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory for dictEntry&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for dictEntry&quot;);
+     
+   /* create/insert item (or cleanup) */
+   err = dictNewItem(dict, entry, id, newval, NULL);
+@@ -559,7 +559,7 @@
+   do {

+     if(! (dict = calloc(1, sizeof(struct _dictCtx))))
+-      return nerr_raise (NERR_NOMEM, &quot;Unable to allocate memory for dictCtx&quot;);
++      return nerr_raise (NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for dictCtx&quot;);

+     dict-&gt;useCase = useCase;
+     dict-&gt;hash = python_string_hash;
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__neo_filesc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__neo_files.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__neo_files.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__neo_files.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- ./util/neo_files.c.orig        2007-07-12 04:14:23.000000000 +0200
++++ ./util/neo_files.c        2012-04-23 17:50:13.873212371 +0200
+@@ -216,7 +216,7 @@
+   NEOERR *err = STATUS_OK;

+   if (files == NULL) 
+-    return nerr_raise(NERR_ASSERT, &quot;Invalid call to ne_listdir_fmatch&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;Invalid call to ne_listdir_fmatch&quot;);

+   if (*files == NULL)
+   {
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__neo_hashc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__neo_hash.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__neo_hash.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__neo_hash.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+--- ./util/neo_hash.c.orig        2006-10-19 01:57:24.000000000 +0200
++++ ./util/neo_hash.c        2012-04-23 17:56:07.096509854 +0200
+@@ -27,7 +27,7 @@

+   my_hash = (NE_HASH *) calloc(1, sizeof(NE_HASH));
+   if (my_hash == NULL)
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory for NE_HASH&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for NE_HASH&quot;);

+   my_hash-&gt;size = 256;
+   my_hash-&gt;num = 0;
+@@ -38,7 +38,7 @@
+   if (my_hash-&gt;nodes == NULL)
+   {
+     free(my_hash);
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory for NE_HASHNODES&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for NE_HASHNODES&quot;);
+   }

+   *hash = my_hash;
+@@ -88,7 +88,7 @@
+   {
+     *node = (NE_HASHNODE *) malloc(sizeof(NE_HASHNODE));
+     if (node == NULL)
+-      return nerr_raise(NERR_NOMEM, &quot;Unable to allocate NE_HASHNODE&quot;);
++      return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate NE_HASHNODE&quot;);

+     (*node)-&gt;hashv = hashv;
+     (*node)-&gt;key = key;
+@@ -226,7 +226,7 @@
+   /* We always double in size */
+   new_nodes = (NE_HASHNODE **) realloc (hash-&gt;nodes, (hash-&gt;size*2) * sizeof(NE_HASHNODE));
+   if (new_nodes == NULL)
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory to resize NE_HASH&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory to resize NE_HASH&quot;);

+   hash-&gt;nodes = new_nodes;
+   orig_size = hash-&gt;size;
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__neo_hdfc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__neo_hdf.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__neo_hdf.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__neo_hdf.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,83 @@
</span><ins>+--- ./util/neo_hdf.c.orig        2007-07-12 03:52:37.000000000 +0200
++++ ./util/neo_hdf.c        2012-04-23 17:53:28.104660092 +0200
+@@ -59,7 +59,7 @@
+   *hdf = calloc (1, sizeof (HDF));
+   if (*hdf == NULL)
+   {
+-    return nerr_raise (NERR_NOMEM, &quot;Unable to allocate memory for hdf element&quot;);
++    return nerr_raise (NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for hdf element&quot;);
+   }

+   (*hdf)-&gt;top = top;
+@@ -406,7 +406,7 @@

+   _walk_hdf(hdf, name, &amp;obj);
+   if (obj == NULL) 
+-    return nerr_raise(NERR_ASSERT, &quot;Unable to set attribute on none existant node&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;Unable to set attribute on none existant node&quot;);

+   if (obj-&gt;attr != NULL)
+   {
+@@ -645,7 +645,7 @@
+     char *new_name = (char *) malloc(strlen(hdf-&gt;value) + 1 + strlen(name) + 1);
+     if (new_name == NULL)
+     {
+-      return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory&quot;);
++      return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory&quot;);
+     }
+     strcpy(new_name, hdf-&gt;value);
+     strcat(new_name, &quot;.&quot;);
+@@ -792,7 +792,7 @@
+       char *new_name = (char *) malloc(strlen(hp-&gt;value) + strlen(s) + 1);
+       if (new_name == NULL)
+       {
+-        return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory&quot;);
++        return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory&quot;);
+       }
+       strcpy(new_name, hp-&gt;value);
+       strcat(new_name, s);
+@@ -866,7 +866,7 @@
+   k = vsprintf_alloc(fmt, ap);
+   if (k == NULL)
+   {
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory for format string&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for format string&quot;);
+   }
+   v = strchr(k, '=');
+   if (v == NULL)
+@@ -1025,7 +1025,7 @@
+     if (copy == NULL)
+     {
+       _dealloc_hdf_attr(dest);
+-      return nerr_raise(NERR_NOMEM, &quot;Unable to allocate copy of HDF_ATTR&quot;);
++      return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate copy of HDF_ATTR&quot;);
+     }
+     copy-&gt;key = strdup(src-&gt;key);
+     copy-&gt;value = strdup(src-&gt;value);
+@@ -1033,7 +1033,7 @@
+     if ((copy-&gt;key == NULL) || (copy-&gt;value == NULL))
+     {
+       _dealloc_hdf_attr(dest);
+-      return nerr_raise(NERR_NOMEM, &quot;Unable to allocate copy of HDF_ATTR&quot;);
++      return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate copy of HDF_ATTR&quot;);
+     }
+     if (last) {
+       last-&gt;next = copy;
+@@ -1339,7 +1339,7 @@
+   if (str.buf == NULL)
+   {
+     *s = strdup(&quot;&quot;);
+-    if (*s == NULL) return nerr_raise(NERR_NOMEM, &quot;Unable to allocate empty string&quot;);
++    if (*s == NULL) return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate empty string&quot;);
+   }
+   else
+   {
+@@ -1831,7 +1831,7 @@
+   string_init(&amp;line);

+   if (path == NULL) 
+-    return nerr_raise(NERR_ASSERT, &quot;Can't read NULL file&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;Can't read NULL file&quot;);

+   if (top-&gt;fileload)
+   {
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__neo_netc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__neo_net.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__neo_net.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__neo_net.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,160 @@
</span><ins>+--- ./util/neo_net.c.orig        2005-12-06 05:17:08.000000000 +0100
++++ ./util/neo_net.c        2012-04-23 18:00:58.297894435 +0200
+@@ -45,27 +45,27 @@
+   struct sockaddr_in serv_addr;

+   if ((sfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) &lt; 0)
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to create socket&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to create socket&quot;);

+   if (setsockopt (sfd, SOL_SOCKET, SO_REUSEADDR, (char *)&amp;on,
+         sizeof(on)) == -1)
+   {
+     close(sfd);
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to setsockopt(SO_REUSEADDR)&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to setsockopt(SO_REUSEADDR)&quot;);
+   }
+    
+   if(setsockopt (sfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&amp;on,
+         sizeof(on)) == -1) 
+   {
+     close(sfd);
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to setsockopt(SO_KEEPALIVE)&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to setsockopt(SO_KEEPALIVE)&quot;);
+   }
+    
+   if(setsockopt (sfd, IPPROTO_TCP, TCP_NODELAY, (void *)&amp;on, 
+         sizeof(on)) == -1)
+   {
+     close(sfd);
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to setsockopt(TCP_NODELAY)&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to setsockopt(TCP_NODELAY)&quot;);
+   }
+   serv_addr.sin_family = AF_INET;
+   serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
+@@ -121,7 +121,7 @@
+     if (fd &gt;= 0) break;
+     if (ShutdownAccept || errno != EINTR)
+     {
+-      return nerr_raise_errno(NERR_IO, &quot;accept() returned error&quot;);
++      return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;accept() returned error&quot;);
+     }
+     if (errno == EINTR)
+     {
+@@ -133,7 +133,7 @@
+   if (my_sock == NULL)
+   {
+     close(fd);
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory for NSOCK&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for NSOCK&quot;);
+   }
+   my_sock-&gt;fd = fd;
+   my_sock-&gt;remote_ip = ntohl(client_addr.sin_addr.s_addr);
+@@ -176,19 +176,19 @@
+   serv_addr.sin_port = htons(port);
+   fd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
+   if (fd == -1)
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to create socket&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to create socket&quot;);

+   flags = fcntl(fd, F_GETFL, 0 );
+   if (flags == -1)
+   {
+     close(fd);
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to get socket flags&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to get socket flags&quot;);
+   }

+   if (fcntl(fd, F_SETFL, flags | O_NDELAY) == -1)
+   {
+     close(fd);
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to set O_NDELAY&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to set O_NDELAY&quot;);
+   }

+   x = 0;
+@@ -233,7 +233,7 @@
+     if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &amp;optval, &amp;optlen) == -1) 
+     {
+       close(fd);
+-      return nerr_raise_errno(NERR_IO, 
++      return nerr_raise_errno(NERR_IO, &quot;%s&quot;, 
+           &quot;Unable to getsockopt to determine connection error&quot;);
+     }

+@@ -253,20 +253,20 @@
+   if (flags == -1)
+   {
+     close(fd);
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to get socket flags&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to get socket flags&quot;);
+   }

+   if (fcntl(fd, F_SETFL, flags &amp; ~O_NDELAY) == -1)
+   {
+     close(fd);
+-    return nerr_raise_errno(NERR_IO, &quot;Unable to set O_NDELAY&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;Unable to set O_NDELAY&quot;);
+   }

+   my_sock = (NSOCK *) calloc(1, sizeof(NSOCK));
+   if (my_sock == NULL)
+   {
+     close(fd);
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memory for NSOCK&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memory for NSOCK&quot;);
+   }
+   my_sock-&gt;fd = fd;
+   my_sock-&gt;remote_ip = ntohl(serv_addr.sin_addr.s_addr);
+@@ -344,18 +344,18 @@
+   r = select(sock-&gt;fd+1, &amp;fds, NULL, NULL, &amp;tv);
+   if (r == 0)
+   {
+-    return nerr_raise(NERR_IO, &quot;read failed: Timeout&quot;);
++    return nerr_raise(NERR_IO, &quot;%s&quot;, &quot;read failed: Timeout&quot;);
+   }
+   if (r &lt; 0)
+   {
+-    return nerr_raise_errno(NERR_IO, &quot;select for read failed&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;select for read failed&quot;);
+   }

+   sock-&gt;ibuf[0] = '\0';
+   r = read(sock-&gt;fd, sock-&gt;ibuf, NET_BUFSIZE);
+   if (r &lt; 0)
+   {
+-    return nerr_raise_errno(NERR_IO, &quot;read failed&quot;);
++    return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;read failed&quot;);
+   }

+   sock-&gt;ib = 0;
+@@ -390,17 +390,17 @@
+     r = select(sock-&gt;fd+1, NULL, &amp;fds, NULL, &amp;tv);
+     if (r == 0)
+     {
+-      return nerr_raise(NERR_IO, &quot;write failed: Timeout&quot;);
++      return nerr_raise(NERR_IO, &quot;%s&quot;, &quot;write failed: Timeout&quot;);
+     }
+     if (r &lt; 0)
+     {
+-      return nerr_raise_errno(NERR_IO, &quot;select for write failed&quot;);
++      return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;select for write failed&quot;);
+     }

+     r = write(sock-&gt;fd, sock-&gt;obuf + x, sock-&gt;ol - x);
+     if (r &lt; 0)
+     {
+-      return nerr_raise_errno(NERR_IO, &quot;select for write failed&quot;);
++      return nerr_raise_errno(NERR_IO, &quot;%s&quot;, &quot;select for write failed&quot;);
+     }
+     x += r;
+   }
+@@ -559,7 +559,7 @@
+   if (buf[0] != ',')
+   {
+     free(data);
+-    return nerr_raise(NERR_PARSE, &quot;Format error on stream, expected ','&quot;);
++    return nerr_raise(NERR_PARSE, &quot;%s&quot;, &quot;Format error on stream, expected ','&quot;);
+   }

+   *b = data;
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__neo_serverc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__neo_server.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__neo_server.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__neo_server.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+--- ./util/neo_server.c.orig        2005-06-30 20:52:00.000000000 +0200
++++ ./util/neo_server.c        2012-04-23 18:01:33.745912541 +0200
+@@ -126,7 +126,7 @@
+   NEOERR *err;

+   if (server-&gt;req_cb == NULL)
+-    return nerr_raise(NERR_ASSERT, &quot;nserver requires a request callback&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;nserver requires a request callback&quot;);

+   ignore_pipe();

+@@ -162,7 +162,7 @@
+         child = fork();
+         if (child == -1)
+         {
+-          err = nerr_raise_errno(NERR_SYSTEM, &quot;Unable to fork child&quot;);
++          err = nerr_raise_errno(NERR_SYSTEM, &quot;%s&quot;, &quot;Unable to fork child&quot;);
+           break;
+         }
+         if (!child)
+@@ -202,7 +202,7 @@
+         child = fork();
+         if (child == -1)
+         {
+-          err = nerr_raise_errno(NERR_SYSTEM, &quot;Unable to fork child&quot;);
++          err = nerr_raise_errno(NERR_SYSTEM, &quot;%s&quot;, &quot;Unable to fork child&quot;);
+           break;
+         }
+         if (!child)
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__neo_strc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__neo_str.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__neo_str.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__neo_str.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+--- ./util/neo_str.c.orig        2007-07-12 03:24:00.000000000 +0200
++++ ./util/neo_str.c        2012-04-23 17:54:46.120510185 +0200
+@@ -164,7 +164,7 @@
+     va_copy(tmp, ap);
+     a_buf = vnsprintf_alloc(size*2, fmt, tmp);
+     if (a_buf == NULL)
+-      return nerr_raise(NERR_NOMEM, 
++      return nerr_raise(NERR_NOMEM, &quot;%s&quot;,
+           &quot;Unable to allocate memory for formatted string&quot;);
+     err = string_append(str, a_buf);
+     free(a_buf);
+@@ -220,7 +220,7 @@
+   int x = 0;

+   if (sep[0] == '\0') 
+-    return nerr_raise (NERR_ASSERT, &quot;separator must be at least one character&quot;);
++    return nerr_raise (NERR_ASSERT, &quot;%s&quot;, &quot;separator must be at least one character&quot;);

+   err = uListInit (list, 10, 0);
+   if (err) return nerr_pass(err);
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__skiplistc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__skiplist.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__skiplist.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__skiplist.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+--- ./util/skiplist.c.orig        2005-06-30 20:52:10.000000000 +0200
++++ ./util/skiplist.c        2012-04-23 17:57:31.184893991 +0200
+@@ -152,7 +152,7 @@
+ {

+   if(! (*item = malloc(SIZEOFITEM(level))))
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate space for skipItem&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate space for skipItem&quot;);

+   /* init new item */
+   (*item)-&gt;locks = 0;
+@@ -364,10 +364,10 @@

+   *skip = NULL;
+   if(! (list = calloc(1, sizeof(struct skipList_struct))))
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to allocate memore for skiplist&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to allocate memore for skiplist&quot;);

+   if (maxLevel == 0)
+-    return nerr_raise(NERR_ASSERT, &quot;maxLevel must be greater than 0&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;maxLevel must be greater than 0&quot;);

+   if(maxLevel &gt;= SKIP_MAXLEVEL)                              /* check limits */
+     maxLevel = SKIP_MAXLEVEL-1;
+@@ -526,9 +526,9 @@
+   skipItem x, y;

+   if (value == 0)
+-    return nerr_raise(NERR_ASSERT, &quot;value must be non-zero&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;value must be non-zero&quot;);
+   if (key == 0 || key == (UINT32)-1)
+-    return nerr_raise(NERR_ASSERT, &quot;key must not be 0 or -1&quot;);
++    return nerr_raise(NERR_ASSERT, &quot;%s&quot;, &quot;key must not be 0 or -1&quot;);

+   level = list-&gt;levelHint;

</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__ulistc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__ulist.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__ulist.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__ulist.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+--- ./util/ulist.c.orig        2005-06-30 20:52:11.000000000 +0200
++++ ./util/ulist.c        2012-04-23 17:51:17.958055320 +0200
+@@ -61,13 +61,13 @@
+   r_ul = (ULIST *) calloc (1, sizeof (ULIST));
+   if (r_ul == NULL)
+   {
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to create ULIST: Out of memory&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to create ULIST: Out of memory&quot;);
+   }
+   r_ul-&gt;items = (void **) calloc (size, sizeof(void *));
+   if (r_ul-&gt;items == NULL)
+   {
+     free (r_ul);
+-    return nerr_raise(NERR_NOMEM, &quot;Unable to create ULIST: Out of memory&quot;);
++    return nerr_raise(NERR_NOMEM, &quot;%s&quot;, &quot;Unable to create ULIST: Out of memory&quot;);
+   }

+   r_ul-&gt;num = 0;
+@@ -121,7 +121,7 @@
+ NEOERR *uListPop (ULIST *ul, void **data)
+ {
+   if (ul-&gt;num == 0)
+-    return nerr_raise(NERR_OUTOFRANGE, &quot;uListPop: empty list&quot;);
++    return nerr_raise(NERR_OUTOFRANGE, &quot;%s&quot;, &quot;uListPop: empty list&quot;);

+   *data = ul-&gt;items[ul-&gt;num - 1];
+   ul-&gt;num--;
</ins></span></pre></div>
<a id="trunkdportswwwclearsilverfilespatchutil__ulocksc"></a>
<div class="addfile"><h4>Added: trunk/dports/www/clearsilver/files/patch-util__ulocks.c (0 => 129772)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/www/clearsilver/files/patch-util__ulocks.c                                (rev 0)
+++ trunk/dports/www/clearsilver/files/patch-util__ulocks.c        2014-12-20 07:03:34 UTC (rev 129772)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- ./util/ulocks.c.orig        2005-06-30 21:17:27.000000000 +0200
++++ ./util/ulocks.c        2012-04-23 17:56:39.446509872 +0200
+@@ -93,7 +93,7 @@
+ {

+   if(lockf(lock, F_LOCK, 0) &lt; 0)
+-    return nerr_raise_errno (NERR_LOCK, &quot;File lock failed&quot;);
++    return nerr_raise_errno (NERR_LOCK, &quot;%s&quot;, &quot;File lock failed&quot;);

+   return STATUS_OK;
+ }
</ins></span></pre>
</div>
</div>

</body>
</html>