Resolves: #1585695 - backport unimplemented fixes from 10.79.00
This commit is contained in:
parent
f6655d3bd0
commit
a512e578f3
17
netpbm-CAN-2005-2471.patch
Normal file
17
netpbm-CAN-2005-2471.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff -up netpbm-10.56.03/converter/other/pstopnm.c.CAN-2005-2471 netpbm-10.56.03/converter/other/pstopnm.c
|
||||||
|
--- netpbm-10.56.03/converter/other/pstopnm.c.CAN-2005-2471 2011-11-09 09:18:00.000000000 +0100
|
||||||
|
+++ netpbm-10.56.03/converter/other/pstopnm.c 2011-11-11 11:43:51.827409226 +0100
|
||||||
|
@@ -747,11 +747,11 @@ execGhostscript(int const input
|
||||||
|
ghostscriptProg, arg0,
|
||||||
|
deviceopt, outfileopt, gopt, ropt, textalphabitsopt,
|
||||||
|
"-q", "-dNOPAUSE",
|
||||||
|
- "-dSAFER", "-");
|
||||||
|
+ "-dPARANOIDSAFER", "-");
|
||||||
|
}
|
||||||
|
|
||||||
|
execl(ghostscriptProg, arg0, deviceopt, outfileopt, gopt, ropt, "-q",
|
||||||
|
- "-dNOPAUSE", "-dSAFER", "-", NULL);
|
||||||
|
+ "-dNOPAUSE", "-dPARANOIDSAFER", "-", NULL);
|
||||||
|
|
||||||
|
pm_error("execl() of Ghostscript ('%s') failed, errno=%d (%s)",
|
||||||
|
ghostscriptProg, errno, strerror(errno));
|
11
netpbm-bmptopnm.patch
Normal file
11
netpbm-bmptopnm.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- netpbm-10.35/converter/other/bmptopnm.c.bmptopnm 2007-01-29 13:08:46.000000000 +0100
|
||||||
|
+++ netpbm-10.35/converter/other/bmptopnm.c 2007-01-29 13:32:21.000000000 +0100
|
||||||
|
@@ -1262,7 +1262,7 @@ readBmp(FILE * const ifP,
|
||||||
|
xel ** const colormapP,
|
||||||
|
bool const verbose) {
|
||||||
|
|
||||||
|
- xel * colormap; /* malloc'ed */
|
||||||
|
+ xel * colormap = NULL; /* malloc'ed */
|
||||||
|
unsigned int pos;
|
||||||
|
/* Current byte position in the BMP file */
|
||||||
|
|
21
netpbm-cmuwtopbm.patch
Normal file
21
netpbm-cmuwtopbm.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -up netpbm-10.61.01/converter/pbm/cmuwmtopbm.c.cmuwtopbmfix netpbm-10.61.01/converter/pbm/cmuwmtopbm.c
|
||||||
|
--- netpbm-10.61.01/converter/pbm/cmuwmtopbm.c.cmuwtopbmfix 2013-01-02 18:39:57.000000000 +0100
|
||||||
|
+++ netpbm-10.61.01/converter/pbm/cmuwmtopbm.c 2013-01-03 05:41:36.024984241 +0100
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
This program does not check the pad bits at the end of each row.
|
||||||
|
*/
|
||||||
|
|
||||||
|
-
|
||||||
|
+#include <stdint.h>
|
||||||
|
#include "pbm.h"
|
||||||
|
|
||||||
|
/*--------------------------
|
||||||
|
@@ -42,7 +42,7 @@ readCmuwmHeader(FILE * const ifP
|
||||||
|
"CMU window manager header EOF / read error";
|
||||||
|
uint32_t const cmuwmMagic = 0xf10040bb;
|
||||||
|
|
||||||
|
- long l;
|
||||||
|
+ uint32_t l;
|
||||||
|
short s;
|
||||||
|
int rc;
|
||||||
|
|
124
netpbm-docfix.patch
Normal file
124
netpbm-docfix.patch
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
diff -urNp old/userguide/cameratopam.html new/userguide/cameratopam.html
|
||||||
|
--- old/userguide/cameratopam.html 2017-09-05 09:05:16.000000000 +0200
|
||||||
|
+++ new/userguide/cameratopam.html 2017-09-05 13:16:33.622352535 +0200
|
||||||
|
@@ -25,10 +25,10 @@ cameratopam - convert raw camera image t
|
||||||
|
[<b>-balance_camera</b>]
|
||||||
|
[<b>-red_scale=</b><i>float</i>]
|
||||||
|
[<b>-blue_scale=</b><i>float</i>]
|
||||||
|
-[<b>-brightness=</b><i>fraction</i>]
|
||||||
|
+[<b>-bright=</b><i>fraction</i>]
|
||||||
|
[<b>-no_clip_color</b>]
|
||||||
|
[<b>-rgb</b>]
|
||||||
|
-[<b>-secondary</b>]
|
||||||
|
+[<b>-use_secondary</b>]
|
||||||
|
[<b>-linear</b>]
|
||||||
|
[<b>-verbose</b>]
|
||||||
|
|
||||||
|
@@ -106,7 +106,7 @@ the default.
|
||||||
|
<dd>Further adjust the color balance by multiplying the red and blue
|
||||||
|
channels by these values. Both default to 1.0.
|
||||||
|
|
||||||
|
-<dt><b>-brightness=</b><i>float</i>
|
||||||
|
+<dt><b>-bright=</b><i>float</i>
|
||||||
|
|
||||||
|
<dd>Change the output brightness. Default is 1.0.
|
||||||
|
|
||||||
|
@@ -114,14 +114,14 @@ channels by these values. Both default
|
||||||
|
|
||||||
|
<dd>By default, <b>cameratoapm</b> clips all colors to prevent pink
|
||||||
|
hues in the highlights. Combine this option with
|
||||||
|
-<b>-brightness=0.25</b> to leave the image data completely unclipped.
|
||||||
|
+<b>-bright=0.25</b> to leave the image data completely unclipped.
|
||||||
|
|
||||||
|
<dt><b>-rgb</b>
|
||||||
|
|
||||||
|
<dd>Write raw camera colors to the output file. By default,
|
||||||
|
<b>cameratoapm</b> converts to sRGB colorspace.
|
||||||
|
|
||||||
|
-<dt><b>-secondary</b>
|
||||||
|
+<dt><b>-use_secondary</b>
|
||||||
|
|
||||||
|
<dd>For cameras based on the Fuji Super CCD SR, this option causes
|
||||||
|
<b>cameratopam</b> to use the secondary sensors, in effect
|
||||||
|
diff -urNp old/userguide/fiascotopnm.html new/userguide/fiascotopnm.html
|
||||||
|
--- old/userguide/fiascotopnm.html 2017-09-05 09:05:16.000000000 +0200
|
||||||
|
+++ new/userguide/fiascotopnm.html 2017-09-05 13:32:51.810458154 +0200
|
||||||
|
@@ -51,7 +51,7 @@ the output file(s) are written to the fi
|
||||||
|
this list. Otherwise, the current directory is used to store the
|
||||||
|
output file(s).
|
||||||
|
|
||||||
|
-<DT><B>-z</B>, <B>--fast</B>
|
||||||
|
+<DT><B>-r</B>, <B>--fast</B>
|
||||||
|
<DD>
|
||||||
|
Decompress images in the 4:2:0 format; i.e., each chroma channel is
|
||||||
|
decompressed to an image of halved width and height. Use this option
|
||||||
|
@@ -83,7 +83,7 @@ given amount <I>N</I>. <I>N</I> is 1 (mi
|
||||||
|
is 70. When <I>N</I>=0, then the smoothing amount specified in the
|
||||||
|
FIASCO file is used (defined by the FIASCO coder).
|
||||||
|
|
||||||
|
-<DT><B>-F</B> <I>N</I>, <B>--fps=</B><I>N</I>
|
||||||
|
+<DT><B>-F</B> <I>N</I>, <B>--framerate=</B><I>N</I>
|
||||||
|
<DD>
|
||||||
|
Set number of frames per second to <I>N</I>. When using this option,
|
||||||
|
the frame rate specified in the FIASCO file is overridden.
|
||||||
|
@@ -113,13 +113,8 @@ following methods (in the specified orde
|
||||||
|
<LI>--config=<I>name</I>
|
||||||
|
</OL>
|
||||||
|
|
||||||
|
-<DT><B>-h</B>, <B>--info</B>
|
||||||
|
-<DD>
|
||||||
|
-Print brief help, then exit.
|
||||||
|
-
|
||||||
|
-<DT><B>-H</B>, <B>--help</B>
|
||||||
|
-<DD>
|
||||||
|
-Print detailed help, then exit.
|
||||||
|
+<DT><B>-h</B>, <B>--help</B>
|
||||||
|
+Print help, then exit.
|
||||||
|
|
||||||
|
</DL>
|
||||||
|
|
||||||
|
diff -urNp old/userguide/pamperspective.html new/userguide/pamperspective.html
|
||||||
|
--- old/userguide/pamperspective.html 2017-09-05 09:05:16.000000000 +0200
|
||||||
|
+++ new/userguide/pamperspective.html 2017-09-05 13:23:15.869997105 +0200
|
||||||
|
@@ -220,7 +220,7 @@ default rectangle as the "frame." The vi
|
||||||
|
a rectangle the axes of which are parallel to those of the frame.
|
||||||
|
|
||||||
|
<p>The frame options are additive. All the parts of the image
|
||||||
|
-specified by either margin options, <b>--include_frame</b>, or
|
||||||
|
+specified by either margin options, <b>--frame_include</b>, or
|
||||||
|
<b>--include</b> (or their defaults) are in the visible part. The
|
||||||
|
visible part is the smallest possible rectangle that contains the
|
||||||
|
parts specified those three ways.
|
||||||
|
diff -urNp old/converter/pbm/pbmtoepson.c new/converter/pbm/pbmtoepson.c
|
||||||
|
--- old/converter/pbm/pbmtoepson.c 2018-01-04 14:26:14.740024843 +0100
|
||||||
|
+++ new/converter/pbm/pbmtoepson.c 2018-01-04 14:28:47.970518766 +0100
|
||||||
|
@@ -75,7 +75,7 @@ parseCommandLine(int ar
|
||||||
|
&dpiSpec, 0);
|
||||||
|
OPTENT3(0, "adjacent", OPT_FLAG, NULL,
|
||||||
|
&adjacentSpec, 0);
|
||||||
|
- OPTENT3(0, "nonadjacent", OPT_FLAG, NULL,
|
||||||
|
+ OPTENT3(0, "noadjacent", OPT_FLAG, NULL,
|
||||||
|
&nonadjacentSpec, 0);
|
||||||
|
|
||||||
|
opt.opt_table = option_def;
|
||||||
|
diff -urNp old/userguide/pbmtoepson.html new/userguide/pbmtoepson.html
|
||||||
|
--- old/userguide/pbmtoepson.html 2018-01-04 14:26:14.586024719 +0100
|
||||||
|
+++ new/userguide/pbmtoepson.html 2018-01-04 14:27:56.466847698 +0100
|
||||||
|
@@ -18,7 +18,7 @@ pbmtoepson - convert a PBM image into Ep
|
||||||
|
[<b>-dpi=</b><i>n</i>]
|
||||||
|
[<b>-protocol=</b>{<b>escp9</b>|<B>escp</B>}]
|
||||||
|
[<b>-adjacent</b>]
|
||||||
|
-[<b>-nonadjacent</b>]
|
||||||
|
+[<b>-noadjacent</b>]
|
||||||
|
|
||||||
|
[<I>pbmfile</I>]
|
||||||
|
|
||||||
|
@@ -74,7 +74,7 @@ print density for you consistent with yo
|
||||||
|
<p>This option was new in Netpbm 10.23 (July 2004).
|
||||||
|
|
||||||
|
<dt><b>-adjacent</b>
|
||||||
|
-<dt><b>-nonadjacent</b>
|
||||||
|
+<dt><b>-noadjacent</b>
|
||||||
|
|
||||||
|
<dd>These options determine whether the output uses "adjacent dot
|
||||||
|
printing" or not, whatever that is.
|
12
netpbm-fiasco-overflow.patch
Normal file
12
netpbm-fiasco-overflow.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up netpbm-10.47.09/converter/other/fiasco/lib/image.h.fiasco-overflow netpbm-10.47.09/converter/other/fiasco/lib/image.h
|
||||||
|
--- netpbm-10.47.09/converter/other/fiasco/lib/image.h.fiasco-overflow 2010-01-25 09:00:48.000000000 +0100
|
||||||
|
+++ netpbm-10.47.09/converter/other/fiasco/lib/image.h 2010-01-27 10:29:48.000000000 +0100
|
||||||
|
@@ -29,7 +29,7 @@ typedef struct image
|
||||||
|
* Image data
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
- char id [7];
|
||||||
|
+ char id [8];
|
||||||
|
unsigned reference_count;
|
||||||
|
unsigned width; /* Width of the image */
|
||||||
|
unsigned height; /* Height of the image */
|
22
netpbm-gcc4.patch
Normal file
22
netpbm-gcc4.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff -up netpbm-10.58.01/lib/pm.h.gcc4 netpbm-10.58.01/lib/pm.h
|
||||||
|
--- netpbm-10.58.01/lib/pm.h.gcc4 2012-04-09 19:08:08.885137097 +0200
|
||||||
|
+++ netpbm-10.58.01/lib/pm.h 2012-04-09 19:08:08.894136984 +0200
|
||||||
|
@@ -18,6 +18,7 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <setjmp.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
diff -up netpbm-10.58.01/urt/rle.h.gcc4 netpbm-10.58.01/urt/rle.h
|
||||||
|
--- netpbm-10.58.01/urt/rle.h.gcc4 2012-04-09 19:08:08.000000000 +0200
|
||||||
|
+++ netpbm-10.58.01/urt/rle.h 2012-04-09 19:08:39.137758887 +0200
|
||||||
|
@@ -34,6 +34,7 @@
|
||||||
|
#define RLE_H
|
||||||
|
|
||||||
|
#include <stdio.h> /* Declare FILE. */
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
enum rle_dispatch {
|
||||||
|
NO_DISPATCH = -1,
|
13
netpbm-glibc.patch
Normal file
13
netpbm-glibc.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
--- netpbm-10.35/converter/other/pnmtotiffcmyk.c.glibc 2006-09-18 12:20:06.000000000 +0200
|
||||||
|
+++ netpbm-10.35/converter/other/pnmtotiffcmyk.c 2007-08-23 09:18:30.000000000 +0200
|
||||||
|
@@ -974,8 +974,8 @@ int main( int argc, char **argv ) {
|
||||||
|
|
||||||
|
if ( (err = parseOpts( argc, argv, rt )) ) goto exit ;
|
||||||
|
|
||||||
|
- if ( (err = rt->in->open( rt->in, rt )) ) goto exit ;
|
||||||
|
- if ( (err = rt->out->open( rt->out, rt )) ) goto exit ;
|
||||||
|
+ if ( (err = (rt->in->open)( rt->in, rt )) ) goto exit ;
|
||||||
|
+ if ( (err = (rt->out->open)( rt->out, rt )) ) goto exit ;
|
||||||
|
|
||||||
|
while ( rt->in->hasMore( rt->in ) ) {
|
||||||
|
if ( (err = rt->in->next( rt->in, &r, &g, &b )) ) goto exit ;
|
184
netpbm-manfix.patch
Normal file
184
netpbm-manfix.patch
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
diff -urNp old/userguide/avstopam.html new/userguide/avstopam.html
|
||||||
|
--- old/userguide/avstopam.html 2017-09-05 13:58:08.338559550 +0200
|
||||||
|
+++ new/userguide/avstopam.html 2017-09-05 14:00:27.371039472 +0200
|
||||||
|
@@ -1,8 +1,7 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||||
|
+<html>
|
||||||
|
<head>
|
||||||
|
<title>Avstopam User Manual</title>
|
||||||
|
-<meta http-equiv="content-type" content="text/html; charset=us-ascii" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
diff -urNp old/userguide/escp2topbm.html new/userguide/escp2topbm.html
|
||||||
|
--- old/userguide/escp2topbm.html 2017-09-05 13:58:08.335559561 +0200
|
||||||
|
+++ new/userguide/escp2topbm.html 2017-09-05 14:01:20.226842694 +0200
|
||||||
|
@@ -6,6 +6,7 @@ Updated: 14 July 2015
|
||||||
|
<BR>
|
||||||
|
<A HREF="#index">Table Of Contents</A>
|
||||||
|
|
||||||
|
+<H2>NAME</H2>
|
||||||
|
escp2topbm - convert an ESC/P2 printer file to a PBM image
|
||||||
|
|
||||||
|
<H2 id="synopsis">SYNOPSIS</H2>
|
||||||
|
diff -urNp old/userguide/faxformat.html new/userguide/faxformat.html
|
||||||
|
--- old/userguide/faxformat.html 2017-09-05 13:58:08.337559553 +0200
|
||||||
|
+++ new/userguide/faxformat.html 2017-09-05 14:02:33.322571279 +0200
|
||||||
|
@@ -5,10 +5,11 @@
|
||||||
|
Updated: 03 December 2008
|
||||||
|
<BR>
|
||||||
|
|
||||||
|
+<H2>SYNOPSIS</H2>
|
||||||
|
<p>This page, part of the <a href="index.html">Netpbm user's guide</a>,
|
||||||
|
describes FAX formats in relation to Netpbm facilities.
|
||||||
|
|
||||||
|
-
|
||||||
|
+<H2>DESCRIPTION</H2>
|
||||||
|
<p>The ITU (formerly CCITT) publishes standards for operation of fax machines
|
||||||
|
(the idea is to provide a way to be sure that a fax machine is able to receive
|
||||||
|
a fax sent by another). These standards incidentally specify graphics file
|
||||||
|
diff -urNp old/userguide/pampaintspill.html new/userguide/pampaintspill.html
|
||||||
|
--- old/userguide/pampaintspill.html 2017-09-05 13:58:08.338559550 +0200
|
||||||
|
+++ new/userguide/pampaintspill.html 2017-09-05 14:03:32.625351620 +0200
|
||||||
|
@@ -1,8 +1,7 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
-<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
+<html>
|
||||||
|
<head>
|
||||||
|
<title>Pampaintspill User Manual</title>
|
||||||
|
-<meta http-equiv="content-type" content="text/html; charset=us-ascii" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
@@ -11,6 +10,7 @@
|
||||||
|
|
||||||
|
<p><a href="#index">Table Of Contents</a></p>
|
||||||
|
|
||||||
|
+<H2>NAME</H2>
|
||||||
|
<p>pampaintspill - smoothly spill colors into the background</p>
|
||||||
|
|
||||||
|
<h2><a name="synopsis">SYNOPSIS</a></h2>
|
||||||
|
diff -urNp old/userguide/pamrecolor.html new/userguide/pamrecolor.html
|
||||||
|
--- old/userguide/pamrecolor.html 2017-09-05 13:58:08.336559557 +0200
|
||||||
|
+++ new/userguide/pamrecolor.html 2017-09-05 14:04:34.714122098 +0200
|
||||||
|
@@ -1,8 +1,7 @@
|
||||||
|
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||||
|
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Pamrecolor User Manual</title>
|
||||||
|
-<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
@@ -11,7 +10,7 @@
|
||||||
|
|
||||||
|
<p>Updated: 31 July 2010</p>
|
||||||
|
|
||||||
|
-<p><a href="#contents">Table Of Contents</a></p>
|
||||||
|
+<p><a href="#index">Table Of Contents</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="name">NAME</h2>
|
||||||
|
diff -urNp old/userguide/pamsistoaglyph.html new/userguide/pamsistoaglyph.html
|
||||||
|
--- old/userguide/pamsistoaglyph.html 2017-09-05 13:58:08.334559565 +0200
|
||||||
|
+++ new/userguide/pamsistoaglyph.html 2017-09-05 14:05:25.865944327 +0200
|
||||||
|
@@ -1,8 +1,7 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
-<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
+<html>
|
||||||
|
<head>
|
||||||
|
<title>Pamsistoaglyph User Manual</title>
|
||||||
|
-<meta http-equiv="content-type" content="text/html; charset=us-ascii" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
diff -urNp old/userguide/pamstereogram.html new/userguide/pamstereogram.html
|
||||||
|
--- old/userguide/pamstereogram.html 2017-09-05 13:58:08.337559553 +0200
|
||||||
|
+++ new/userguide/pamstereogram.html 2017-09-05 14:13:28.523959069 +0200
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
-<!DOCTYPE html>
|
||||||
|
-<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
+<html>
|
||||||
|
<head>
|
||||||
|
<title>Pamstereogram User Manual</title>
|
||||||
|
</head>
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
|
||||||
|
<p>Updated: 19 June 2015</p>
|
||||||
|
|
||||||
|
-<p><a href="#contents">Table Of Contents</a></p>
|
||||||
|
+<p><a href="#index">Table Of Contents</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="name">NAME</h2>
|
||||||
|
diff -urNp old/userguide/pamtoavs.html new/userguide/pamtoavs.html
|
||||||
|
--- old/userguide/pamtoavs.html 2017-09-05 13:58:08.329559583 +0200
|
||||||
|
+++ new/userguide/pamtoavs.html 2017-09-05 14:05:49.299863901 +0200
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||||
|
+<html>
|
||||||
|
<head>
|
||||||
|
<title>Pamtoavs User Manual</title>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=us-ascii" />
|
||||||
|
diff -urNp old/userguide/pamtooctaveimg.html new/userguide/pamtooctaveimg.html
|
||||||
|
--- old/userguide/pamtooctaveimg.html 2017-09-05 13:58:08.335559561 +0200
|
||||||
|
+++ new/userguide/pamtooctaveimg.html 2017-09-05 14:06:21.825752356 +0200
|
||||||
|
@@ -1,8 +1,7 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||||
|
+<html>
|
||||||
|
<head>
|
||||||
|
<title>Pamtooctaveimg User Manual</title>
|
||||||
|
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
diff -urNp old/userguide/pnmflip.html new/userguide/pnmflip.html
|
||||||
|
--- old/userguide/pnmflip.html 2017-09-05 13:58:08.336559557 +0200
|
||||||
|
+++ new/userguide/pnmflip.html 2017-09-05 14:07:15.065963977 +0200
|
||||||
|
@@ -4,9 +4,11 @@
|
||||||
|
<BODY>
|
||||||
|
<H1>pnmflip</H1>
|
||||||
|
<BR>
|
||||||
|
+<H2>NAME</H2>
|
||||||
|
<p><b>pnmflip</b> was replaced in Netpbm 10.13 (December 2002) by
|
||||||
|
<b><a href="pamflip.html">pamflip</a></b>.
|
||||||
|
|
||||||
|
+<H2>DESCRIPTION</H2>
|
||||||
|
<P><B>pamflip</b> is mostly backward compatible with <b>pnmflip</b>,
|
||||||
|
but works on PAM images too.
|
||||||
|
|
||||||
|
diff -urNp old/userguide/pnmmercator.html new/userguide/pnmmercator.html
|
||||||
|
--- old/userguide/pnmmercator.html 2017-09-05 13:58:08.334559565 +0200
|
||||||
|
+++ new/userguide/pnmmercator.html 2017-09-05 14:08:08.305214742 +0200
|
||||||
|
@@ -1,7 +1,6 @@
|
||||||
|
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
-<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||||
|
<title>PnmMercator User Manual</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
diff -urNp old/userguide/ppmtogif.html new/userguide/ppmtogif.html
|
||||||
|
--- old/userguide/ppmtogif.html 2017-09-05 13:58:08.337559553 +0200
|
||||||
|
+++ new/userguide/ppmtogif.html 2017-09-05 14:09:51.450583126 +0200
|
||||||
|
@@ -4,11 +4,14 @@
|
||||||
|
<BODY>
|
||||||
|
<H1>ppmtogif</H1>
|
||||||
|
<BR>
|
||||||
|
+<H2>NAME</H2>
|
||||||
|
<p><b>ppmtogif</b> was replaced in Netpbm 10.37 (December 2006) by
|
||||||
|
<b><a href="pamtogif.html">pamtogif</a></b>.
|
||||||
|
|
||||||
|
+<H2>SYNOPSIS</H2>
|
||||||
|
<P><B>pamtogif</b> is mostly backward compatible with <b>ppmtogif</b>.
|
||||||
|
|
||||||
|
+<H2>DESCRIPTION</H2>
|
||||||
|
<P>One way <b>pamtogif</b> is not backward compatible with <b>ppmtogif</b>
|
||||||
|
is that to specify a transparency (alpha) mask with <b>ppmtogif</b>, you
|
||||||
|
supply the transparency as a separate pseudo-PGM image and use the
|
1343
netpbm-manual-pages.patch
Normal file
1343
netpbm-manual-pages.patch
Normal file
File diff suppressed because it is too large
Load Diff
11
netpbm-multilib.patch
Normal file
11
netpbm-multilib.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -up netpbm-10.47.04/buildtools/endiangen.c.multilib netpbm-10.47.04/buildtools/endiangen.c
|
||||||
|
--- netpbm-10.47.04/buildtools/endiangen.c.multilib 2009-10-21 13:38:54.000000000 +0200
|
||||||
|
+++ netpbm-10.47.04/buildtools/endiangen.c 2009-10-21 14:35:58.000000000 +0200
|
||||||
|
@@ -87,7 +87,6 @@ main(int argc, char **argv) {
|
||||||
|
byteOrder() == ENDIAN_LITTLE ? "LITTLE_ENDIAN" : "BIG_ENDIAN");
|
||||||
|
printf("#endif\n");
|
||||||
|
printf("\n");
|
||||||
|
- printf("#define BITS_PER_LONG %u\n", bitsPerLong());
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
11
netpbm-pamtojpeg2k.patch
Normal file
11
netpbm-pamtojpeg2k.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -up netpbm-10.47.12/converter/other/jpeg2000/pamtojpeg2k.c.pamtojpeg2kfix netpbm-10.47.12/converter/other/jpeg2000/pamtojpeg2k.c
|
||||||
|
--- netpbm-10.47.12/converter/other/jpeg2000/pamtojpeg2k.c.pamtojpeg2kfix 2010-04-27 15:47:10.000000000 +0200
|
||||||
|
+++ netpbm-10.47.12/converter/other/jpeg2000/pamtojpeg2k.c 2010-05-03 15:37:49.934269588 +0200
|
||||||
|
@@ -518,7 +518,5 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
|
pm_close(ifP);
|
||||||
|
|
||||||
|
- pm_close(stdout);
|
||||||
|
-
|
||||||
|
return 0;
|
||||||
|
}
|
@ -1,8 +1,25 @@
|
|||||||
diff --git a/editor/ppmfade b/editor/ppmfade
|
diff -urNp old/editor/ppmfade new/editor/ppmfade
|
||||||
index 5091651..23b3ecc 100755
|
--- old/editor/ppmfade 2017-11-01 11:47:49.869611402 +0100
|
||||||
--- a/editor/ppmfade
|
+++ new/editor/ppmfade 2017-11-01 11:53:25.524973342 +0100
|
||||||
+++ b/editor/ppmfade
|
@@ -84,7 +84,7 @@ for ($n = 0; $n < @ARGV; $n++) {
|
||||||
@@ -113,6 +113,9 @@ for ($n = 0; $n < @ARGV; $n++) {
|
if (-e $first_file) {
|
||||||
|
} else {
|
||||||
|
print "I can't find first file '$first_file'\n";
|
||||||
|
- exit 20;
|
||||||
|
+ exit 1;
|
||||||
|
}
|
||||||
|
} elsif ($ARGV[$n] eq "-l") {
|
||||||
|
$n++;
|
||||||
|
@@ -92,7 +92,7 @@ for ($n = 0; $n < @ARGV; $n++) {
|
||||||
|
if (-e $last_file) {
|
||||||
|
} else {
|
||||||
|
print "I can't find last file '$last_file'\n";
|
||||||
|
- exit 20;
|
||||||
|
+ exit 1;
|
||||||
|
}
|
||||||
|
} elsif ($ARGV[$n] eq "-base") {
|
||||||
|
$n++;
|
||||||
|
@@ -113,9 +113,12 @@ for ($n = 0; $n < @ARGV; $n++) {
|
||||||
$mode = $BLOCK;
|
$mode = $BLOCK;
|
||||||
} elsif ("$ARGV[$n]" eq "-mix") {
|
} elsif ("$ARGV[$n]" eq "-mix") {
|
||||||
$mode = $MIX;
|
$mode = $MIX;
|
||||||
@ -11,4 +28,30 @@ index 5091651..23b3ecc 100755
|
|||||||
+ exit 1;
|
+ exit 1;
|
||||||
} else {
|
} else {
|
||||||
print "Unknown argument: $ARGV[$n]\n";
|
print "Unknown argument: $ARGV[$n]\n";
|
||||||
exit 100;
|
- exit 100;
|
||||||
|
+ exit 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#
|
||||||
|
@@ -134,18 +137,18 @@ if ($first_file ne "undefined") {
|
||||||
|
$width = $1; $height = $2;
|
||||||
|
} else {
|
||||||
|
print("Unrecognized results from pnmfile on $first_file.\n");
|
||||||
|
- exit(50);
|
||||||
|
+ exit 1;
|
||||||
|
}
|
||||||
|
} elsif ($last_file ne "undefined") {
|
||||||
|
if ((`pnmfile $last_file` =~ m{\b(\d+)\sby\s(\d+)} )) {
|
||||||
|
$width = $1; $height = $2;
|
||||||
|
} else {
|
||||||
|
print("Unrecognized results from pnmfile on $first_file.\n");
|
||||||
|
- exit(50);
|
||||||
|
+ exit 1;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
print("ppmfade: You must specify -f or -l (or both)\n");
|
||||||
|
- exit(90);
|
||||||
|
+ exit 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
print("Frames are " . $width . "W x " . $height . "H\n");
|
||||||
|
21
netpbm-time.patch
Normal file
21
netpbm-time.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -up netpbm-10.47.05/converter/other/fiasco/config.h.time netpbm-10.47.05/converter/other/fiasco/config.h
|
||||||
|
--- netpbm-10.47.05/converter/other/fiasco/config.h.time 2009-12-10 08:34:36.000000000 +0100
|
||||||
|
+++ netpbm-10.47.05/converter/other/fiasco/config.h 2009-12-10 08:43:54.000000000 +0100
|
||||||
|
@@ -19,7 +19,7 @@
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
|
||||||
|
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
||||||
|
-#define TIME_WITH_SYS_TIME 1
|
||||||
|
+/* #undef TIME_WITH_SYS_TIME */
|
||||||
|
|
||||||
|
/* Define if the X Window System is missing or not being used. */
|
||||||
|
#define X_DISPLAY_MISSING 1
|
||||||
|
@@ -75,7 +75,7 @@
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
|
/* Define if you have the <sys/time.h> header file. */
|
||||||
|
-#define HAVE_SYS_TIME_H 1
|
||||||
|
+/* #undef HAVE_SYS_TIME_H */
|
||||||
|
|
||||||
|
/* Define if you have the <unistd.h> header file. */
|
||||||
|
#define HAVE_UNISTD_H 1
|
11
netpbm-xwdfix.patch
Normal file
11
netpbm-xwdfix.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- netpbm-10.35/converter/other/xwdtopnm.c.xwdfix 2006-09-18 13:24:50.000000000 +0200
|
||||||
|
+++ netpbm-10.35/converter/other/xwdtopnm.c 2006-09-18 13:27:26.000000000 +0200
|
||||||
|
@@ -945,7 +945,7 @@ getpix(pixelReader * const rdrP) {
|
||||||
|
unsigned long const bitsToTakeMask = lsbmask[nBitsToTake];
|
||||||
|
/* E.g. if nbitsToTake is 4, this is 0x0000000F */
|
||||||
|
|
||||||
|
- unsigned long bitsToTake;
|
||||||
|
+ unsigned int bitsToTake;
|
||||||
|
/* The actual bits we take, in the 'nBitsToTake' low bits */
|
||||||
|
|
||||||
|
assert(nBitsToTake <= 32);
|
18
netpbm.spec
18
netpbm.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A library for handling different graphics file formats
|
Summary: A library for handling different graphics file formats
|
||||||
Name: netpbm
|
Name: netpbm
|
||||||
Version: 10.82.00
|
Version: 10.82.00
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
# See copyright_summary for details
|
# See copyright_summary for details
|
||||||
License: BSD and GPLv2 and IJG and MIT and Public Domain
|
License: BSD and GPLv2 and IJG and MIT and Public Domain
|
||||||
URL: http://netpbm.sourceforge.net/
|
URL: http://netpbm.sourceforge.net/
|
||||||
@ -18,6 +18,19 @@ Patch2: netpbm-ppmfadeusage.patch
|
|||||||
Patch3: netpbm-noppmtompeg.patch
|
Patch3: netpbm-noppmtompeg.patch
|
||||||
Patch4: netpbm-CVE-2017-2587.patch
|
Patch4: netpbm-CVE-2017-2587.patch
|
||||||
Patch5: netpbm-python3.patch
|
Patch5: netpbm-python3.patch
|
||||||
|
Patch6: netpbm-time.patch
|
||||||
|
Patch7: netpbm-gcc4.patch
|
||||||
|
Patch8: netpbm-bmptopnm.patch
|
||||||
|
Patch9: netpbm-CAN-2005-2471.patch
|
||||||
|
Patch10: netpbm-xwdfix.patch
|
||||||
|
Patch11: netpbm-multilib.patch
|
||||||
|
Patch12: netpbm-glibc.patch
|
||||||
|
Patch13: netpbm-docfix.patch
|
||||||
|
Patch14: netpbm-fiasco-overflow.patch
|
||||||
|
Patch15: netpbm-cmuwtopbm.patch
|
||||||
|
Patch16: netpbm-pamtojpeg2k.patch
|
||||||
|
Patch17: netpbm-manfix.patch
|
||||||
|
Patch18: netpbm-manual-pages.patch
|
||||||
BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex
|
BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex
|
||||||
BuildRequires: libX11-devel, perl-generators, python3, jasper-devel, libxml2-devel
|
BuildRequires: libX11-devel, perl-generators, python3, jasper-devel, libxml2-devel
|
||||||
%if (0%{?fedora} && 0%{?fedora} < 28) || (0%{?rhel} || 0%{?rhel} <= 7)
|
%if (0%{?fedora} && 0%{?fedora} < 28) || (0%{?rhel} || 0%{?rhel} <= 7)
|
||||||
@ -212,6 +225,9 @@ popd
|
|||||||
%doc userguide/*
|
%doc userguide/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 04 2018 Josef Ridky <jridky@redhat.com> - 10.82.00-3
|
||||||
|
- Backport unimplemented fixes from 10.79.00 (#1585695)
|
||||||
|
|
||||||
* Wed Apr 11 2018 Rafael Santos <rdossant@redhat.com> - 10.82.00-2
|
* Wed Apr 11 2018 Rafael Santos <rdossant@redhat.com> - 10.82.00-2
|
||||||
- Use standard Fedora build and linker flags (bug #1543858)
|
- Use standard Fedora build and linker flags (bug #1543858)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user