Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cups-pk-helper/files/, net-print/cups-pk-helper/
Date: Sun, 21 Feb 2016 09:37:17
Message-Id: 1456047419.642225a785aa53d00dab301baf24fcb9ae8e799c.pacho@gentoo
1 commit: 642225a785aa53d00dab301baf24fcb9ae8e799c
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 21 09:29:57 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 21 09:36:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=642225a7
7
8 net-print/cups-pk-helper: Drop old
9
10 Package-Manager: portage-2.2.27
11
12 net-print/cups-pk-helper/Manifest | 1 -
13 .../cups-pk-helper/cups-pk-helper-0.2.4-r1.ebuild | 39 ---------------
14 .../cups-pk-helper-0.2.4-revert-stricter.patch | 55 ----------------------
15 3 files changed, 95 deletions(-)
16
17 diff --git a/net-print/cups-pk-helper/Manifest b/net-print/cups-pk-helper/Manifest
18 index 608bff0..7011395 100644
19 --- a/net-print/cups-pk-helper/Manifest
20 +++ b/net-print/cups-pk-helper/Manifest
21 @@ -1,2 +1 @@
22 -DIST cups-pk-helper-0.2.4.tar.xz 149828 SHA256 d187dc994ff64621aa090d114170b292daa11122481d8b8adb7613b32ca4e3c3 SHA512 0e071cad5cb8177caefa973de754f015fca3f6bc291ff1f30b978be990f45e443ca91999a2c733aff616cd9a5fc3b4074e1e01a18dd049f6d9b629171587ba02 WHIRLPOOL 7b34eba1fd4fc26c81dafe1eb118e2aec7b6f955a3f0323866a732c85ae3046236e87deb7f6c0427c02bfaff6e823182f42909ac8b19817c6cb089e90127da32
23 DIST cups-pk-helper-0.2.5.tar.xz 152620 SHA256 19221eed65a1e1498d396f3f99a783a95b21b4385e63b57a1f16e8728b8ca118 SHA512 9fc0af517755482dc3787ce87df389adee41b826c4ccca25df69474812523fa265c3dcf31fbc1a75c1b680b9b6490a9c358ac30aed7570fa98f5287f02a2be40 WHIRLPOOL b97000a948cdd82c46e83ab1e2be936068fc2eb28af13f672495c5827fe7ac7ddc4c5ac8df5fe146686aec386f513a2e36609727077254911a12162818003932
24
25 diff --git a/net-print/cups-pk-helper/cups-pk-helper-0.2.4-r1.ebuild b/net-print/cups-pk-helper/cups-pk-helper-0.2.4-r1.ebuild
26 deleted file mode 100644
27 index 2e3a348..0000000
28 --- a/net-print/cups-pk-helper/cups-pk-helper-0.2.4-r1.ebuild
29 +++ /dev/null
30 @@ -1,39 +0,0 @@
31 -# Copyright 1999-2014 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -# $Id$
34 -
35 -EAPI=5
36 -inherit eutils
37 -
38 -DESCRIPTION="PolicyKit helper to configure cups with fine-grained privileges"
39 -HOMEPAGE="http://www.freedesktop.org/wiki/Software/cups-pk-helper"
40 -SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.xz"
41 -
42 -LICENSE="GPL-2+"
43 -SLOT="0"
44 -KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
45 -IUSE=""
46 -
47 -# Require {glib,gdbus-codegen}-2.30.0 due to GDBus changes between 2.29.92
48 -# and 2.30.0
49 -COMMON_DEPEND=">=dev-libs/glib-2.30.0:2
50 - net-print/cups
51 - >=sys-auth/polkit-0.97"
52 -RDEPEND="${COMMON_DEPEND}
53 - sys-apps/dbus"
54 -DEPEND="${COMMON_DEPEND}
55 - app-arch/xz-utils
56 - >=dev-util/gdbus-codegen-2.30.0
57 - >=dev-util/intltool-0.40.6
58 - virtual/pkgconfig
59 - sys-devel/gettext"
60 -
61 -src_prepare() {
62 - DOCS="AUTHORS HACKING NEWS README"
63 -
64 - # Revert "Be stricter when validating printer names", bug #459596
65 - epatch "${FILESDIR}/${P}-revert-stricter.patch"
66 -
67 - # Regenerate dbus-codegen files to fix build with glib-2.30.x; bug #410773
68 - rm -v src/cph-iface-mechanism.{c,h} || die
69 -}
70
71 diff --git a/net-print/cups-pk-helper/files/cups-pk-helper-0.2.4-revert-stricter.patch b/net-print/cups-pk-helper/files/cups-pk-helper-0.2.4-revert-stricter.patch
72 deleted file mode 100644
73 index d20e348..0000000
74 --- a/net-print/cups-pk-helper/files/cups-pk-helper-0.2.4-revert-stricter.patch
75 +++ /dev/null
76 @@ -1,55 +0,0 @@
77 -From f00aee0b43c31e94087668b23b72e873c660de5e Mon Sep 17 00:00:00 2001
78 -From: Vincent Untz <vuntz@××××.com>
79 -Date: Mon, 10 Dec 2012 09:44:31 +0000
80 -Subject: Revert "Be stricter when validating printer names"
81 -
82 -Apparently, this is way too strict. The lpadmin man page says:
83 -
84 - CUPS allows printer names to contain any printable character except
85 - SPACE, TAB, "/", or "#".
86 -
87 -So the previous code was (mostly) correct.
88 -
89 -This reverts commit 7bf9cbe43ef8f648f308e4760f75c2aa6b61fa8e.
90 ----
91 -diff --git a/src/cups.c b/src/cups.c
92 -index 96c2c20..09f0e7b 100644
93 ---- a/src/cups.c
94 -+++ b/src/cups.c
95 -@@ -327,25 +327,23 @@ _cph_cups_is_printer_name_valid_internal (const char *name)
96 - int i;
97 - int len;
98 -
99 -- /* Quoting http://www.cups.org/documentation.php/doc-1.1/sam.html#4_1:
100 -- *
101 -- * The printer name must start with any printable character except
102 -- * " ", "/", and "@". It can contain up to 127 letters, numbers, and
103 -- * the underscore (_).
104 -- *
105 -- * The first part is a bit weird, as the second part is more
106 -- * restrictive. So we only consider the second part. */
107 --
108 - /* no empty string */
109 - if (!name || name[0] == '\0')
110 - return FALSE;
111 -
112 - len = strlen (name);
113 -- if (len > 127)
114 -+ /* no string that is too long; see comment at the beginning of the
115 -+ * validation code block */
116 -+ if (len > CPH_STR_MAXLEN)
117 - return FALSE;
118 -
119 -+ /* only printable characters, no space, no /, no # */
120 - for (i = 0; i < len; i++) {
121 -- if (!g_ascii_isalnum (name[i]) && name[i] != '_')
122 -+ if (!g_ascii_isprint (name[i]))
123 -+ return FALSE;
124 -+ if (g_ascii_isspace (name[i]))
125 -+ return FALSE;
126 -+ if (name[i] == '/' || name[i] == '#')
127 - return FALSE;
128 - }
129 -
130 ---
131 -cgit v0.9.0.2-2-gbebe