Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/portage-utils/files/
Date: Sun, 29 Dec 2019 09:25:09
Message-Id: 1577611502.74451903cea83740dd5ecd5ddbbe76dd0b20f5a5.grobian@gentoo
1 commit: 74451903cea83740dd5ecd5ddbbe76dd0b20f5a5
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 29 09:24:46 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 09:25:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74451903
7
8 app-portage/portage-utils: remove unused patch and files
9
10 Closes #14161
11
12 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
13 Package-Manager: Portage-2.3.79, Repoman-2.3.16
14 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
15
16 .../portage-utils-0.74-qdepends-Q-regex.patch | 96 ----------------------
17 app-portage/portage-utils/files/post_sync | 8 --
18 app-portage/portage-utils/files/q-reinitialize | 3 -
19 3 files changed, 107 deletions(-)
20
21 diff --git a/app-portage/portage-utils/files/portage-utils-0.74-qdepends-Q-regex.patch b/app-portage/portage-utils/files/portage-utils-0.74-qdepends-Q-regex.patch
22 deleted file mode 100644
23 index 6d10161d704..00000000000
24 --- a/app-portage/portage-utils/files/portage-utils-0.74-qdepends-Q-regex.patch
25 +++ /dev/null
26 @@ -1,96 +0,0 @@
27 -qdepends: restore regex matching capabilities for reverse dependencies
28 -
29 -The use of atom matching unintendedly removed the ability to use
30 -regexes, which broke app-admin/gentoo-perl-helpers. This patch removes
31 -the atom matching, and reverts to using regex matching always to restore
32 -behaviour.
33 -
34 -Bug: https://bugs.gentoo.org/683430
35 -
36 ---- a/qdepends.c
37 -+++ b/qdepends.c
38 -@@ -483,11 +483,9 @@
39 - int ret;
40 - regex_t preg;
41 - regmatch_t match;
42 -- depend_atom *aq;
43 - depend_atom *as;
44 - depend_atom *ac;
45 - char firstmatch = 0;
46 -- char *sslot;
47 -
48 - if (!q_vdb_pkg_eat(pkg_ctx, state->depend_file, &depend, &depend_len))
49 - return 0;
50 -@@ -526,34 +524,17 @@
51 - return 1;
52 - }
53 -
54 -- aq = atom_explode(state->query);
55 -- if (!aq) {
56 -- /* "fall" back to old behaviour of just performing an extended
57 -- * regular expression match */
58 -- if (wregcomp(&preg, state->query, REG_EXTENDED) != 0) {
59 -- dep_burn_tree(dep_tree);
60 -- return 1;
61 -- }
62 -+ /* fallback for old behaviour of just performing an extended
63 -+ * regular expression match */
64 -+ if (wregcomp(&preg, state->query, REG_EXTENDED) != 0) {
65 -+ dep_burn_tree(dep_tree);
66 -+ return 1;
67 - }
68 -
69 - match.rm_eo = 0;
70 - firstmatch = 1;
71 - do { /* find all matches */
72 -- if (!aq) {
73 -- ret = regexec(&preg, ptr + match.rm_eo, 1, &match, 0);
74 -- } else {
75 -- char *loc;
76 -- ret = -1;
77 -- snprintf(qbuf, sizeof(qbuf), "%s%s%s",
78 -- aq->CATEGORY ? aq->CATEGORY : "",
79 -- aq->CATEGORY ? "/" : "",
80 -- aq->PN);
81 -- if ((loc = strstr(ptr + match.rm_eo, qbuf)) != NULL) {
82 -- ret = 0;
83 -- match.rm_so = loc - ptr;
84 -- match.rm_eo = match.rm_so + strlen(qbuf);
85 -- }
86 -- }
87 -+ ret = regexec(&preg, ptr + match.rm_eo, 1, &match, 0);
88 - if (ret != 0)
89 - break;
90 -
91 -@@ -571,18 +552,6 @@
92 - ptr + match.rm_so);
93 - ac = atom_explode(qbuf);
94 -
95 -- /* drop SLOT when not present in aq so we can match atoms
96 -- * regardless */
97 -- sslot = ac->SLOT;
98 -- if (aq->SLOT == NULL && ac->SLOT != NULL)
99 -- ac->SLOT = NULL;
100 -- ret = atom_compare(ac, aq);
101 -- ac->SLOT = sslot;
102 -- if (ret != EQUAL) {
103 -- atom_implode(ac);
104 -- break;
105 -- }
106 --
107 - if (firstmatch == 1) {
108 - firstmatch = 0;
109 - printf("%s%s/%s%s%s%c", BOLD, catname, BLUE,
110 -@@ -615,11 +584,7 @@
111 - if (verbose && firstmatch == 0)
112 - printf("\n");
113 -
114 -- if (!aq) {
115 -- regfree(&preg);
116 -- } else {
117 -- atom_implode(aq);
118 -- }
119 -+ regfree(&preg);
120 - atom_implode(as);
121 - dep_burn_tree(dep_tree);
122 -
123
124 diff --git a/app-portage/portage-utils/files/post_sync b/app-portage/portage-utils/files/post_sync
125 deleted file mode 100644
126 index e94ea5d0257..00000000000
127 --- a/app-portage/portage-utils/files/post_sync
128 +++ /dev/null
129 @@ -1,8 +0,0 @@
130 -#!/bin/sh
131 -# Copyright 2006-2009 Gentoo Foundation
132 -# Distributed under the terms of the GNU General Public License v2
133 -
134 -for f in /etc/portage/postsync.d/* ; do
135 - [ -x "${f}" ] && "${f}"
136 -done
137 -:
138
139 diff --git a/app-portage/portage-utils/files/q-reinitialize b/app-portage/portage-utils/files/q-reinitialize
140 deleted file mode 100644
141 index 7bca1a86b3a..00000000000
142 --- a/app-portage/portage-utils/files/q-reinitialize
143 +++ /dev/null
144 @@ -1,3 +0,0 @@
145 -#!/bin/sh
146 -[ -x /usr/bin/q ] && /usr/bin/q -r ${PORTAGE_QUIET:+-q}
147 -: