[94151] trunk/dports/textproc/boxes

jmr at macports.org jmr at macports.org
Sun Jun 10 10:30:59 PDT 2012


Revision: 94151
          https://trac.macports.org/changeset/94151
Author:   jmr at macports.org
Date:     2012-06-10 10:30:58 -0700 (Sun, 10 Jun 2012)
Log Message:
-----------
boxes: silence compile warnings

Modified Paths:
--------------
    trunk/dports/textproc/boxes/Portfile

Added Paths:
-----------
    trunk/dports/textproc/boxes/files/
    trunk/dports/textproc/boxes/files/boxes.c.patch
    trunk/dports/textproc/boxes/files/config.h.patch
    trunk/dports/textproc/boxes/files/parser.patch
    trunk/dports/textproc/boxes/files/regerror.patch
    trunk/dports/textproc/boxes/files/regexp_Makefile.patch
    trunk/dports/textproc/boxes/files/tools.c.patch

Modified: trunk/dports/textproc/boxes/Portfile
===================================================================
--- trunk/dports/textproc/boxes/Portfile	2012-06-10 16:02:44 UTC (rev 94150)
+++ trunk/dports/textproc/boxes/Portfile	2012-06-10 17:30:58 UTC (rev 94151)
@@ -17,6 +17,10 @@
 master_sites		http://boxes.thomasjensen.com/download/
 extract.suffix		.src.tar.gz
 checksums		md5 d2ef9fa28a87bf32b3fe0c47ab82fa97
+
+patchfiles		config.h.patch boxes.c.patch parser.patch regerror.patch \
+			regexp_Makefile.patch tools.c.patch
+
 use_configure           no
 
 variant emacs		{}

Added: trunk/dports/textproc/boxes/files/boxes.c.patch
===================================================================
--- trunk/dports/textproc/boxes/files/boxes.c.patch	                        (rev 0)
+++ trunk/dports/textproc/boxes/files/boxes.c.patch	2012-06-10 17:30:58 UTC (rev 94151)
@@ -0,0 +1,37 @@
+--- src/boxes.c.orig	2006-07-24 04:03:43.000000000 +1000
++++ src/boxes.c	2012-06-11 02:49:10.000000000 +1000
+@@ -231,6 +231,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <strings.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+@@ -1156,7 +1157,7 @@ static int list_styles()
+             fprintf (opt.outfile, "none\n");
+         }
+ 
+-        fprintf (opt.outfile, "Minimum Box Dimensions: %d x %d  (width x height)\n",
++        fprintf (opt.outfile, "Minimum Box Dimensions: %lu x %lu  (width x height)\n",
+                 d->minwidth, d->minheight);
+ 
+         fprintf (opt.outfile, "Default Padding:        ");
+@@ -1239,7 +1240,7 @@ static int list_styles()
+                         fprintf (opt.outfile, "%s: ", shape_name[i]);
+                     else {
+                         space[strlen(shape_name[i])+2] = '\0';
+-                        fprintf (opt.outfile, space);
++                        fprintf (opt.outfile, "%s", space);
+                         space[strlen(shape_name[i])+2] = ' ';
+                     }
+                     if (j < d->shape[i].height) {
+@@ -1247,7 +1248,7 @@ static int list_styles()
+                     }
+                     else {
+                         space[d->shape[i].width+2] = '\0';
+-                        fprintf (opt.outfile, space);
++                        fprintf (opt.outfile, "%s", space);
+                         space[d->shape[i].width+2] = ' ';
+                     }
+                 }

Added: trunk/dports/textproc/boxes/files/config.h.patch
===================================================================
--- trunk/dports/textproc/boxes/files/config.h.patch	                        (rev 0)
+++ trunk/dports/textproc/boxes/files/config.h.patch	2012-06-10 17:30:58 UTC (rev 94151)
@@ -0,0 +1,10 @@
+--- src/config.h.orig	2006-07-24 04:03:43.000000000 +1000
++++ src/config.h	2012-06-11 02:36:45.000000000 +1000
+@@ -58,6 +58,7 @@
+ #else
+ 
+ #define _POSIX_SOURCE
++#define _POSIX_C_SOURCE 200112L
+ 
+ #endif
+ 

