1 |
commit: 8fb600024921589ab9b1179523e8eb60057ca9c2 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 8 12:26:04 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 8 12:27:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fb60002 |
7 |
|
8 |
net-print/cups: Security bump to versions 2.2.10 and 2.3_beta6 |
9 |
|
10 |
Fixes for CVE-2018-4700 |
11 |
Removed old beta release. |
12 |
|
13 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
14 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
15 |
|
16 |
net-print/cups/Manifest | 3 +- |
17 |
...cups-2.3_beta5-r1.ebuild => cups-2.2.10.ebuild} | 29 +++++---- |
18 |
...s-2.3_beta5-r1.ebuild => cups-2.3_beta6.ebuild} | 4 +- |
19 |
.../files/cups-2.3_beta5-validation_fixes.patch | 69 ---------------------- |
20 |
.../files/cups-2.3_beta6-usage_argument_fix.patch | 38 ++++++++++++ |
21 |
5 files changed, 59 insertions(+), 84 deletions(-) |
22 |
|
23 |
diff --git a/net-print/cups/Manifest b/net-print/cups/Manifest |
24 |
index 4a79a309841..28e73772df4 100644 |
25 |
--- a/net-print/cups/Manifest |
26 |
+++ b/net-print/cups/Manifest |
27 |
@@ -1,4 +1,5 @@ |
28 |
+DIST cups-2.2.10-source.tar.gz 10403568 BLAKE2B 42937088758893772545fff7bbfbf4610ae34764b1e962110b7ea88940ddcba92376e55f4665b9815278de566daec07190ad78e5f2b1e37f905447a7fd17bf4e SHA512 1393987a263ebf20089dd3008ae4ed770a27a1f289032604eb9e18f2e863bd0e4215a70118f5a6d3940875625278b6798fbc9070e791ec559179c6cf7dc7b05f |
29 |
DIST cups-2.2.7-source.tar.gz 10330296 BLAKE2B 015a64758ee8d2559f4259ff36bf702b93dc695a44e2170d4ecf71b80d5691b4d947decf0a84ff9433b43c6d47dc350a8769d1e230ceda276c13add67e5e8a20 SHA512 780a6a484f38967ff678456ec7b532aa8445a9562663e4e4f6f7a24aac6ec9e8eae36459ee3c025dff053d59ad1d9ecfb823e8a832bae9d384db3d1a10d8860e |
30 |
DIST cups-2.2.8-source.tar.gz 10374921 BLAKE2B 3fc4d5cae3848cbb7fb1263b377210254dfa08d70a1218c7f20d5a277d0536791e071c50bac282ab2049e1cffddfe91438216ceb37ec279d7cb0ec7b57a315da SHA512 6ed44c5e6f1c46c85b06691713ce476330c93834243720ad2c04fa983e20cde9f6ebfc2eb2ba8bb3700f11320471b99856d6402d3641038da690f89c49fbd261 |
31 |
DIST cups-2.2.9-source.tar.gz 10402885 BLAKE2B 6736a2f5efa6ee8eadeea6620b5750e16e3be2e1c46d6f5821146d21078d10cda8e993b111ae326863db93d0c36e55c26d1c91140f8a518759111bafc9c93996 SHA512 423d2a215a115d5f78ce73118e8a2e566662e5d7f8acbffea39e1bfefb2f48f94841c8b85d731b0786b682dc579df8dfb5508570225b5205a182fbb2cd6dd2a5 |
32 |
-DIST cups-2.3b5-source.tar.gz 10176856 BLAKE2B beda07a64ef463371e4e1f25b397caa9487f7acdc982fcfa7edee736a41f6a6875747c772e4c59e2d2746c8c508a0cc87f8608227592f5e1d9c8c48d956ab97c SHA512 48d45f090637bf32bdcc83106272efb8462ff609f74fbe4e82add7f851dcb9173126a1df186848c087d02e8c1441f31a70859faf2714b6ddb1f3738ef8dba60d |
33 |
+DIST cups-2.3b6-source.tar.gz 10240934 BLAKE2B 16b7381617d97d5c68e7bdf971b2cbc81c8f33208e408e051fce9770cffebed3a9337296d3e9f95a9f0a4e76cffe3201b99207f83169b8397d11455964178f4f SHA512 f9f79bbc694e4bb4f37906f6dffad7c5067d86e07878ca73953ebf519d2637c23fded18646bd086cbd397e49de6b629fe9323f57ccfb2c9bf912c3bfd20b345e |
34 |
|
35 |
diff --git a/net-print/cups/cups-2.3_beta5-r1.ebuild b/net-print/cups/cups-2.2.10.ebuild |
36 |
similarity index 92% |
37 |
copy from net-print/cups/cups-2.3_beta5-r1.ebuild |
38 |
copy to net-print/cups/cups-2.2.10.ebuild |
39 |
index f7c6d292fae..b5fcaa92de9 100644 |
40 |
--- a/net-print/cups/cups-2.3_beta5-r1.ebuild |
41 |
+++ b/net-print/cups/cups-2.2.10.ebuild |
42 |
@@ -1,15 +1,16 @@ |
43 |
-# Copyright 1999-2018 Gentoo Foundation |
44 |
+# Copyright 1999-2018 Gentoo Authors |
45 |
# Distributed under the terms of the GNU General Public License v2 |
46 |
|
47 |
EAPI=6 |
48 |
|
49 |
PYTHON_COMPAT=( python2_7 ) |
50 |
|
51 |
-inherit autotools eapi7-ver gnome2-utils flag-o-matic linux-info xdg-utils multilib multilib-minimal pam user systemd toolchain-funcs |
52 |
+inherit autotools eapi7-ver gnome2-utils flag-o-matic linux-info xdg-utils multilib multilib-minimal pam python-single-r1 user java-pkg-opt-2 systemd toolchain-funcs |
53 |
|
54 |
+MY_P="${P/_rc/rc}" |
55 |
+MY_P="${MY_P/_beta/b}" |
56 |
MY_PV="${PV/_rc/rc}" |
57 |
MY_PV="${MY_PV/_beta/b}" |
58 |
-MY_P="${PN}-${MY_PV}" |
59 |
|
60 |
if [[ ${PV} == *9999 ]]; then |
61 |
inherit git-r3 |
62 |
@@ -19,18 +20,16 @@ if [[ ${PV} == *9999 ]]; then |
63 |
fi |
64 |
else |
65 |
#SRC_URI="https://github.com/apple/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
66 |
- SRC_URI="https://github.com/apple/cups/releases/download/v${MY_PV}/${MY_P}-source.tar.gz" |
67 |
- if [[ "${PV}" != *_beta* ]] && [[ "${PV}" != *_rc* ]] ; then |
68 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~m68k-mint" |
69 |
- fi |
70 |
+ SRC_URI="https://github.com/apple/cups/releases/download/v${PV}/${P}-source.tar.gz" |
71 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~m68k-mint" |
72 |
fi |
73 |
|
74 |
DESCRIPTION="The Common Unix Printing System" |
75 |
HOMEPAGE="https://www.cups.org/" |
76 |
|
77 |
-LICENSE="Apache-2.0" |
78 |
+LICENSE="GPL-2" |
79 |
SLOT="0" |
80 |
-IUSE="acl dbus debug kerberos lprng-compat pam selinux +ssl static-libs systemd +threads usb X xinetd zeroconf" |
81 |
+IUSE="acl dbus debug java kerberos lprng-compat pam python selinux +ssl static-libs systemd +threads usb X xinetd zeroconf" |
82 |
|
83 |
CDEPEND=" |
84 |
app-text/libpaper |
85 |
@@ -42,9 +41,11 @@ CDEPEND=" |
86 |
) |
87 |
) |
88 |
dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) |
89 |
+ java? ( >=virtual/jre-1.6:* ) |
90 |
kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) |
91 |
!lprng-compat? ( !net-print/lprng ) |
92 |
pam? ( virtual/pam ) |
93 |
+ python? ( ${PYTHON_DEPS} ) |
94 |
ssl? ( >=net-libs/gnutls-2.12.23-r6:0=[${MULTILIB_USEDEP}] ) |
95 |
systemd? ( sys-apps/systemd ) |
96 |
usb? ( virtual/libusb:1 ) |
97 |
@@ -64,6 +65,7 @@ RDEPEND="${CDEPEND} |
98 |
PDEPEND=">=net-print/cups-filters-1.0.43" |
99 |
|
100 |
REQUIRED_USE=" |
101 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
102 |
usb? ( threads ) |
103 |
" |
104 |
|
105 |
@@ -77,20 +79,19 @@ PATCHES=( |
106 |
"${FILESDIR}/${PN}-1.4.4-nostrip.patch" |
107 |
"${FILESDIR}/${PN}-2.0.2-rename-systemd-service-files.patch" |
108 |
"${FILESDIR}/${PN}-2.0.1-xinetd-installation-fix.patch" |
109 |
- "${FILESDIR}/${P}-validation_fixes.patch" #657526 |
110 |
) |
111 |
|
112 |
MULTILIB_CHOST_TOOLS=( |
113 |
/usr/bin/cups-config |
114 |
) |
115 |
|
116 |
-S="${WORKDIR}/${MY_P}" |
117 |
- |
118 |
pkg_setup() { |
119 |
enewgroup lp |
120 |
enewuser lp -1 -1 -1 lp |
121 |
enewgroup lpadmin 106 |
122 |
|
123 |
+ use python && python-single-r1_pkg_setup |
124 |
+ |
125 |
if use kernel_linux; then |
126 |
linux-info_pkg_setup |
127 |
if ! linux_config_exists; then |
128 |
@@ -167,8 +168,10 @@ multilib_src_configure() { |
129 |
$(use_enable debug) |
130 |
$(use_enable debug debug-guards) |
131 |
$(use_enable debug debug-printfs) |
132 |
+ $(multilib_native_use_with java) |
133 |
$(use_enable kerberos gssapi) |
134 |
$(multilib_native_use_enable pam) |
135 |
+ $(multilib_native_use_with python python "${PYTHON}") |
136 |
$(use_enable static-libs static) |
137 |
$(use_enable threads) |
138 |
$(use_enable ssl gnutls) |
139 |
@@ -176,6 +179,8 @@ multilib_src_configure() { |
140 |
$(multilib_native_use_enable usb libusb) |
141 |
$(use_enable zeroconf avahi) |
142 |
--disable-dnssd |
143 |
+ --without-perl |
144 |
+ --without-php |
145 |
$(multilib_is_native_abi && echo --enable-libpaper || echo --disable-libpaper) |
146 |
) |
147 |
|
148 |
|
149 |
diff --git a/net-print/cups/cups-2.3_beta5-r1.ebuild b/net-print/cups/cups-2.3_beta6.ebuild |
150 |
similarity index 99% |
151 |
rename from net-print/cups/cups-2.3_beta5-r1.ebuild |
152 |
rename to net-print/cups/cups-2.3_beta6.ebuild |
153 |
index f7c6d292fae..4801eaf8b9a 100644 |
154 |
--- a/net-print/cups/cups-2.3_beta5-r1.ebuild |
155 |
+++ b/net-print/cups/cups-2.3_beta6.ebuild |
156 |
@@ -1,4 +1,4 @@ |
157 |
-# Copyright 1999-2018 Gentoo Foundation |
158 |
+# Copyright 1999-2018 Gentoo Authors |
159 |
# Distributed under the terms of the GNU General Public License v2 |
160 |
|
161 |
EAPI=6 |
162 |
@@ -77,7 +77,7 @@ PATCHES=( |
163 |
"${FILESDIR}/${PN}-1.4.4-nostrip.patch" |
164 |
"${FILESDIR}/${PN}-2.0.2-rename-systemd-service-files.patch" |
165 |
"${FILESDIR}/${PN}-2.0.1-xinetd-installation-fix.patch" |
166 |
- "${FILESDIR}/${P}-validation_fixes.patch" #657526 |
167 |
+ "${FILESDIR}/${P}-usage_argument_fix.patch" |
168 |
) |
169 |
|
170 |
MULTILIB_CHOST_TOOLS=( |
171 |
|
172 |
diff --git a/net-print/cups/files/cups-2.3_beta5-validation_fixes.patch b/net-print/cups/files/cups-2.3_beta5-validation_fixes.patch |
173 |
deleted file mode 100644 |
174 |
index 29e2533eeb1..00000000000 |
175 |
--- a/net-print/cups/files/cups-2.3_beta5-validation_fixes.patch |
176 |
+++ /dev/null |
177 |
@@ -1,69 +0,0 @@ |
178 |
-From 1d677f11f1e3353524d46c2842188eccfcdcd5a2 Mon Sep 17 00:00:00 2001 |
179 |
-From: Michael R Sweet <michael.r.sweet@×××××.com> |
180 |
-Date: Mon, 11 Jun 2018 09:37:34 -0400 |
181 |
-Subject: [PATCH] Fix regressions in ippValidateAttribute (Issue #5322, Issue |
182 |
- #5330) |
183 |
- |
184 |
-diff --git a/cups/ipp.c b/cups/ipp.c |
185 |
-index 95d53cc44..325de02b9 100644 |
186 |
---- a/cups/ipp.c |
187 |
-+++ b/cups/ipp.c |
188 |
-@@ -5033,16 +5033,19 @@ ippValidateAttribute( |
189 |
- break; |
190 |
- } |
191 |
- |
192 |
-- if (*ptr < ' ' || *ptr == 0x7f) |
193 |
-- { |
194 |
-- ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section 8.3)."), attr->name, attr->values[i].string.text); |
195 |
-- return (0); |
196 |
-- } |
197 |
-- else if (*ptr) |
198 |
-- { |
199 |
-- ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)."), attr->name, attr->values[i].string.text); |
200 |
-- return (0); |
201 |
-- } |
202 |
-+ if (*ptr) |
203 |
-+ { |
204 |
-+ if (*ptr < ' ' || *ptr == 0x7f) |
205 |
-+ { |
206 |
-+ ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad text value \"%s\" - bad control character (PWG 5100.14 section 8.3)."), attr->name, attr->values[i].string.text); |
207 |
-+ return (0); |
208 |
-+ } |
209 |
-+ else |
210 |
-+ { |
211 |
-+ ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad text value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.2)."), attr->name, attr->values[i].string.text); |
212 |
-+ return (0); |
213 |
-+ } |
214 |
-+ } |
215 |
- |
216 |
- if ((ptr - attr->values[i].string.text) > (IPP_MAX_TEXT - 1)) |
217 |
- { |
218 |
-@@ -5091,16 +5094,19 @@ ippValidateAttribute( |
219 |
- break; |
220 |
- } |
221 |
- |
222 |
-- if (*ptr < ' ' || *ptr == 0x7f) |
223 |
-- { |
224 |
-- ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section 8.1)."), attr->name, attr->values[i].string.text); |
225 |
-- return (0); |
226 |
-- } |
227 |
-- else if (*ptr) |
228 |
-+ if (*ptr) |
229 |
- { |
230 |
-- ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)."), attr->name, attr->values[i].string.text); |
231 |
-- return (0); |
232 |
-- } |
233 |
-+ if (*ptr < ' ' || *ptr == 0x7f) |
234 |
-+ { |
235 |
-+ ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad name value \"%s\" - bad control character (PWG 5100.14 section 8.1)."), attr->name, attr->values[i].string.text); |
236 |
-+ return (0); |
237 |
-+ } |
238 |
-+ else |
239 |
-+ { |
240 |
-+ ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad name value \"%s\" - bad UTF-8 sequence (RFC 8011 section 5.1.3)."), attr->name, attr->values[i].string.text); |
241 |
-+ return (0); |
242 |
-+ } |
243 |
-+ } |
244 |
- |
245 |
- if ((ptr - attr->values[i].string.text) > (IPP_MAX_NAME - 1)) |
246 |
- { |
247 |
|
248 |
diff --git a/net-print/cups/files/cups-2.3_beta6-usage_argument_fix.patch b/net-print/cups/files/cups-2.3_beta6-usage_argument_fix.patch |
249 |
new file mode 100644 |
250 |
index 00000000000..f0ba569a0f4 |
251 |
--- /dev/null |
252 |
+++ b/net-print/cups/files/cups-2.3_beta6-usage_argument_fix.patch |
253 |
@@ -0,0 +1,38 @@ |
254 |
+From 7b655b36b349f6db9a7b658d0075c468cff83c2e Mon Sep 17 00:00:00 2001 |
255 |
+From: Lars Wendler <polynomial-c@g.o> |
256 |
+Date: Sat, 8 Dec 2018 13:14:06 +0100 |
257 |
+Subject: [PATCH] Fix call to usage which requires an int argument |
258 |
+MIME-Version: 1.0 |
259 |
+Content-Type: text/plain; charset=UTF-8 |
260 |
+Content-Transfer-Encoding: 8bit |
261 |
+ |
262 |
+Otherwise compilation fails: |
263 |
+ |
264 |
+main.c: In function ‘main’: |
265 |
+main.c:158:7: error: too few arguments to function ‘usage’ |
266 |
+ usage(); |
267 |
+ ^~~~~ |
268 |
+main.c:73:14: note: declared here |
269 |
+ static void usage(int status) _CUPS_NORETURN; |
270 |
+ ^~~~~ |
271 |
+make[1]: *** [../Makedefs:270: main.o] Error 1 |
272 |
+--- |
273 |
+ scheduler/main.c | 2 +- |
274 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
275 |
+ |
276 |
+diff --git a/scheduler/main.c b/scheduler/main.c |
277 |
+index ce7df89c0..a7df4525f 100644 |
278 |
+--- a/scheduler/main.c |
279 |
++++ b/scheduler/main.c |
280 |
+@@ -155,7 +155,7 @@ main(int argc, /* I - Number of command-line args */ |
281 |
+ for (i = 1; i < argc; i ++) |
282 |
+ { |
283 |
+ if (!strcmp(argv[i], "--help")) |
284 |
+- usage(); |
285 |
++ usage(1); |
286 |
+ else if (argv[i][0] == '-') |
287 |
+ { |
288 |
+ for (opt = argv[i] + 1; *opt != '\0'; opt ++) |
289 |
+-- |
290 |
+2.20.0.rc2 |
291 |
+ |