diff options
author | tron <tron@pkgsrc.org> | 2006-10-23 12:29:56 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2006-10-23 12:29:56 +0000 |
commit | 57eb4bc2c764cda016aaec36da9a233c87bd39b3 (patch) | |
tree | 8d9aed0de3e258d04281a18f518a723719456787 /print/gv/patches | |
parent | 2bbf1ab857780fce41bcdc5ea591d42bd89b8687 (diff) | |
download | pkgsrc-57eb4bc2c764cda016aaec36da9a233c87bd39b3.tar.gz |
Update "gv" package to version 3.6.2. This is release fixes several
bugs present in the 3.6.1 release.
Based on patches provided by Thomas Klausner in private e-mail.
Diffstat (limited to 'print/gv/patches')
-rw-r--r-- | print/gv/patches/patch-aa | 23 | ||||
-rw-r--r-- | print/gv/patches/patch-ab | 111 | ||||
-rw-r--r-- | print/gv/patches/patch-ac | 21 | ||||
-rw-r--r-- | print/gv/patches/patch-ad | 18 | ||||
-rw-r--r-- | print/gv/patches/patch-ae | 6 | ||||
-rw-r--r-- | print/gv/patches/patch-af | 18 |
6 files changed, 115 insertions, 82 deletions
diff --git a/print/gv/patches/patch-aa b/print/gv/patches/patch-aa index d6100c00cce..78b3ebf5e35 100644 --- a/print/gv/patches/patch-aa +++ b/print/gv/patches/patch-aa @@ -1,22 +1,13 @@ -$NetBSD: patch-aa,v 1.13 2005/02/24 07:43:30 reed Exp $ +$NetBSD: patch-aa,v 1.14 2006/10/23 12:29:56 tron Exp $ ---- src/main.c.orig Mon Dec 6 15:36:57 2004 -+++ src/main.c -@@ -321,6 +321,8 @@ int main(argc, argv) - Dimension maximum_width,maximum_height; - unsigned int gwidth=0,gheight=0; - int dim_forced; -+ int opt_counter = 0; -+ int c; - - /*### initializing global variables ####################################*/ - -@@ -419,8 +421,6 @@ int main(argc, argv) +--- src/main.c.orig 2006-09-14 19:56:08.000000000 +0100 ++++ src/main.c 2006-10-23 12:50:43.000000000 +0100 +@@ -408,7 +408,7 @@ } /*### Manage GNU command line arguments ########################*/ -- int opt_counter = 0; -- int c; - while ((c = getopt_long (argc, argv, "vhu", GNU_longOptions, NULL)) +- while ((c = getopt_long_only (argc, argv, "vhu", GNU_longOptions, NULL)) ++ while ((c = getopt_long (argc, argv, "vhu", GNU_longOptions, NULL)) != -1) { + diff --git a/print/gv/patches/patch-ab b/print/gv/patches/patch-ab index 02994b18664..8a8851587cf 100644 --- a/print/gv/patches/patch-ab +++ b/print/gv/patches/patch-ab @@ -1,25 +1,88 @@ -$NetBSD: patch-ab,v 1.7 2004/12/30 21:04:25 snj Exp $ +$NetBSD: patch-ab,v 1.8 2006/10/23 12:29:56 tron Exp $ ---- src/ps.c.orig 2004-12-07 15:55:59.000000000 -0800 -+++ src/ps.c 2004-12-30 12:36:25.000000000 -0800 -@@ -531,16 +531,16 @@ unc_ok: - doc->beginheader = position; - section_len = line_len; - } else if (iscomment(line,"%PDF-") && cmd_scan_pdf) { -- -- /* PDF hack to set DELAYSAFER on interpreter invocation */ -- pdf_delaysafer_hack = 1; -- - struct document *retval = NULL; - FILE *tmpfile = (FILE*)NULL; - char *filename_dsc; - char cmd[512]; - char s[512]; - mode_t old_umask; -+ -+ /* PDF hack to set DELAYSAFER on interpreter invocation */ -+ pdf_delaysafer_hack = 1; -+ - filename_dsc=file_getTmpFilename(NULL,filename_raw); - sprintf(cmd,cmd_scan_pdf,filename,filename_dsc); - old_umask = umask(0077); +--- src/gv_message.h.orig 2005-03-31 14:02:39.000000000 +0100 ++++ src/gv_message.h 2006-10-23 13:16:40.000000000 +0100 +@@ -29,48 +29,48 @@ + char *message_usage = "\ + Usage: gv [OPTION]... [FILE]\n\ + PostScript and PDF viewer.\n\ +- [-]-monochrome display document using only black and white\n\ +- [-]-grayscale display document without colors\n\ +- [-]-color display document as usual\n\ +- [-]-safer start ghostscript in safe mode\n\ +- [-]-nosafer do not start ghostscript in safe mode\n\ +- [-]-quiet start ghostscript with the -dQUIET option\n\ +- [-]-noquiet do not start ghostscript with the -dQUIET option\n\ +- [-]-arguments=ARGS start ghostscript with additional options as specified\n\ ++ --monochrome display document using only black and white\n\ ++ --grayscale display document without colors\n\ ++ --color display document as usual\n\ ++ --safer start ghostscript in safe mode\n\ ++ --nosafer do not start ghostscript in safe mode\n\ ++ --quiet start ghostscript with the -dQUIET option\n\ ++ --noquiet do not start ghostscript with the -dQUIET option\n\ ++ --arguments=ARGS start ghostscript with additional options as specified\n\ + by the string ARGS\n\ +- [-]-page=LABEL display the page with label LABEL first\n\ +- [-]-center the page should be centered automatically\n\ +- [-]-nocenter the page should not be centered automatically\n\ +- [-]-media=MEDIA selects the paper size to be used\n\ +- [-]-orientation=ORIENTATION sets the orientation of the page\n\ +- [-]-scale=N selects the scale N\n\ +- [-]-scalebase=N selects the scale base N\n\ +- [-]-swap interchange the meaning of the orientations landscape\n\ ++ --page=LABEL display the page with label LABEL first\n\ ++ --center the page should be centered automatically\n\ ++ --nocenter the page should not be centered automatically\n\ ++ --media=MEDIA selects the paper size to be used\n\ ++ --orientation=ORIENTATION sets the orientation of the page\n\ ++ --scale=N selects the scale N\n\ ++ --scalebase=N selects the scale base N\n\ ++ --swap interchange the meaning of the orientations landscape\n\ + and seascape\n\ +- [-]-noswap do not interchange the meaning of the orientation\n\ ++ --noswap do not interchange the meaning of the orientation\n\ + landscape and seascape\n\ +- [-]-antialias use antialiasing\n\ +- [-]-noantialias do not use antialiasing\n\ +- [-]-dsc dsc comments are respected\n\ +- [-]-nodsc dsc comments are not respected\n\ +- [-]-eof ignore the postscript EOF comment while scanning\n\ ++ --antialias use antialiasing\n\ ++ --noantialias do not use antialiasing\n\ ++ --dsc dsc comments are respected\n\ ++ --nodsc dsc comments are not respected\n\ ++ --eof ignore the postscript EOF comment while scanning\n\ + documents\n\ +- [-]-noeof do not ignore the postscript EOF comment while\n\ ++ --noeof do not ignore the postscript EOF comment while\n\ + scanning documents\n\ +- [-]-pixmap use backing pixmap\n\ +- [-]-nopixmap do not use backing pixmap\n\ +- [-]-watch watch the document file for changes\n\ +- [-]-nowatch do not watch the document file for changes\n\ +- [-]-help print a help message and exit\n\ +- [-]-usage print a usage message and exit\n\ +- [-]-resize fit the size of the window to the size of the page\n\ +- [-]-noresize do not fit the size of the window to the size of the page\n\ ++ --pixmap use backing pixmap\n\ ++ --nopixmap do not use backing pixmap\n\ ++ --watch watch the document file for changes\n\ ++ --nowatch do not watch the document file for changes\n\ ++ --help print a help message and exit\n\ ++ --usage print a usage message and exit\n\ ++ --resize fit the size of the window to the size of the page\n\ ++ --noresize do not fit the size of the window to the size of the page\n\ + -geometry [<width>][x<height>][{+-}<xoffset>{+-}<yoffset>]\n\ +- [-]-ad=FILE read and use additional resources from FILE\n\ +- [-]-style=FILE read and use additional resources from FILE. These resources\n\ ++ --ad=FILE read and use additional resources from FILE\n\ ++ --style=FILE read and use additional resources from FILE. These resources\n\ + have lower priority than those provided on the context of --ad\n\ +- [-]-spartan shortcut for --style=gv_spartan.dat\n\ +- [-]-version show gv version and exit\n\ ++ --spartan shortcut for --style=gv_spartan.dat\n\ ++ --version show gv version and exit\n\ + "; + + char *message_help = "\ diff --git a/print/gv/patches/patch-ac b/print/gv/patches/patch-ac deleted file mode 100644 index 026f1117bd6..00000000000 --- a/print/gv/patches/patch-ac +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-ac,v 1.7 2004/12/08 03:51:54 minskim Exp $ - ---- src/resource.c.orig Sun Nov 14 02:16:12 2004 -+++ src/resource.c -@@ -126,6 +126,7 @@ XrmDatabase resource_buildDatabase(displ - #ifdef VMS - int b; - #endif -+ String rpath; - - BEGINMESSAGE(resource_buildDatabase) - -@@ -150,7 +151,7 @@ XrmDatabase resource_buildDatabase(displ - // s = XtResolvePathname(display,"app-defaults",NULL,NULL,NULL,NULL,0,NULL); - /* #endif */ - -- String rpath = GV_XtNewString(GV_LIBDIR); -+ rpath = GV_XtNewString(GV_LIBDIR); - if (rpath) { - INFSMESSAGE(merging system resource file into database,rpath) - XrmCombineFileDatabase(rpath,&db,True); diff --git a/print/gv/patches/patch-ad b/print/gv/patches/patch-ad index a7147137767..05a61d45955 100644 --- a/print/gv/patches/patch-ad +++ b/print/gv/patches/patch-ad @@ -1,14 +1,14 @@ -$NetBSD: patch-ad,v 1.4 2005/02/24 07:43:30 reed Exp $ +$NetBSD: patch-ad,v 1.5 2006/10/23 12:29:56 tron Exp $ ---- src/file.c.orig Tue Dec 7 15:37:40 2004 +--- src/file.c.orig 2005-08-10 13:33:21.000000000 +0200 +++ src/file.c -@@ -296,6 +296,9 @@ file_fileIsNotUseful(fn) - errno = EISDIR; - } else if (s.st_size == 0) { - r = 1; +@@ -265,6 +265,9 @@ int file_fileIsDir(fn) + /* file_fileIsNotUseful */ + /*############################################################*/ + +#ifndef ENODATA +#define ENODATA ENOMSG +#endif - errno = ENODATA; - } - IMESSAGE(r) + int + file_fileIsNotUseful(fn) + char *fn; diff --git a/print/gv/patches/patch-ae b/print/gv/patches/patch-ae index c9bd17c9c0f..46a91feb319 100644 --- a/print/gv/patches/patch-ae +++ b/print/gv/patches/patch-ae @@ -1,8 +1,8 @@ -$NetBSD: patch-ae,v 1.8 2006/01/15 20:07:42 joerg Exp $ +$NetBSD: patch-ae,v 1.9 2006/10/23 12:29:56 tron Exp $ ---- src/Ghostview.c.orig 2006-01-15 20:00:42.000000000 +0000 +--- src/Ghostview.c.orig 2006-07-04 21:09:52.000000000 +0200 +++ src/Ghostview.c -@@ -88,8 +88,6 @@ typedef char *XPointer; +@@ -83,8 +83,6 @@ typedef char *XPointer; #endif #include <errno.h> diff --git a/print/gv/patches/patch-af b/print/gv/patches/patch-af index 4471e193ed3..7b29d492588 100644 --- a/print/gv/patches/patch-af +++ b/print/gv/patches/patch-af @@ -1,13 +1,13 @@ -$NetBSD: patch-af,v 1.5 2006/01/15 20:07:42 joerg Exp $ +$NetBSD: patch-af,v 1.6 2006/10/23 12:29:56 tron Exp $ ---- src/error.h.orig 2006-01-15 20:01:54.000000000 +0000 +--- src/error.h.orig 2005-08-10 13:33:21.000000000 +0200 +++ src/error.h -@@ -51,8 +51,6 @@ - # endif - #endif - # include <errno.h> -- /* BSD 4.3 errno.h does not declare errno */ -- extern int errno; - #endif +@@ -36,8 +36,6 @@ + + + #include <errno.h> +-/* BSD 4.3 errno.h does not declare errno */ +-extern int errno; extern char* open_fail_error ( + #if NeedFunctionPrototypes |