Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/netpbm/files/
Date: Thu, 29 Dec 2016 13:14:38
Message-Id: 1483017106.77ebab9ca4ea7e38c8be262de22800ff2d68d972.soap@gentoo
1 commit: 77ebab9ca4ea7e38c8be262de22800ff2d68d972
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Dec 23 16:10:17 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 13:11:46 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77ebab9c
7
8 media-libs/netpbm: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/3224
11
12 .../files/netpbm-10.51.00-pnmconvol-nooffset.patch | 83 ----------------------
13 .../files/netpbm-10.51.00-ppmtompeg-free.patch | 35 ---------
14 .../files/netpbm-10.51.00-underlinking.patch | 16 -----
15 3 files changed, 134 deletions(-)
16
17 diff --git a/media-libs/netpbm/files/netpbm-10.51.00-pnmconvol-nooffset.patch b/media-libs/netpbm/files/netpbm-10.51.00-pnmconvol-nooffset.patch
18 deleted file mode 100644
19 index 1eb5506..00000000
20 --- a/media-libs/netpbm/files/netpbm-10.51.00-pnmconvol-nooffset.patch
21 +++ /dev/null
22 @@ -1,83 +0,0 @@
23 -taken from upstream
24 -
25 -http://bugs.gentoo.org/338230
26 -
27 -Index: editor/pnmconvol.c
28 -===================================================================
29 ---- editor/pnmconvol.c (revision 1297)
30 -+++ editor/pnmconvol.c (revision 1298)
31 -@@ -455,13 +455,13 @@ static void
32 - convKernelCreatePnm(struct pam * const cpamP,
33 - tuple * const * const ctuples,
34 - unsigned int const depth,
35 -- bool const offsetPgm,
36 -+ bool const offsetPnm,
37 - struct convKernel ** const convKernelPP) {
38 - /*----------------------------------------------------------------------------
39 -- Compute the convolution matrix in normalized form from the PGM
40 -- form. Each element of the output matrix is the actual weight we give an
41 -- input pixel -- i.e. the thing by which we multiple a value from the
42 -- input image.
43 -+ Compute the convolution matrix in normalized form from the PGM form
44 -+ 'ctuples'/'cpamP'. Each element of the output matrix is the actual weight
45 -+ we give an input pixel -- i.e. the thing by which we multiple a value from
46 -+ the input image.
47 -
48 - 'depth' is the required number of planes in the kernel. If 'ctuples' has
49 - fewer planes than that, we duplicate as necessary. E.g. if 'ctuples' is
50 -@@ -470,13 +470,13 @@ convKernelCreatePnm(struct pam *
51 - 'ctuples' has more planes than specified, we ignore the higher numbered
52 - ones.
53 -
54 -- 'offsetPgm' means the PGM convolution matrix is defined in offset form so
55 -+ 'offsetPnm' means the PNM convolution matrix is defined in offset form so
56 - that it can represent negative values. E.g. with maxval 100, 50 means
57 - 0, 100 means 50, and 0 means -50. If 'offsetPgm' is false, 0 means 0
58 - and there are no negative weights.
59 - -----------------------------------------------------------------------------*/
60 -- double const scale = (offsetPgm ? 2.0 : 1.0) / cpamP->maxval;
61 -- double const offset = offsetPgm ? - 1.0 : 0.0;
62 -+ double const scale = (offsetPnm ? 2.0 : 1.0) / cpamP->maxval;
63 -+ double const offset = offsetPnm ? - 1.0 : 0.0;
64 - unsigned int const planes = MIN(3, depth);
65 -
66 - struct convKernel * convKernelP;
67 -@@ -579,9 +579,19 @@ normalizeKernel(struct convKernel * cons
68 - static void
69 - getKernelPnm(const char * const fileName,
70 - unsigned int const depth,
71 -- bool const nooffset,
72 -+ bool const offset,
73 - struct convKernel ** const convKernelPP) {
74 -+/*----------------------------------------------------------------------------
75 -+ Get the convolution kernel from the PNM file named 'fileName'.
76 -+ 'offset' means the PNM convolution matrix is defined in offset form so
77 -+ that it can represent negative values. E.g. with maxval 100, 50 means
78 -+ 0, 100 means 50, and 0 means -50. If 'offsetPgm' is false, 0 means 0
79 -+ and there are no negative weights.
80 -+
81 -+ Make the kernel suitable for convolving an image of depth 'depth'.
82 -
83 -+ Return the kernel as *convKernelPP.
84 -+-----------------------------------------------------------------------------*/
85 - struct pam cpam;
86 - FILE * cifP;
87 - tuple ** ctuples;
88 -@@ -594,7 +604,7 @@ getKernelPnm(const char * const
89 -
90 - validateKernelDimensions(cpam.width, cpam.height);
91 -
92 -- convKernelCreatePnm(&cpam, ctuples, depth, nooffset, convKernelPP);
93 -+ convKernelCreatePnm(&cpam, ctuples, depth, offset, convKernelPP);
94 - }
95 -
96 -
97 -@@ -893,7 +903,7 @@ getKernel(struct cmdlineInfo const cmd
98 - struct convKernel * convKernelP;
99 -
100 - if (cmdline.pnmMatrixFileName)
101 -- getKernelPnm(cmdline.pnmMatrixFileName, depth, cmdline.nooffset,
102 -+ getKernelPnm(cmdline.pnmMatrixFileName, depth, !cmdline.nooffset,
103 - &convKernelP);
104 - else if (cmdline.matrixfile)
105 - convKernelCreateSimpleFile(cmdline.matrixfile, cmdline.normalize,
106
107 diff --git a/media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-free.patch b/media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-free.patch
108 deleted file mode 100644
109 index 0c1e485..00000000
110 --- a/media-libs/netpbm/files/netpbm-10.51.00-ppmtompeg-free.patch
111 +++ /dev/null
112 @@ -1,35 +0,0 @@
113 -fix from upstream
114 -
115 -------------------------------------------------------------------------
116 -r1285 | giraffedata | 2010-09-18 16:13:39 -0400 (Sat, 18 Sep 2010) | 1 line
117 -
118 -Fix free of non-allocated memory
119 -
120 -Index: converter/ppm/ppmtompeg/param.c
121 -===================================================================
122 ---- converter/ppm/ppmtompeg/param.c (revision 1284)
123 -+++ converter/ppm/ppmtompeg/param.c (revision 1285)
124 -@@ -283,8 +283,8 @@ GetFrameRate(const char * const p)
125 -
126 -
127 - static void
128 --mergeInputSource(struct inputSource * const baseSourceP,
129 -- struct inputSource * const addedSourceP) {
130 -+mergeInputSource(struct inputSource * const baseSourceP,
131 -+ const struct inputSource * const addedSourceP) {
132 -
133 - unsigned int i;
134 -
135 -@@ -294,12 +294,6 @@ mergeInputSource(struct inputSource * co
136 - for (i = 0; i < addedSourceP->numInputFileEntries; ++i)
137 - baseSourceP->inputFileEntries[baseSourceP->numInputFileEntries++] =
138 - addedSourceP->inputFileEntries[i];
139 --
140 -- free(addedSourceP);
141 -- /* Note the space allocated for the *addedSourceP input file
142 -- entries themselves is still allocated, and used by
143 -- *baseSourceP.
144 -- */
145 - }
146 -
147 -
148
149 diff --git a/media-libs/netpbm/files/netpbm-10.51.00-underlinking.patch b/media-libs/netpbm/files/netpbm-10.51.00-underlinking.patch
150 deleted file mode 100644
151 index e161242..00000000
152 --- a/media-libs/netpbm/files/netpbm-10.51.00-underlinking.patch
153 +++ /dev/null
154 @@ -1,16 +0,0 @@
155 - converter/other/Makefile | 2 +-
156 - 1 files changed, 1 insertions(+), 1 deletions(-)
157 -
158 -diff --git a/converter/other/Makefile b/converter/other/Makefile
159 -index 1417cd3..c178101 100644
160 ---- a/converter/other/Makefile
161 -+++ b/converter/other/Makefile
162 -@@ -167,7 +167,7 @@ pngtopam: %: %.o pngx.o $(NETPBMLIB) $(LIBOPT)
163 - pnmtopng: %: %.o pngx.o pngtxt.o $(NETPBMLIB) $(LIBOPT)
164 - $(LD) -o $@ $@.o pngx.o pngtxt.o \
165 - $(shell $(LIBOPT) $(NETPBMLIB)) \
166 -- $(PNGLIB_LIBOPTS) $(MATHLIB) $(LDFLAGS) $(LDLIBS) $(RPATH) $(LADD)
167 -+ $(PNGLIB_LIBOPTS) $(MATHLIB) $(LDFLAGS) $(LDLIBS) $(RPATH) $(LADD) -lz
168 -
169 - pamrgbatopng: %: %.o $(NETPBMLIB) $(LIBOPT)
170 - $(LD) -o $@ $@.o \