Added: trunk/dports/textproc/boxes/files/parser.patch
===================================================================
--- trunk/dports/textproc/boxes/files/parser.patch	                        (rev 0)
+++ trunk/dports/textproc/boxes/files/parser.patch	2012-06-10 17:30:58 UTC (rev 94151)
@@ -0,0 +1,20 @@
+--- src/parser.y.orig	2006-07-24 04:03:43.000000000 +1000
++++ src/parser.y	2012-06-11 02:55:49.000000000 +1000
+@@ -137,6 +137,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include "shape.h"
+ #include "boxes.h"
+ #include "tools.h"
+--- src/parser.c.orig	2006-07-24 04:03:43.000000000 +1000
++++ src/parser.c	2012-06-11 02:56:30.000000000 +1000
+@@ -240,6 +240,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include "shape.h"
+ #include "boxes.h"
+ #include "tools.h"

Added: trunk/dports/textproc/boxes/files/regerror.patch
===================================================================
--- trunk/dports/textproc/boxes/files/regerror.patch	                        (rev 0)
+++ trunk/dports/textproc/boxes/files/regerror.patch	2012-06-10 17:30:58 UTC (rev 94151)
@@ -0,0 +1,22 @@
+--- src/regexp/regsub.c.orig	2006-07-24 04:03:43.000000000 +1000
++++ src/regexp/regsub.c	2012-06-11 03:08:47.000000000 +1000
+@@ -59,7 +59,7 @@
+ char rcsid_regsub_c[] =
+     "$Id: regsub.c,v 1.7 2006/07/23 16:15:55 tsjensen Exp $";
+ 
+-
++void   regerror    (char *msg);
+ 
+ #ifndef CHARBITS
+ #define UCHARAT(p)      ((int)*(unsigned char *)(p))
+--- src/regexp/regexp.c.orig	2006-07-24 04:03:43.000000000 +1000
++++ src/regexp/regexp.c	2012-06-11 03:07:47.000000000 +1000
+@@ -134,6 +134,8 @@
+ #define	UCHARAT(p)	((int)*(p)&CHARBITS)
+ #endif
+ 
++void   regerror    (char *msg);
++
+ #define	FAIL(m)	{ regerror(m); return(NULL); }
+ #define	ISMULT(c)	((c) == '*' || (c) == '+' || (c) == '?')
+ #define	META	"^$.[()|?+*\\"

Added: trunk/dports/textproc/boxes/files/regexp_Makefile.patch
===================================================================
--- trunk/dports/textproc/boxes/files/regexp_Makefile.patch	                        (rev 0)
+++ trunk/dports/textproc/boxes/files/regexp_Makefile.patch	2012-06-10 17:30:58 UTC (rev 94151)
@@ -0,0 +1,11 @@
+--- src/regexp/Makefile.orig	2006-07-24 04:03:43.000000000 +1000
++++ src/regexp/Makefile	2012-06-11 03:13:22.000000000 +1000
+@@ -42,7 +42,7 @@
+ #============================================================================
+ 
+ 
+-CFLAGS   = -O -I. $(CFLAGS_ADDTL)
++CFLAGS   = -ansi -O -I. $(CFLAGS_ADDTL)
+ 
+ ALL_CL   = regexp/regexp.c regexp/regsub.c
+ C_SRC    = $(notdir $(ALL_CL))

Added: trunk/dports/textproc/boxes/files/tools.c.patch
===================================================================
--- trunk/dports/textproc/boxes/files/tools.c.patch	                        (rev 0)
+++ trunk/dports/textproc/boxes/files/tools.c.patch	2012-06-10 17:30:58 UTC (rev 94151)
@@ -0,0 +1,12 @@
+--- src/tools.c.orig	2006-07-24 04:03:43.000000000 +1000
++++ src/tools.c	2012-06-11 02:53:50.000000000 +1000
+@@ -58,7 +58,9 @@
+ #include <errno.h>
+ #include <stdio.h>
+ #include <stdarg.h>
++#include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include "shape.h"
+ #include "boxes.h"
+ #include "tools.h"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120610/39927110/attachment.html>


More information about the macports-changes mailing list