1 |
dilfridge 12/06/07 21:37:13 |
2 |
|
3 |
Added: cups-filters-9999-warnings.patch |
4 |
cups-filters-9999-beta.patch |
5 |
cups-filters-9999-lib.patch |
6 |
Log: |
7 |
Started with live ebuild, does not link yet |
8 |
|
9 |
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 net-print/cups-filters/files/cups-filters-9999-warnings.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups-filters/files/cups-filters-9999-warnings.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups-filters/files/cups-filters-9999-warnings.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: cups-filters-9999-warnings.patch |
18 |
=================================================================== |
19 |
diff -ruN cups-filters-9999.orig/configure.ac cups-filters-9999/configure.ac |
20 |
--- cups-filters-9999.orig/configure.ac 2012-06-07 23:05:15.965578244 +0200 |
21 |
+++ cups-filters-9999/configure.ac 2012-06-07 23:17:14.788618345 +0200 |
22 |
@@ -382,8 +382,8 @@ |
23 |
]) |
24 |
AS_IF([test x"$GCC" = "xyes"], [ |
25 |
# Be tough with warnings and produce less careless code |
26 |
- CFLAGS="$CFLAGS -Wall -pedantic -std=gnu99" |
27 |
- CXXFLAGS="$CXXFLAGS -Wall -pedantic -Weffc++" |
28 |
+ CFLAGS="$CFLAGS -pedantic -std=gnu99" |
29 |
+ CXXFLAGS="$CXXFLAGS -pedantic" |
30 |
]) |
31 |
CFLAGS="$CFLAGS -D_GNU_SOURCE" |
32 |
CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE" |
33 |
|
34 |
|
35 |
|
36 |
1.1 net-print/cups-filters/files/cups-filters-9999-beta.patch |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups-filters/files/cups-filters-9999-beta.patch?rev=1.1&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups-filters/files/cups-filters-9999-beta.patch?rev=1.1&content-type=text/plain |
40 |
|
41 |
Index: cups-filters-9999-beta.patch |
42 |
=================================================================== |
43 |
=== modified file 'configure.ac' |
44 |
--- configure.ac 2012-06-07 20:49:23 +0000 |
45 |
+++ configure.ac 2012-06-07 21:00:52 +0000 |
46 |
@@ -16,6 +16,7 @@ |
47 |
AC_INIT([cups-filters],[cups_filters_version]) |
48 |
AC_CONFIG_MACRO_DIR([m4]) |
49 |
m4_include([m4/ac_define_dir.m4]) |
50 |
+m4_include([m4/ax_compare_version.m4]) |
51 |
AM_INIT_AUTOMAKE([1.11 gnu dist-xz dist-bzip2]) |
52 |
AM_SILENT_RULES([yes]) |
53 |
AC_LANG([C++]) |
54 |
@@ -104,7 +105,7 @@ |
55 |
AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$CUPS_SERVERBIN", [Path to CUPS binaries dir]) |
56 |
AC_SUBST(CUPS_SERVERBIN) |
57 |
|
58 |
-AS_IF([test `echo $CUPS_VERSION | cut -d '.' -f 2` -ge "4"], [ |
59 |
+AX_COMPARE_VERSION([$CUPS_VERSION],[gt],[1.4], [ |
60 |
AC_DEFINE(CUPS_1_4, 1, [CUPS Version is 1.4 or newer]) |
61 |
]) |
62 |
AC_DEFINE(PDFTOPDF, [], [Needed for pdftopdf filter compilation]) |
63 |
|
64 |
=== added file 'm4/ax_compare_version.m4' |
65 |
--- m4/ax_compare_version.m4 1970-01-01 00:00:00 +0000 |
66 |
+++ m4/ax_compare_version.m4 2012-06-07 20:58:03 +0000 |
67 |
@@ -0,0 +1,177 @@ |
68 |
+# =========================================================================== |
69 |
+# http://www.gnu.org/software/autoconf-archive/ax_compare_version.html |
70 |
+# =========================================================================== |
71 |
+# |
72 |
+# SYNOPSIS |
73 |
+# |
74 |
+# AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) |
75 |
+# |
76 |
+# DESCRIPTION |
77 |
+# |
78 |
+# This macro compares two version strings. Due to the various number of |
79 |
+# minor-version numbers that can exist, and the fact that string |
80 |
+# comparisons are not compatible with numeric comparisons, this is not |
81 |
+# necessarily trivial to do in a autoconf script. This macro makes doing |
82 |
+# these comparisons easy. |
83 |
+# |
84 |
+# The six basic comparisons are available, as well as checking equality |
85 |
+# limited to a certain number of minor-version levels. |
86 |
+# |
87 |
+# The operator OP determines what type of comparison to do, and can be one |
88 |
+# of: |
89 |
+# |
90 |
+# eq - equal (test A == B) |
91 |
+# ne - not equal (test A != B) |
92 |
+# le - less than or equal (test A <= B) |
93 |
+# ge - greater than or equal (test A >= B) |
94 |
+# lt - less than (test A < B) |
95 |
+# gt - greater than (test A > B) |
96 |
+# |
97 |
+# Additionally, the eq and ne operator can have a number after it to limit |
98 |
+# the test to that number of minor versions. |
99 |
+# |
100 |
+# eq0 - equal up to the length of the shorter version |
101 |
+# ne0 - not equal up to the length of the shorter version |
102 |
+# eqN - equal up to N sub-version levels |
103 |
+# neN - not equal up to N sub-version levels |
104 |
+# |
105 |
+# When the condition is true, shell commands ACTION-IF-TRUE are run, |
106 |
+# otherwise shell commands ACTION-IF-FALSE are run. The environment |
107 |
+# variable 'ax_compare_version' is always set to either 'true' or 'false' |
108 |
+# as well. |
109 |
+# |
110 |
+# Examples: |
111 |
+# |
112 |
+# AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8]) |
113 |
+# AX_COMPARE_VERSION([3.15],[lt],[3.15.8]) |
114 |
+# |
115 |
+# would both be true. |
116 |
+# |
117 |
+# AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8]) |
118 |
+# AX_COMPARE_VERSION([3.15],[gt],[3.15.8]) |
119 |
+# |
120 |
+# would both be false. |
121 |
+# |
122 |
+# AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8]) |
123 |
+# |
124 |
+# would be true because it is only comparing two minor versions. |
125 |
+# |
126 |
+# AX_COMPARE_VERSION([3.15.7],[eq0],[3.15]) |
127 |
+# |
128 |
+# would be true because it is only comparing the lesser number of minor |
129 |
+# versions of the two values. |
130 |
+# |
131 |
+# Note: The characters that separate the version numbers do not matter. An |
132 |
+# empty string is the same as version 0. OP is evaluated by autoconf, not |
133 |
+# configure, so must be a string, not a variable. |
134 |
+# |
135 |
+# The author would like to acknowledge Guido Draheim whose advice about |
136 |
+# the m4_case and m4_ifvaln functions make this macro only include the |
137 |
+# portions necessary to perform the specific comparison specified by the |
138 |
+# OP argument in the final configure script. |
139 |
+# |
140 |
+# LICENSE |
141 |
+# |
142 |
+# Copyright (c) 2008 Tim Toolan <toolan@×××××××.edu> |
143 |
+# |
144 |
+# Copying and distribution of this file, with or without modification, are |
145 |
+# permitted in any medium without royalty provided the copyright notice |
146 |
+# and this notice are preserved. This file is offered as-is, without any |
147 |
+# warranty. |
148 |
+ |
149 |
+#serial 11 |
150 |
+ |
151 |
+dnl ######################################################################### |
152 |
+AC_DEFUN([AX_COMPARE_VERSION], [ |
153 |
+ AC_REQUIRE([AC_PROG_AWK]) |
154 |
+ |
155 |
+ # Used to indicate true or false condition |
156 |
+ ax_compare_version=false |
157 |
+ |
158 |
+ # Convert the two version strings to be compared into a format that |
159 |
+ # allows a simple string comparison. The end result is that a version |
160 |
+ # string of the form 1.12.5-r617 will be converted to the form |
161 |
+ # 0001001200050617. In other words, each number is zero padded to four |
162 |
+ # digits, and non digits are removed. |
163 |
+ AS_VAR_PUSHDEF([A],[ax_compare_version_A]) |
164 |
+ A=`echo "$1" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \ |
165 |
+ -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \ |
166 |
+ -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \ |
167 |
+ -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \ |
168 |
+ -e 's/[[^0-9]]//g'` |
169 |
+ |
170 |
+ AS_VAR_PUSHDEF([B],[ax_compare_version_B]) |
171 |
+ B=`echo "$3" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \ |
172 |
+ -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \ |
173 |
+ -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \ |
174 |
+ -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \ |
175 |
+ -e 's/[[^0-9]]//g'` |
176 |
+ |
177 |
+ dnl # In the case of le, ge, lt, and gt, the strings are sorted as necessary |
178 |
+ dnl # then the first line is used to determine if the condition is true. |
179 |
+ dnl # The sed right after the echo is to remove any indented white space. |
180 |
+ m4_case(m4_tolower($2), |
181 |
+ [lt],[ |
182 |
+ ax_compare_version=`echo "x$A |
183 |
+x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/false/;s/x${B}/true/;1q"` |
184 |
+ ], |
185 |
+ [gt],[ |
186 |
+ ax_compare_version=`echo "x$A |
187 |
+x$B" | sed 's/^ *//' | sort | sed "s/x${A}/false/;s/x${B}/true/;1q"` |
188 |
+ ], |
189 |
+ [le],[ |
190 |
+ ax_compare_version=`echo "x$A |
191 |
+x$B" | sed 's/^ *//' | sort | sed "s/x${A}/true/;s/x${B}/false/;1q"` |
192 |
+ ], |
193 |
+ [ge],[ |
194 |
+ ax_compare_version=`echo "x$A |
195 |
+x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"` |
196 |
+ ],[ |
197 |
+ dnl Split the operator from the subversion count if present. |
198 |
+ m4_bmatch(m4_substr($2,2), |
199 |
+ [0],[ |
200 |
+ # A count of zero means use the length of the shorter version. |
201 |
+ # Determine the number of characters in A and B. |
202 |
+ ax_compare_version_len_A=`echo "$A" | $AWK '{print(length)}'` |
203 |
+ ax_compare_version_len_B=`echo "$B" | $AWK '{print(length)}'` |
204 |
+ |
205 |
+ # Set A to no more than B's length and B to no more than A's length. |
206 |
+ A=`echo "$A" | sed "s/\(.\{$ax_compare_version_len_B\}\).*/\1/"` |
207 |
+ B=`echo "$B" | sed "s/\(.\{$ax_compare_version_len_A\}\).*/\1/"` |
208 |
+ ], |
209 |
+ [[0-9]+],[ |
210 |
+ # A count greater than zero means use only that many subversions |
211 |
+ A=`echo "$A" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"` |
212 |
+ B=`echo "$B" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"` |
213 |
+ ], |
214 |
+ [.+],[ |
215 |
+ AC_WARNING( |
216 |
+ [illegal OP numeric parameter: $2]) |
217 |
+ ],[]) |
218 |
+ |
219 |
+ # Pad zeros at end of numbers to make same length. |
220 |
+ ax_compare_version_tmp_A="$A`echo $B | sed 's/./0/g'`" |
221 |
+ B="$B`echo $A | sed 's/./0/g'`" |
222 |
+ A="$ax_compare_version_tmp_A" |
223 |
+ |
224 |
+ # Check for equality or inequality as necessary. |
225 |
+ m4_case(m4_tolower(m4_substr($2,0,2)), |
226 |
+ [eq],[ |
227 |
+ test "x$A" = "x$B" && ax_compare_version=true |
228 |
+ ], |
229 |
+ [ne],[ |
230 |
+ test "x$A" != "x$B" && ax_compare_version=true |
231 |
+ ],[ |
232 |
+ AC_WARNING([illegal OP parameter: $2]) |
233 |
+ ]) |
234 |
+ ]) |
235 |
+ |
236 |
+ AS_VAR_POPDEF([A])dnl |
237 |
+ AS_VAR_POPDEF([B])dnl |
238 |
+ |
239 |
+ dnl # Execute ACTION-IF-TRUE / ACTION-IF-FALSE. |
240 |
+ if test "$ax_compare_version" = "true" ; then |
241 |
+ m4_ifvaln([$4],[$4],[:])dnl |
242 |
+ m4_ifvaln([$5],[else $5])dnl |
243 |
+ fi |
244 |
+]) dnl AX_COMPARE_VERSION |
245 |
|
246 |
|
247 |
|
248 |
1.1 net-print/cups-filters/files/cups-filters-9999-lib.patch |
249 |
|
250 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups-filters/files/cups-filters-9999-lib.patch?rev=1.1&view=markup |
251 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups-filters/files/cups-filters-9999-lib.patch?rev=1.1&content-type=text/plain |
252 |
|
253 |
Index: cups-filters-9999-lib.patch |
254 |
=================================================================== |
255 |
diff -ruN cups-filters-9999.orig/Makefile.am cups-filters-9999/Makefile.am |
256 |
--- cups-filters-9999.orig/Makefile.am 2012-06-07 23:26:16.984452000 +0200 |
257 |
+++ cups-filters-9999/Makefile.am 2012-06-07 23:27:48.749653904 +0200 |
258 |
@@ -513,6 +513,7 @@ |
259 |
$(TIFF_CFLAGS) |
260 |
pdftoraster_CXXFLAGS = $(pdftoraster_CFLAGS) |
261 |
pdftoraster_LDADD = \ |
262 |
+ libcupsfilters.la |
263 |
$(CUPS_LIBS) \ |
264 |
$(LCMS_LIBS) \ |
265 |
$(LIBJPEG_LIBS) \ |
266 |
@@ -529,6 +530,7 @@ |
267 |
-I$(srcdir)/cupsfilters/ |
268 |
rastertoescpx_LDADD = \ |
269 |
$(CUPS_LIBS) \ |
270 |
+ $(PNG_LIBS) \ |
271 |
libcupsfilters.la |
272 |
|
273 |
rastertopclx_SOURCES = \ |