Thu Dec 20 14:14:14 2012 UTC ()
Revert the compression feature of 20060221 (wrap the original file in
a procedure and call that N times later), as it exceeds some limits of
ghostscript as well as other printers at least for nontrivial files.

Patch by Ingvar Hagelund via Redhat Bugzilla # 436969.


(is)
diff -r1.8 -r1.9 pkgsrc/print/poster/Makefile
diff -r1.3 -r1.4 pkgsrc/print/poster/distinfo
diff -r0 -r1.1 pkgsrc/print/poster/patches/patch-poster.c

cvs diff -r1.8 -r1.9 pkgsrc/print/poster/Makefile (expand / switch to unified diff)

--- pkgsrc/print/poster/Makefile 2012/10/08 13:45:44 1.8
+++ pkgsrc/print/poster/Makefile 2012/12/20 14:14:14 1.9
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1# $NetBSD: Makefile,v 1.8 2012/10/08 13:45:44 asau Exp $ 1# $NetBSD: Makefile,v 1.9 2012/12/20 14:14:14 is Exp $
2 2
3DISTNAME= poster-20060221 3DISTNAME= poster-20060221
 4PKGREVISION= 1
4CATEGORIES= print 5CATEGORIES= print
5MASTER_SITES= ftp://ftp.kde.org/pub/kde/printing/ 6MASTER_SITES= ftp://ftp.kde.org/pub/kde/printing/
6EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
7 8
8MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://printing.kde.org/downloads/ 10HOMEPAGE= http://printing.kde.org/downloads/
10COMMENT= Resize a ps image to print on larger media and/or multiple sheets 11COMMENT= Resize a ps image to print on larger media and/or multiple sheets
11 12
12BUILD_TARGET= poster 13BUILD_TARGET= poster
13 14
14INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 15INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
15 16
16do-install: 17do-install:

cvs diff -r1.3 -r1.4 pkgsrc/print/poster/distinfo (expand / switch to unified diff)

--- pkgsrc/print/poster/distinfo 2007/06/06 11:05:21 1.3
+++ pkgsrc/print/poster/distinfo 2012/12/20 14:14:14 1.4
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.3 2007/06/06 11:05:21 markd Exp $ 1$NetBSD: distinfo,v 1.4 2012/12/20 14:14:14 is Exp $
2 2
3SHA1 (poster-20060221.tar.bz2) = cde5d3ba28d444e68cc30573eaa660ea8ef7f16b 3SHA1 (poster-20060221.tar.bz2) = cde5d3ba28d444e68cc30573eaa660ea8ef7f16b
4RMD160 (poster-20060221.tar.bz2) = f5ba5a4ebeacd04051a682b9285c33f54e311da0 4RMD160 (poster-20060221.tar.bz2) = f5ba5a4ebeacd04051a682b9285c33f54e311da0
5Size (poster-20060221.tar.bz2) = 33770 bytes 5Size (poster-20060221.tar.bz2) = 33770 bytes
6SHA1 (patch-ab) = b8c371e850b4d3eb8bf50d4324a275546e1fcd7a 6SHA1 (patch-ab) = b8c371e850b4d3eb8bf50d4324a275546e1fcd7a
 7SHA1 (patch-poster.c) = 327f73b1c6854c1b129d5afa787b3ecffe8279b1

File Added: pkgsrc/print/poster/patches/patch-poster.c
--- poster.c.old	2006-02-22 13:27:39.000000000 +0100
+++ poster.c	2012-11-17 01:30:45.303051611 +0100
@@ -856,21 +856,13 @@
 	int row, col, page;
 
 	printprolog();
-	for ( page = 0; page < number_pages; page++ )
-	{
-		printf( "/print_content_of_complete_page_%d\n", page);
-		printf( "{\n");
-		printfile (page);
-		printf( "} bind def\n\n");
-	
 		if ( pages == NULL )
-		{
+		for ( page = 0; page < number_pages; page++ )
 			for (row = 1; row <= nrows; row++)
 				for (col = 1; col <= ncols; col++)
 					tile( row, col, page);
-		}
 		else
-		{
+		for ( page = 0; page < number_pages; page++ )
 			for ( row = 0; row < pages_length; row++ )
 			{
 				int p = pages[ row ]-1;
@@ -878,8 +870,6 @@
 					fprintf( stderr, "Warning: page index out of range: %d\n", p+1 );
 				tile( p/ncols+1, p%ncols+1, page );
 			}
-		}
-	}
 	printf ("%%%%EOF\n");
 
 	if (tail_cntl_D)
@@ -1027,7 +1017,7 @@
 	printf ("\n%%%%Page: (%d,%d) %d\n", pagetoprint+1, ((row-1)*ncols+col), page);
 	printf ("%d %d tileprolog\n", row, col);
 	printf ("%%%%BeginDocument: %s\n", infile);
-	printf( "print_content_of_complete_page_%d\n", pagetoprint);
+	printfile (pagetoprint);	
 	printf ("%%%%EndDocument\n");
 	printf ("tileepilog\n");