tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix for print/poster: may I commit?



Hi,
print/poster stopped, for all I can tell, to work when upgraded to
20060221. The appended patch (by Ingvar Hagelund via Redhat bugzilla)
reverts one of the changes from 20050917. 
See <https://bugzilla.redhat.com/show_bug.cgi?id=436969>
print/poster is a leaf package.
May I commit?
 -is
Background: poster used to create N copies of the input page, transformed
to a new position for poster printing.
20060221 introduced (among other changes) compression by defining a 
procedure which contains the input file, then calling that procedure
for the individual pages.
Defining that procedure seems to fail at least for nontrivial input files
because some limit is exceeded, for ghostscript as well as for all native
postscript printers I have at work.
Here's the patch:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/poster/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile 6 Jun 2007 11:05:21 -0000 1.7
+++ Makefile 20 Dec 2012 13:23:14 -0000
@@ -1,6 +1,7 @@
 # $NetBSD: Makefile,v 1.7 2007年06月06日 11:05:21 markd Exp $
 
 DISTNAME= poster-20060221
+PKGREVISION= 1
 CATEGORIES= print
 MASTER_SITES= ftp://ftp.kde.org/pub/kde/printing/
 EXTRACT_SUFX= .tar.bz2
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/print/poster/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo 6 Jun 2007 11:05:21 -0000 1.3
+++ distinfo 20 Dec 2012 13:23:14 -0000
@@ -4,3 +4,4 @@
 RMD160 (poster-20060221.tar.bz2) = f5ba5a4ebeacd04051a682b9285c33f54e311da0
 Size (poster-20060221.tar.bz2) = 33770 bytes
 SHA1 (patch-ab) = b8c371e850b4d3eb8bf50d4324a275546e1fcd7a
+SHA1 (patch-poster.c) = 327f73b1c6854c1b129d5afa787b3ecffe8279b1
--- /dev/null 2012年12月20日 14:20:08.000000000 +0100
+++ patches/patch-poster.c 2012年12月20日 14:10:01.000000000 +0100
@@ -0,0 +1,44 @@
+--- 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");
+ 
-- 
seal your e-mail: http://www.gnupg.org/

Attachment: pgppj0EXBbXTP.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index

AltStyle によって変換されたページ (->オリジナル) /