Merge ~dviererbe/ubuntu/+source/plocate:merge-lp2029150-mantic into ubuntu/+source/plocate:debian/sid
- Git
- lp:~dviererbe/ubuntu/+source/plocate
- merge-lp2029150-mantic
- Merge into debian/sid
Proposed by
Dominik Viererbe
Status: | Merged |
---|---|
Merge reported by: | Dominik Viererbe |
Merged at revision: | 5fc9314a8470b36e989cc526385af90bcf7c652a |
Proposed branch: | ~dviererbe/ubuntu/+source/plocate:merge-lp2029150-mantic |
Merge into: | ubuntu/+source/plocate:debian/sid |
Diff against target: |
370 lines (+282/-1) 6 files modified
debian/changelog (+93/-0) debian/control (+2/-1) debian/patches/locate-add-ignore-spaces-option-to-ignore-word-separ.patch (+173/-0) debian/patches/series (+1/-0) debian/plocate.postinst (+10/-0) debian/rules (+3/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Inggs (community) | Approve | ||
Review via email:
|
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Dominik Viererbe (dviererbe) wrote (last edit ): | # |
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/debian/changelog b/debian/changelog | |||
2 | index 57c3215..ddcfe1a 100644 | |||
3 | --- a/debian/changelog | |||
4 | +++ b/debian/changelog | |||
5 | @@ -1,3 +1,15 @@ | |||
6 | 1 | plocate (1.1.19-2ubuntu1) mantic; urgency=medium | ||
7 | 2 | |||
8 | 3 | * Merge with Debian unstable (LP: #2029150). Remaining changes: | ||
9 | 4 | - Adjust handling of db generation on package install to ensure db | ||
10 | 5 | generation even in chroots, print a message before, and ensure db | ||
11 | 6 | generation finishes before the postinst returns. | ||
12 | 7 | - Adjust dh_systemd handling to match the above. | ||
13 | 8 | - d/p/locate-add-ignore-spaces-option-to-ignore-word-separ.patch: port | ||
14 | 9 | support for the --ignore-spaces option from mlocate. | ||
15 | 10 | |||
16 | 11 | -- Dominik Viererbe <dominik.viererbe@canonical.com> Mon, 31 Jul 2023 23:04:46 +0300 | ||
17 | 12 | |||
18 | 1 | plocate (1.1.19-2) unstable; urgency=medium | 13 | plocate (1.1.19-2) unstable; urgency=medium |
19 | 2 | 14 | ||
20 | 3 | * Remove compatibility cruft for upgrading from pre-bullseye. | 15 | * Remove compatibility cruft for upgrading from pre-bullseye. |
21 | @@ -10,18 +22,56 @@ plocate (1.1.19-2) unstable; urgency=medium | |||
22 | 10 | 22 | ||
23 | 11 | -- Steinar H. Gunderson <sesse@debian.org> Tue, 04 Jul 2023 18:24:02 +0200 | 23 | -- Steinar H. Gunderson <sesse@debian.org> Tue, 04 Jul 2023 18:24:02 +0200 |
24 | 12 | 24 | ||
25 | 25 | plocate (1.1.19-1ubuntu1) mantic; urgency=low | ||
26 | 26 | |||
27 | 27 | * Merge from Debian unstable. Remaining changes: | ||
28 | 28 | - Adjust handling of db generation on package install to ensure db | ||
29 | 29 | generation even in chroots, print a message before, and ensure db | ||
30 | 30 | generation finishes before the postinst returns. | ||
31 | 31 | - Adjust dh_systemd handling to match the above. | ||
32 | 32 | - d/p/locate-add-ignore-spaces-option-to-ignore-word-separ.patch: port | ||
33 | 33 | support for the --ignore-spaces option from mlocate. | ||
34 | 34 | |||
35 | 35 | -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 15 Jun 2023 19:10:12 -0700 | ||
36 | 36 | |||
37 | 13 | plocate (1.1.19-1) unstable; urgency=medium | 37 | plocate (1.1.19-1) unstable; urgency=medium |
38 | 14 | 38 | ||
39 | 15 | * New upstream release. | 39 | * New upstream release. |
40 | 16 | 40 | ||
41 | 17 | -- Steinar H. Gunderson <sesse@debian.org> Fri, 09 Jun 2023 09:36:32 +0200 | 41 | -- Steinar H. Gunderson <sesse@debian.org> Fri, 09 Jun 2023 09:36:32 +0200 |
42 | 18 | 42 | ||
43 | 43 | plocate (1.1.18-1ubuntu1) lunar; urgency=low | ||
44 | 44 | |||
45 | 45 | * Merge from Debian unstable. Remaining changes: | ||
46 | 46 | - Adjust handling of db generation on package install to match the | ||
47 | 47 | previous mlocate behavior, which ensured db generation even in | ||
48 | 48 | chroots, printed a message before, and ensured db generation finished | ||
49 | 49 | before the postinst returned. | ||
50 | 50 | - Adjust dh_systemd handling to match the above. | ||
51 | 51 | - d/p/locate-add-ignore-spaces-option-to-ignore-word-separ.patch: port | ||
52 | 52 | support for the --ignore-spaces option from mlocate. | ||
53 | 53 | |||
54 | 54 | -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 06 Feb 2023 16:09:29 -0800 | ||
55 | 55 | |||
56 | 19 | plocate (1.1.18-1) unstable; urgency=medium | 56 | plocate (1.1.18-1) unstable; urgency=medium |
57 | 20 | 57 | ||
58 | 21 | * New upstream release. | 58 | * New upstream release. |
59 | 22 | 59 | ||
60 | 23 | -- Steinar H. Gunderson <sesse@debian.org> Sat, 28 Jan 2023 21:46:26 +0100 | 60 | -- Steinar H. Gunderson <sesse@debian.org> Sat, 28 Jan 2023 21:46:26 +0100 |
61 | 24 | 61 | ||
62 | 62 | plocate (1.1.17-2ubuntu1) lunar; urgency=low | ||
63 | 63 | |||
64 | 64 | * Merge from Debian unstable. Remaining changes: | ||
65 | 65 | - Adjust handling of db generation on package install to match the | ||
66 | 66 | previous mlocate behavior, which ensured db generation even in | ||
67 | 67 | chroots, printed a message before, and ensured db generation finished | ||
68 | 68 | before the postinst returned. | ||
69 | 69 | - Adjust dh_systemd handling to match the above. | ||
70 | 70 | - d/p/locate-add-ignore-spaces-option-to-ignore-word-separ.patch: port | ||
71 | 71 | support for the --ignore-spaces option from mlocate. | ||
72 | 72 | |||
73 | 73 | -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 24 Jan 2023 13:21:44 -0800 | ||
74 | 74 | |||
75 | 25 | plocate (1.1.17-2) unstable; urgency=medium | 75 | plocate (1.1.17-2) unstable; urgency=medium |
76 | 26 | 76 | ||
77 | 27 | * Adjust the autopkgtest to deal with the return value changes in 1.1.17. | 77 | * Adjust the autopkgtest to deal with the return value changes in 1.1.17. |
78 | @@ -36,6 +86,23 @@ plocate (1.1.17-1) unstable; urgency=medium | |||
79 | 36 | 86 | ||
80 | 37 | -- Steinar H. Gunderson <sesse@debian.org> Mon, 21 Nov 2022 18:27:45 +0100 | 87 | -- Steinar H. Gunderson <sesse@debian.org> Mon, 21 Nov 2022 18:27:45 +0100 |
81 | 38 | 88 | ||
82 | 89 | plocate (1.1.16-1ubuntu1) kinetic; urgency=low | ||
83 | 90 | |||
84 | 91 | * Merge from Debian unstable. Remaining changes: | ||
85 | 92 | - Adjust handling of db generation on package install to match the | ||
86 | 93 | previous mlocate behavior, which ensured db generation even in | ||
87 | 94 | chroots, printed a message before, and ensured db generation finished | ||
88 | 95 | before the postinst returned. | ||
89 | 96 | - Adjust dh_systemd handling to match the above. | ||
90 | 97 | - d/p/locate-add-ignore-spaces-option-to-ignore-word-separ.patch: port | ||
91 | 98 | support for the --ignore-spaces option from mlocate. | ||
92 | 99 | * Dropped changes, included in Debian: | ||
93 | 100 | - Add /home/.ecryptfs and /var/lib/schroot to PRUNEPATHS. | ||
94 | 101 | - Add fuse.cryfs and fuse.encfs to PRUNEFS. | ||
95 | 102 | - Remove debian/source/include-binaries file. | ||
96 | 103 | |||
97 | 104 | -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 24 Jun 2022 09:50:11 -0700 | ||
98 | 105 | |||
99 | 39 | plocate (1.1.16-1) unstable; urgency=medium | 106 | plocate (1.1.16-1) unstable; urgency=medium |
100 | 40 | 107 | ||
101 | 41 | * New upstream release. | 108 | * New upstream release. |
102 | @@ -53,6 +120,31 @@ plocate (1.1.15-2) unstable; urgency=medium | |||
103 | 53 | 120 | ||
104 | 54 | -- Steinar H. Gunderson <sesse@debian.org> Wed, 02 Mar 2022 20:52:02 +0100 | 121 | -- Steinar H. Gunderson <sesse@debian.org> Wed, 02 Mar 2022 20:52:02 +0100 |
105 | 55 | 122 | ||
106 | 123 | plocate (1.1.15-1ubuntu2) jammy; urgency=medium | ||
107 | 124 | |||
108 | 125 | * Remove debian/source/include-binaries file. (LP: #1961266) | ||
109 | 126 | |||
110 | 127 | -- Nick Rosbrook <nick.rosbrook@canonical.com> Thu, 17 Feb 2022 09:26:51 -0500 | ||
111 | 128 | |||
112 | 129 | plocate (1.1.15-1ubuntu1) jammy; urgency=medium | ||
113 | 130 | |||
114 | 131 | * Port changes over from mlocate so that we can move to plocate in Ubuntu. | ||
115 | 132 | * Add /home/.ecryptfs and /var/lib/schroot to PRUNEPATHS. | ||
116 | 133 | * Add fuse.cryfs and fuse.encfs to PRUNEFS. | ||
117 | 134 | * Adjust handling of db generation on package install to match the | ||
118 | 135 | previous mlocate behavior, which ensured db generation even in chroots, | ||
119 | 136 | printed a message before, and ensured db generation finished before the | ||
120 | 137 | postinst returned. | ||
121 | 138 | * Adjust dh_systemd handling to match the above. | ||
122 | 139 | * Drops support for the --transliterate option, which requires significant | ||
123 | 140 | porting of functionality from C to the independent plocate C++ codebase. | ||
124 | 141 | * d/p/locate-add-ignore-spaces-option-to-ignore-word-separ.patch: port | ||
125 | 142 | support for the --ignore-spaces option from mlocate. | ||
126 | 143 | * All other patches and packaging delta for mlocate are obsolete for | ||
127 | 144 | plocate. | ||
128 | 145 | |||
129 | 146 | -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 10 Feb 2022 00:45:06 +0000 | ||
130 | 147 | |||
131 | 56 | plocate (1.1.15-1) unstable; urgency=medium | 148 | plocate (1.1.15-1) unstable; urgency=medium |
132 | 57 | 149 | ||
133 | 58 | * New upstream release. | 150 | * New upstream release. |
134 | @@ -389,3 +481,4 @@ plocate (1.0.0-1) unstable; urgency=medium | |||
135 | 389 | * Initial release. | 481 | * Initial release. |
136 | 390 | 482 | ||
137 | 391 | -- Steinar H. Gunderson <sesse@debian.org> Sun, 11 Oct 2020 21:24:13 +0200 | 483 | -- Steinar H. Gunderson <sesse@debian.org> Sun, 11 Oct 2020 21:24:13 +0200 |
138 | 484 | |||
139 | diff --git a/debian/control b/debian/control | |||
140 | index 8ecf3be..2147b08 100644 | |||
141 | --- a/debian/control | |||
142 | +++ b/debian/control | |||
143 | @@ -1,7 +1,8 @@ | |||
144 | 1 | Source: plocate | 1 | Source: plocate |
145 | 2 | Section: utils | 2 | Section: utils |
146 | 3 | Priority: optional | 3 | Priority: optional |
148 | 4 | Maintainer: Steinar H. Gunderson <sesse@debian.org> | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
149 | 5 | XSBC-Original-Maintainer: Steinar H. Gunderson <sesse@debian.org> | ||
150 | 5 | # liburing-dev is technically optional, but strongly recommended. | 6 | # liburing-dev is technically optional, but strongly recommended. |
151 | 6 | Build-Depends: debhelper-compat (= 13), liburing-dev [linux-any], libzstd-dev, meson, ninja-build, pkg-config, systemd [linux-any] | 7 | Build-Depends: debhelper-compat (= 13), liburing-dev [linux-any], libzstd-dev, meson, ninja-build, pkg-config, systemd [linux-any] |
152 | 7 | Standards-Version: 4.5.0 | 8 | Standards-Version: 4.5.0 |
153 | diff --git a/debian/patches/locate-add-ignore-spaces-option-to-ignore-word-separ.patch b/debian/patches/locate-add-ignore-spaces-option-to-ignore-word-separ.patch | |||
154 | 8 | new file mode 100644 | 9 | new file mode 100644 |
155 | index 0000000..2774959 | |||
156 | --- /dev/null | |||
157 | +++ b/debian/patches/locate-add-ignore-spaces-option-to-ignore-word-separ.patch | |||
158 | @@ -0,0 +1,173 @@ | |||
159 | 1 | Description: locate: add --ignore-spaces option to ignore word separators | ||
160 | 2 | It allows to locate files ignoring separators such as punctuation and | ||
161 | 3 | spaces, so searching for "foo-bar" will match "foo bar", "foo_bar" or | ||
162 | 4 | "foo?bar". | ||
163 | 5 | . | ||
164 | 6 | This is not compatible with regex. | ||
165 | 7 | . | ||
166 | 8 | Ported from https://pagure.io/mlocate/pull-request/42 | ||
167 | 9 | Author: Steve Langasek <steve.langasek@ubuntu.com> | ||
168 | 10 | Last-Update: 2022-02-09 | ||
169 | 11 | Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/mlocate/+bug/1752148 | ||
170 | 12 | |||
171 | 13 | Index: plocate-1.1.15/plocate.cpp | ||
172 | 14 | =================================================================== | ||
173 | 15 | --- plocate-1.1.15.orig/plocate.cpp | ||
174 | 16 | +++ plocate-1.1.15/plocate.cpp | ||
175 | 17 | @@ -47,6 +47,7 @@ | ||
176 | 18 | using namespace std::chrono; | ||
177 | 19 | |||
178 | 20 | bool ignore_case = false; | ||
179 | 21 | +bool ignore_spaces = false; | ||
180 | 22 | bool only_count = false; | ||
181 | 23 | bool print_nul = false; | ||
182 | 24 | bool use_debug = false; | ||
183 | 25 | @@ -171,6 +172,49 @@ | ||
184 | 26 | } | ||
185 | 27 | } | ||
186 | 28 | |||
187 | 29 | +/* Remove repeated punctuation or spaces from string and replace | ||
188 | 30 | + them with a space */ | ||
189 | 31 | +static char * | ||
190 | 32 | +collapse_string_separators (const char *str, bool is_pattern) | ||
191 | 33 | +{ | ||
192 | 34 | + size_t strippedlen = 0; | ||
193 | 35 | + size_t i; | ||
194 | 36 | + char *outbuf; | ||
195 | 37 | + bool first = false; | ||
196 | 38 | + bool changed = false; | ||
197 | 39 | + | ||
198 | 40 | + outbuf = (char *) malloc (strlen (str) + 1); | ||
199 | 41 | + | ||
200 | 42 | + for (i = 0; str[i]; i++) { | ||
201 | 43 | + char cnt = str[i]; | ||
202 | 44 | + | ||
203 | 45 | + if (isspace (cnt) || (ispunct (cnt) && cnt != '@' && | ||
204 | 46 | + (!is_pattern || strchr ("*?[\\]", cnt) == NULL))) | ||
205 | 47 | + { | ||
206 | 48 | + if (first) { | ||
207 | 49 | + changed = true; | ||
208 | 50 | + continue; | ||
209 | 51 | + } | ||
210 | 52 | + if (cnt != ' ') { | ||
211 | 53 | + cnt = ' '; | ||
212 | 54 | + changed = true; | ||
213 | 55 | + } | ||
214 | 56 | + first = true; | ||
215 | 57 | + } else | ||
216 | 58 | + first = false; | ||
217 | 59 | + | ||
218 | 60 | + outbuf[strippedlen++] = cnt; | ||
219 | 61 | + } | ||
220 | 62 | + | ||
221 | 63 | + if (!changed) { | ||
222 | 64 | + free (outbuf); | ||
223 | 65 | + return NULL; | ||
224 | 66 | + } | ||
225 | 67 | + | ||
226 | 68 | + outbuf[strippedlen] = '\0'; | ||
227 | 69 | + return outbuf; | ||
228 | 70 | +} | ||
229 | 71 | + | ||
230 | 72 | void scan_file_block(const vector<Needle> &needles, string_view compressed, | ||
231 | 73 | IOUringEngine *engine, AccessRXCache *access_rx_cache, uint64_t seq, ResultReceiver *serializer, | ||
232 | 74 | atomic<uint64_t> *matched) | ||
233 | 75 | @@ -223,6 +267,7 @@ | ||
234 | 76 | filename != block.data() + block.size(); | ||
235 | 77 | filename += strlen(filename) + 1) { | ||
236 | 78 | const char *haystack = filename; | ||
237 | 79 | + char *altered_match = NULL; | ||
238 | 80 | if (match_basename) { | ||
239 | 81 | haystack = strrchr(filename, '/'); | ||
240 | 82 | if (haystack == nullptr) { | ||
241 | 83 | @@ -232,6 +277,12 @@ | ||
242 | 84 | } | ||
243 | 85 | } | ||
244 | 86 | |||
245 | 87 | + if (ignore_spaces) | ||
246 | 88 | + altered_match = collapse_string_separators(haystack, | ||
247 | 89 | + false); | ||
248 | 90 | + if (altered_match) | ||
249 | 91 | + haystack = altered_match; | ||
250 | 92 | + | ||
251 | 93 | bool found = true; | ||
252 | 94 | for (const Needle &needle : needles) { | ||
253 | 95 | if (!matches(needle, haystack)) { | ||
254 | 96 | @@ -246,6 +297,8 @@ | ||
255 | 97 | } | ||
256 | 98 | pending_candidate = filename; | ||
257 | 99 | } | ||
258 | 100 | + if (altered_match) | ||
259 | 101 | + free(altered_match); | ||
260 | 102 | } | ||
261 | 103 | if (pending_candidate == nullptr) { | ||
262 | 104 | serializer->print(seq << 32, 1ULL << 32, ""); | ||
263 | 105 | @@ -842,6 +895,7 @@ | ||
264 | 106 | { "database", required_argument, 0, 'd' }, | ||
265 | 107 | { "existing", no_argument, 0, 'e' }, | ||
266 | 108 | { "ignore-case", no_argument, 0, 'i' }, | ||
267 | 109 | + { "ignore-spaces", no_argument, 0, 'p' }, | ||
268 | 110 | { "limit", required_argument, 0, 'l' }, | ||
269 | 111 | { "literal", no_argument, 0, 'N' }, | ||
270 | 112 | { "null", no_argument, 0, '0' }, | ||
271 | 113 | @@ -858,7 +912,7 @@ | ||
272 | 114 | setlocale(LC_ALL, ""); | ||
273 | 115 | for (;;) { | ||
274 | 116 | int option_index = 0; | ||
275 | 117 | - int c = getopt_long(argc, argv, "Abcd:ehil:n:N0rwVD", long_options, &option_index); | ||
276 | 118 | + int c = getopt_long(argc, argv, "Abcd:ehipl:n:N0rwVD", long_options, &option_index); | ||
277 | 119 | if (c == -1) { | ||
278 | 120 | break; | ||
279 | 121 | } | ||
280 | 122 | @@ -884,6 +938,9 @@ | ||
281 | 123 | case 'i': | ||
282 | 124 | ignore_case = true; | ||
283 | 125 | break; | ||
284 | 126 | + case 'p': | ||
285 | 127 | + ignore_spaces = true; | ||
286 | 128 | + break; | ||
287 | 129 | case 'l': | ||
288 | 130 | case 'n': | ||
289 | 131 | limit_matches = limit_left = atoll(optarg); | ||
290 | 132 | @@ -934,6 +991,11 @@ | ||
291 | 133 | } | ||
292 | 134 | } | ||
293 | 135 | |||
294 | 136 | + if (patterns_are_regex && ignore_spaces) { | ||
295 | 137 | + perror("ignore-spaces is not supported when using regexp"); | ||
296 | 138 | + exit(EXIT_FAILURE); | ||
297 | 139 | + } | ||
298 | 140 | + | ||
299 | 141 | if (!print_nul) { | ||
300 | 142 | stdout_is_tty = isatty(1); | ||
301 | 143 | } | ||
302 | 144 | @@ -968,6 +1030,14 @@ | ||
303 | 145 | needle.type = Needle::STRSTR; | ||
304 | 146 | needle.str = unescape_glob_to_plain_string(needle.str); | ||
305 | 147 | } | ||
306 | 148 | + | ||
307 | 149 | + if (ignore_spaces) { | ||
308 | 150 | + char *pattern = collapse_string_separators(needle.str.c_str(), | ||
309 | 151 | + true); | ||
310 | 152 | + if (pattern) | ||
311 | 153 | + needle.str = pattern; | ||
312 | 154 | + } | ||
313 | 155 | + | ||
314 | 156 | needles.push_back(move(needle)); | ||
315 | 157 | } | ||
316 | 158 | if (needles.empty()) { | ||
317 | 159 | Index: plocate-1.1.15/plocate.1 | ||
318 | 160 | =================================================================== | ||
319 | 161 | --- plocate-1.1.15.orig/plocate.1 | ||
320 | 162 | +++ plocate-1.1.15/plocate.1 | ||
321 | 163 | @@ -104,6 +104,10 @@ | ||
322 | 164 | generate more candidates for searching the index. | ||
323 | 165 | |||
324 | 166 | .TP | ||
325 | 167 | +\fB\-p\fR, \fB\-\-ignore\-spaces\fR | ||
326 | 168 | +Ignore punctuation and spaces when matching patterns. | ||
327 | 169 | + | ||
328 | 170 | +.TP | ||
329 | 171 | \fB\-l\fR, \fB\-\-limit\fR \fILIMIT\fR | ||
330 | 172 | Stop searching after | ||
331 | 173 | .I LIMIT | ||
332 | diff --git a/debian/patches/series b/debian/patches/series | |||
333 | 0 | new file mode 100644 | 174 | new file mode 100644 |
334 | index 0000000..7a363de | |||
335 | --- /dev/null | |||
336 | +++ b/debian/patches/series | |||
337 | @@ -0,0 +1 @@ | |||
338 | 1 | locate-add-ignore-spaces-option-to-ignore-word-separ.patch | ||
339 | diff --git a/debian/plocate.postinst b/debian/plocate.postinst | |||
340 | index 5728938..ad3b1f3 100644 | |||
341 | --- a/debian/plocate.postinst | |||
342 | +++ b/debian/plocate.postinst | |||
343 | @@ -17,6 +17,16 @@ if [ "$1" = "configure" ]; then | |||
344 | 17 | if ! dpkg-statoverride --list /usr/bin/plocate >/dev/null 2>&1; then | 17 | if ! dpkg-statoverride --list /usr/bin/plocate >/dev/null 2>&1; then |
345 | 18 | dpkg-statoverride --update --add root "$GROUP" 2755 /usr/bin/plocate | 18 | dpkg-statoverride --update --add root "$GROUP" 2755 /usr/bin/plocate |
346 | 19 | fi | 19 | fi |
347 | 20 | |||
348 | 21 | if [ -z "$2" ] && ! [ -f /var/lib/plocate/plocate.db ]; then | ||
349 | 22 | echo -n "Initializing plocate database; this may take some time... " | ||
350 | 23 | NOCACHE= | ||
351 | 24 | if [ -x /usr/bin/nocache ]; then | ||
352 | 25 | NOCACHE="/usr/bin/nocache" | ||
353 | 26 | fi | ||
354 | 27 | $NOCACHE /usr/sbin/updatedb.plocate || true | ||
355 | 28 | echo "done" | ||
356 | 29 | fi | ||
357 | 20 | fi | 30 | fi |
358 | 21 | 31 | ||
359 | 22 | 32 | ||
360 | diff --git a/debian/rules b/debian/rules | |||
361 | index 8e8b766..c24f340 100755 | |||
362 | --- a/debian/rules | |||
363 | +++ b/debian/rules | |||
364 | @@ -5,3 +5,6 @@ | |||
365 | 5 | 5 | ||
366 | 6 | override_dh_auto_configure: | 6 | override_dh_auto_configure: |
367 | 7 | dh_auto_configure -- -Dupdatedb_progname=updatedb.plocate | 7 | dh_auto_configure -- -Dupdatedb_progname=updatedb.plocate |
368 | 8 | |||
369 | 9 | override_dh_installsystemd: | ||
370 | 10 | dh_installsystemd --no-start |
- The proposed merge candidate built successful in a PPA (ppa:dviererbe/ dviererbe- ppa) [1].
- All tests pass, except for i386 which never succeeded before (see [8]). Test Logs:
- amd64 [2]
- arm64 [3]
- armhf [4]
- i386 [5]
- ppc64el [6]
- s390x [7]
- I tested upgrading from the previous version in a local lxc container.
[1] https:/ /launchpad. net/~dviererbe/ +archive/ ubuntu/ dviererbe- ppa /autopkgtest. ubuntu. com/results/ autopkgtest- mantic- dviererbe- dviererbe- ppa/mantic/ amd64/p/ plocate/ 20230801_ 071222_ 2812b@/ log.gz /autopkgtest. ubuntu. com/results/ autopkgtest- mantic- dviererbe- dviererbe- ppa/mantic/ arm64/p/ plocate/ 20230801_ 072110_ 727fc@/ log.gz /autopkgtest. ubuntu. com/results/ autopkgtest- mantic- dviererbe- dviererbe- ppa/mantic/ armhf/p/ plocate/ 20230801_ 071210_ ecdb8@/ log.gz /autopkgtest. ubuntu. com/results/ autopkgtest- mantic- dviererbe- dviererbe- ppa/mantic/ i386/p/ plocate/ 20230801_ 073124_ 2fbcb@/ log.gz /autopkgtest. ubuntu. com/results/ autopkgtest- mantic- dviererbe- dviererbe- ppa/mantic/ ppc64el/ p/plocate/ 20230801_ 071033_ dc339@/ log.gz /autopkgtest. ubuntu. com/results/ autopkgtest- mantic- dviererbe- dviererbe- ppa/mantic/ s390x/p/ plocate/ 20230801_ 070931_ 5fc2a@/ log.gz /autopkgtest. ubuntu. com/packages/ plocate
[2] https:/
[3] https:/
[4] https:/
[5] https:/
[6] https:/
[7] https:/
[8] https:/