aboutsummaryrefslogtreecommitdiff
path: root/graphics/urt
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-12-15 19:53:24 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-12-15 19:53:24 +0000
commitc42f3b8f1cbe80e8668a2406c0135a365f5d4d35 (patch)
tree23c1931d94f79c1006d1d77cee31bbf09f4931c5 /graphics/urt
parentdc9186386cede38e498399b064b0daee5ed1781f (diff)
downloadports-c42f3b8f1cbe80e8668a2406c0135a365f5d4d35.tar.gz
ports-c42f3b8f1cbe80e8668a2406c0135a365f5d4d35.zip
Notes
Diffstat (limited to 'graphics/urt')
-rw-r--r--graphics/urt/Makefile2
-rw-r--r--graphics/urt/files/patch-cnv-rlatorle.c11
-rw-r--r--graphics/urt/files/patch-cnv::gif2rle.c44
-rw-r--r--graphics/urt/files/patch-get-getx11-map_scan.c11
-rw-r--r--graphics/urt/files/patch-get-getx11-x11_stuff.c36
-rw-r--r--graphics/urt/files/patch-lib-rle_hdr.c11
-rw-r--r--graphics/urt/files/patch-lib-rle_open_f.c21
-rw-r--r--graphics/urt/files/patch-lib::scanargs.c14
-rw-r--r--graphics/urt/files/patch-tools-rleaddcom.c20
-rw-r--r--graphics/urt/files/patch-tools-rlecat.c20
-rw-r--r--graphics/urt/files/patch-tools::into.c20
11 files changed, 189 insertions, 21 deletions
diff --git a/graphics/urt/Makefile b/graphics/urt/Makefile
index adad5b3e6918..b7c4d5bac224 100644
--- a/graphics/urt/Makefile
+++ b/graphics/urt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= urt
PORTVERSION= 3.1b1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.iastate.edu/pub/utah-raster/
DISTNAME= urt
diff --git a/graphics/urt/files/patch-cnv-rlatorle.c b/graphics/urt/files/patch-cnv-rlatorle.c
new file mode 100644
index 000000000000..eb08d25e7756
--- /dev/null
+++ b/graphics/urt/files/patch-cnv-rlatorle.c
@@ -0,0 +1,11 @@
+--- cnv/rlatorle.c.orig Thu Nov 29 22:14:43 2007
++++ cnv/rlatorle.c Thu Nov 29 22:15:43 2007
+@@ -162,7 +162,7 @@
+ }
+ VPRINTF(stderr, "Channel color space %s\n", head.rla_head.chan);
+ if ( rlb_flag )
+- VPRINTF(stderr, "Interlaced? %s\n", head.rlb_head.filter_type);
++ VPRINTF(stderr, "Interlaced? %hd\n", head.rlb_head.filter_type);
+ else
+ VPRINTF(stderr, "Interlaced? %s\n", "-unused-");
+ if (do_matte)
diff --git a/graphics/urt/files/patch-cnv::gif2rle.c b/graphics/urt/files/patch-cnv::gif2rle.c
index 9241b00f843a..c2f9cd8b49f5 100644
--- a/graphics/urt/files/patch-cnv::gif2rle.c
+++ b/graphics/urt/files/patch-cnv::gif2rle.c
@@ -1,6 +1,44 @@
---- cnv/giftorle.c.orig Thu Mar 10 20:04:40 2005
-+++ cnv/giftorle.c Thu Mar 10 20:07:12 2005
-@@ -278,7 +278,7 @@
+--- cnv/giftorle.c.orig Mon Oct 18 08:59:37 1993
++++ cnv/giftorle.c Thu Nov 29 10:42:17 2007
+@@ -21,7 +21,10 @@
+ /* | don't try to make money off it, or pretend that you wrote it. | */
+ /* +------------------------------------------------------------------+ */
+
++#include <stdlib.h>
+ #include <stdio.h>
++#include <unistd.h>
++
+ #include "rle.h"
+
+ #ifndef lint
+@@ -69,7 +72,7 @@
+
+ static int output_colormap = FALSE;
+
+-void
++int
+ main(argc,argv)
+ int argc;
+ char **argv;
+@@ -96,7 +99,7 @@
+
+ while ( nfname-- > 0 )
+ (void)ReadGIF( *infname++ );
+- exit( 0 );
++ return( 0 );
+ }
+
+ int
+@@ -203,7 +206,7 @@
+ EasyFail("EOF in extention\n",TRUE);
+ if (c == 0)
+ return FALSE;
+- if (read(fd,buf,(int) c)!=(int) c)
++ if (read(fileno(fd),buf,(int) c)!=(int) c)
+ EasyFail("EOF in extention\n",TRUE);
+ }
+ }
+@@ -278,7 +281,7 @@
max_code_size = 2*clear_code;
max_code = clear_code+2;
diff --git a/graphics/urt/files/patch-get-getx11-map_scan.c b/graphics/urt/files/patch-get-getx11-map_scan.c
new file mode 100644
index 000000000000..08bae0c66335
--- /dev/null
+++ b/graphics/urt/files/patch-get-getx11-map_scan.c
@@ -0,0 +1,11 @@
+--- get/getx11/map_scan.c.orig Thu Nov 29 22:24:53 2007
++++ get/getx11/map_scan.c Thu Nov 29 22:26:37 2007
+@@ -2195,7 +2195,7 @@
+
+ if (!img->divN || !img->modN || !img->dm16 )
+ {
+- fprintf( stderr, "%s: malloc error getting dither arrays\n");
++ fprintf( stderr, "%s: malloc error getting dither arrays\n", progname);
+ exit (1);
+ }
+ }
diff --git a/graphics/urt/files/patch-get-getx11-x11_stuff.c b/graphics/urt/files/patch-get-getx11-x11_stuff.c
new file mode 100644
index 000000000000..4a4453777ffa
--- /dev/null
+++ b/graphics/urt/files/patch-get-getx11-x11_stuff.c
@@ -0,0 +1,36 @@
+--- get/getx11/x11_stuff.c.orig Fri May 13 20:05:44 1994
++++ get/getx11/x11_stuff.c Thu Nov 29 22:48:26 2007
+@@ -40,7 +40,7 @@
+ */
+ #include "getx11.h"
+ #ifdef X_SHARED_MEMORY
+-#include <sys/errno.h>
++#include <errno.h>
+ #endif
+
+ #include "circle.bitmap"
+@@ -155,7 +155,6 @@
+ IPC_CREAT|0777 );
+ if ( img->shm_img.shmid < 0 )
+ {
+- extern int errno;
+ if ( errno == ENOSPC )
+ {
+ if ( !no_shared_space )
+@@ -333,7 +332,7 @@
+
+ if (( img->pixmap != NULL && reallocate ) ||
+ ( img->pixmap != NULL && (img->pix_w < iw || img->pix_h < ih ))){
+- free_X_pixmap( dpy, img->pixmap );
++ free_X_pixmap( img, img->pixmap );
+ img->pixmap = NULL;
+ }
+
+@@ -361,7 +360,6 @@
+ XDestroyImage( image );
+ if ( img->shm_pix.shmid < 0 )
+ {
+- extern int errno;
+ if ( errno == ENOSPC )
+ {
+ if ( !no_shared_space )
diff --git a/graphics/urt/files/patch-lib-rle_hdr.c b/graphics/urt/files/patch-lib-rle_hdr.c
new file mode 100644
index 000000000000..ffe4250a375b
--- /dev/null
+++ b/graphics/urt/files/patch-lib-rle_hdr.c
@@ -0,0 +1,11 @@
+--- lib/rle_hdr.c.orig Thu Nov 29 21:57:53 2007
++++ lib/rle_hdr.c Thu Nov 29 21:59:23 2007
+@@ -269,6 +269,8 @@
+ {
+ rle_hdr *ret_hdr;
+
++ if ( rle_dflt_hdr.rle_file == NULL)
++ rle_dflt_hdr.rle_file = stdout;
+ if ( the_hdr == &rle_dflt_hdr )
+ return the_hdr;
+
diff --git a/graphics/urt/files/patch-lib-rle_open_f.c b/graphics/urt/files/patch-lib-rle_open_f.c
index 58b68ed23abc..516da13be440 100644
--- a/graphics/urt/files/patch-lib-rle_open_f.c
+++ b/graphics/urt/files/patch-lib-rle_open_f.c
@@ -1,5 +1,5 @@
---- lib/rle_open_f.c.orig Thu May 13 21:28:51 1993
-+++ lib/rle_open_f.c Wed Jan 12 16:06:07 2005
+--- lib/rle_open_f.c.orig Thu May 13 16:28:51 1993
++++ lib/rle_open_f.c Thu Nov 29 23:38:49 2007
@@ -56,6 +56,7 @@
CONST_DECL char *err_str;
register char *cp;
@@ -8,15 +8,6 @@
#ifdef STDIO_NEEDS_BINARY
char mode_string[32]; /* Should be enough. */
-@@ -63,7 +64,7 @@
- /* Concatenate a 'b' onto the mode. */
- mode_string[0] = mode[0];
- mode_string[1] = 'b';
-- strcpy( mode_string + 2, mode + 1 );
-+ strncpy( mode_string + 2, mode + 1, sizeof(mode_string + 2) );
- mode = mode_string;
- #endif
-
@@ -150,7 +151,8 @@
else if ( cp > file_name && *cp == '.' && *(cp + 1) == 'Z' )
{
@@ -42,3 +33,11 @@
fp = my_popen( combuf, mode, &thepid );
free( combuf );
+@@ -256,7 +258,6 @@
+ int pipefd[2];
+ int i;
+ char *argv[4];
+- extern int errno;
+
+ /* Check args. */
+ if ( *mode != 'r' && *mode != 'w' )
diff --git a/graphics/urt/files/patch-lib::scanargs.c b/graphics/urt/files/patch-lib::scanargs.c
index 10c1a0ed8415..45b45d027697 100644
--- a/graphics/urt/files/patch-lib::scanargs.c
+++ b/graphics/urt/files/patch-lib::scanargs.c
@@ -1,5 +1,5 @@
---- lib/scanargs.c.orig Thu Mar 10 21:23:06 2005
-+++ lib/scanargs.c Thu Mar 10 21:25:26 2005
+--- lib/scanargs.c.orig Thu Feb 27 16:18:15 1992
++++ lib/scanargs.c Thu Nov 29 23:22:40 2007
@@ -128,10 +128,10 @@
va_list argl;
{
@@ -13,3 +13,13 @@
int optarg = 0; /* where optional args start */
int nopt = 0;
char tmpflg, /* temp flag */
+@@ -408,7 +408,8 @@
+ * Copy the string so we remain nondestructive
+ */
+ s = NEW( char, strlen(argp)+1 );
+- strcpy( s, argp );
++ strncpy( s, argp, sizeof(s)-1 );
++ s[sizeof(s) - 1] = '\0';
+ argp = s;
+
+ /*
diff --git a/graphics/urt/files/patch-tools-rleaddcom.c b/graphics/urt/files/patch-tools-rleaddcom.c
new file mode 100644
index 000000000000..8421d7f718ae
--- /dev/null
+++ b/graphics/urt/files/patch-tools-rleaddcom.c
@@ -0,0 +1,20 @@
+--- tools/rleaddcom.c.orig Thu Nov 29 16:12:38 2007
++++ tools/rleaddcom.c Thu Nov 29 16:25:14 2007
+@@ -60,7 +60,7 @@
+ * Algorithm:
+ * [None]
+ */
+-void
++int
+ main( argc, argv )
+ int argc;
+ char **argv;
+@@ -118,7 +118,7 @@
+ }
+ else
+ strcpy( buf, temp );
+- mktemp( buf );
++ mkstemp( buf );
+ #ifndef NO_OPEN_PIPES
+ /* Compressed file special case. */
+ cp = i_fname + strlen( i_fname ) - 2;
diff --git a/graphics/urt/files/patch-tools-rlecat.c b/graphics/urt/files/patch-tools-rlecat.c
new file mode 100644
index 000000000000..ea47498d162d
--- /dev/null
+++ b/graphics/urt/files/patch-tools-rlecat.c
@@ -0,0 +1,20 @@
+--- tools/rlecat.c.orig Thu Nov 29 16:39:51 2007
++++ tools/rlecat.c Thu Nov 29 16:40:44 2007
+@@ -62,7 +62,7 @@
+ * repeat count. If the collation flag (-c) is specified, then
+ * all images will be read before starting to repeat.
+ */
+-void
++int
+ main( argc, argv )
+ int argc;
+ char **argv;
+@@ -110,7 +110,7 @@
+ nflag = 0; /* Not really repeating! */
+ else
+ {
+- mktemp( temp ); /* Make a temporary file name */
++ mkstemp( temp ); /* Make a temporary file name */
+ tmpfile = rle_open_f( cmd_name( argv ), temp, "w+" );
+ }
+ }
diff --git a/graphics/urt/files/patch-tools::into.c b/graphics/urt/files/patch-tools::into.c
index dc139399b5df..387c0c71b01e 100644
--- a/graphics/urt/files/patch-tools::into.c
+++ b/graphics/urt/files/patch-tools::into.c
@@ -1,6 +1,6 @@
---- tools/into.c.orig Thu Apr 30 23:10:15 1992
-+++ tools/into.c Fri Dec 27 23:23:48 2002
-@@ -41,7 +41,10 @@
+--- tools/into.c.orig Thu Apr 30 09:10:15 1992
++++ tools/into.c Thu Nov 29 16:17:55 2007
+@@ -41,9 +41,12 @@
short forceflg; /* overwrite an unwritable file? */
extern int errno;
@@ -9,5 +9,17 @@
extern char *sys_errlist[];
+#endif
- void
+-void
++int
main(argc, argv)
+ int argc;
+ char **argv;
+@@ -82,7 +85,7 @@
+ }
+ else
+ strcpy( buf, temp );
+- mktemp( buf );
++ mkstemp( buf );
+
+ if ( (outf = fopen( buf, "w" )) == NULL )
+ {