Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/getdelta/files/, app-portage/getdelta/, profiles/
Date: Tue, 24 Aug 2021 12:39:32
Message-Id: 1629808715.b965153d7733fe0a58bdd54a378cd337e76a420c.soap@gentoo
1 commit: b965153d7733fe0a58bdd54a378cd337e76a420c
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Tue Aug 24 12:38:35 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 24 12:38:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b965153d
7
8 app-portage/getdelta: Remove last-rited package
9
10 Closes: https://bugs.gentoo.org/371635
11 Bug: https://bugs.gentoo.org/630814
12 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 app-portage/getdelta/Manifest | 1 -
16 app-portage/getdelta/files/getdelta-0.7.9.patch | 252 ------------------------
17 app-portage/getdelta/getdelta-0.7.9-r2.ebuild | 46 -----
18 app-portage/getdelta/metadata.xml | 8 -
19 profiles/package.mask | 5 -
20 5 files changed, 312 deletions(-)
21
22 diff --git a/app-portage/getdelta/Manifest b/app-portage/getdelta/Manifest
23 deleted file mode 100644
24 index e296fc62195..00000000000
25 --- a/app-portage/getdelta/Manifest
26 +++ /dev/null
27 @@ -1 +0,0 @@
28 -DIST getdelta-0.7.8.tar.bz2 10335 BLAKE2B ab2093a805649904405d23d7ec7afb2f338e87864c91f8aeb13efa2547f5493080cc1249a28a73da8e17d6b5aaff6fc00f217fe5b8df51db4fbea2420a88a523 SHA512 66374ce1a0ec5492d11478ddcaeb67b497a44357605f3cd1b9176796ca9f69d8c6865f9db188a6d7722c4ab372a5a317dfa6fafe97d9f08f76f332469f1ee2b2
29
30 diff --git a/app-portage/getdelta/files/getdelta-0.7.9.patch b/app-portage/getdelta/files/getdelta-0.7.9.patch
31 deleted file mode 100644
32 index 9ab117e59c9..00000000000
33 --- a/app-portage/getdelta/files/getdelta-0.7.9.patch
34 +++ /dev/null
35 @@ -1,252 +0,0 @@
36 ---- getdelta.sh 2007-07-13 16:30:26.000000000 +0000
37 -+++ getdelta.sh 2010-08-27 17:23:31.692000002 +0000
38 -@@ -25,6 +25,9 @@
39 - VERSION="0.7"
40 -
41 - # Changelog
42 -+# version 0.7.9 2008/10/08
43 -+# - add second parameter for destination name (EAPI=2)
44 -+# - quote more carefully
45 - # version 0.7.8 2007/07/13
46 - # - added option -O to call of emerge when finding mirrors
47 - # - replaced some calls of coreutils with bash-internals
48 -@@ -326,13 +329,13 @@
49 -
50 - remove() {
51 - output "${GREEN}You have chosen to remove ${CYAN}$1\n"
52 -- pushd ${DISTDIR} >/dev/null 2>&1
53 -+ pushd -- "${DISTDIR}" >/dev/null 2>&1
54 - removeme=true
55 - for n in $(grep -v "^#" ${DO_NOT_REMOVE})
56 - do
57 - grep -q $n <<< "$1" && removeme=false && output "${CYAN}${1}${RED} is not deleted, since it matches ${n} in ${DO_NOT_REMOVE}"
58 - done
59 -- $removeme && rm -f $1
60 -+ $removeme && rm -f -- "$1"
61 - popd >/dev/null 2>&1
62 - }
63 -
64 -@@ -349,7 +352,7 @@
65 - -e "s/src4/srcDDD/g" \
66 - -e "s/src5/srcEEE/g" \
67 - -e "s/src6/srcFFF/g" \
68 -- -e "s/src7/srcGGG/g" <<< $MASK_FILENAME)
69 -+ -e "s/src7/srcGGG/g" <<< "$MASK_FILENAME")
70 - fi
71 -
72 - # ignore PR for src-files of firefox
73 -@@ -375,7 +378,7 @@
74 - -e "s/rc//g" \
75 - -e "s/[\._-]//g" \
76 - -e "s/\+//g" \
77 -- -e "s/ //g" <<< $MASK_FILENAME)
78 -+ -e "s/ //g" <<< "$MASK_FILENAME")
79 - }
80 -
81 - # create or update a config-file
82 -@@ -384,6 +387,7 @@
83 - add_to_configfile LOCAL_MIRROR "" "set this to one or more (space separated) URI ending with '/' if you want to check one or more local mirror(s) first\n# most people just leave it empty."
84 - add_to_configfile DELTUP_SERVER "http://linux01.gwdg.de/~nlissne/deltup.php" "deltup-server to use"
85 - add_to_configfile FETCH "/usr/bin/wget -t 1 --passive-ftp" "command to use for downloading"
86 -+add_to_configfile FETCHNAME "\$FETCH -O" "command to use for downloading; first parameter is the filename, second the url"
87 - add_to_configfile QUEUERETRY 15 "number of seconds to wait before a queued request is retried"
88 - add_to_configfile MAXIMUM_ACCEPTABLE_QUEUEPOS "15" "the maximum queuepos you would accept (if higher download full archive instead)"
89 - add_to_configfile QUEUETIMEOUT 900 "when a dtu-request is queued - how long should we wait max. before downloading the original archive instead (in seconds)"
90 -@@ -424,14 +428,14 @@
91 - add_to_donotremove "^rp-pppoe"
92 -
93 -
94 --if [ -z $1 ]
95 -+if [ -z "$1" ]
96 - then
97 - COLOR=true
98 - echo -e "${YELLOW}getdelta.sh version ${VERSION}"
99 - echo "This script has to be called like this:"
100 - echo -e "${CYAN}$0 <URI>"
101 - echo -e "\n${YELLOW}To use it, you should just put the following line into your /etc/make.conf"
102 -- echo -e "${GREEN}FETCHCOMMAND=\"$0 \\\${URI}\""
103 -+ echo -e "${GREEN}FETCHCOMMAND=\"$0 \\\"\\\${URI}\\\" \\\"\\\${FILE}\\\"\""
104 - echo -e "\n${YELLOW}There is a config-file ${CYAN}${GETDELTA_CONFIGFILE}${YELLOW} with some variables to control the behaviour of this script."
105 - echo -e "Edit it to your needs.${NORMAL}"
106 - exit 1
107 -@@ -464,10 +468,12 @@
108 - output "use getdelta.sh for your FETCHCOMMAND, only." &&
109 - sleep 5 && exit 1
110 -
111 --pushd $DISTDIR >/dev/null 2>/dev/null
112 -+pushd -- "$DISTDIR" >/dev/null 2>/dev/null
113 - ORIG_URI=$1
114 - NEW_FILE=$(basename $ORIG_URI)
115 -
116 -+[ -z "${NEW_FILE}" ] && NEW_FILE=${ORIG_URI##*/}
117 -+
118 - # repoman downloads metadata.dtd with FETCHCOMMAND
119 - # this should not be done with getdelta - so just fetch the file and exit
120 -
121 -@@ -475,7 +481,7 @@
122 - # dtu files.
123 - if [ "${NEW_FILE}" = "metadata.dtd" ] || [ "$GETDELTA" = "0" ]
124 - then
125 -- $FETCH $@
126 -+ $FETCHNAME "$NEW_FILE" "$ORIG_URI"
127 - exit $?
128 - fi
129 -
130 -@@ -516,7 +522,7 @@
131 - #
132 - output "${GREEN}Searching for a previously downloaded file in ${YELLOW}${DISTDIR}\n"
133 -
134 --first_chars=$(sed 's/[[:digit:]][[:print:]]*$//' <<< $NEW_FILE)
135 -+first_chars=$(sed 's/[[:digit:]][[:print:]]*$//' <<< "$NEW_FILE")
136 - length_first_chars=${#first_chars}
137 - [ $length_first_chars -lt 3 ] && first_chars="${NEW_FILE:0:2}"
138 -
139 -@@ -527,7 +533,7 @@
140 - let len1=${#mask}
141 - filelist=""
142 -
143 --for name in $( ls ${first_chars}* 2>/dev/null )
144 -+for name in $( ls -- "${first_chars}"* 2>/dev/null )
145 - do
146 - mask2=$(mask_name "${name}")
147 - # add any file, that results in the same mask or differ not more than two letters
148 -@@ -582,7 +588,7 @@
149 -
150 - # find matching part of filename - first: frontmatch
151 - x=0;
152 -- a=($NEW_FILE $filelist)
153 -+ a=("$NEW_FILE" $filelist)
154 - match=""
155 - while [ -z "$match" ]
156 - do
157 -@@ -657,7 +663,7 @@
158 - FILE_IS_CORRUPT=false
159 - if $CHECK_OLD_FILE
160 - then
161 -- file_digest=$(grep -h ${best_candidate} ${FILESDIR}/digest-* | sed -n 1p)
162 -+ file_digest=$(grep -h ${best_candidate} "${FILESDIR}"/digest-* | sed -n 1p)
163 - if [ "$file_digest" ]
164 - then
165 - file_md5=$(cut -d ' ' -f2 <<< "$file_digest")
166 -@@ -669,7 +675,7 @@
167 - FILE_IS_CORRUPT=true
168 - fi
169 - else
170 -- if [ $(rev <<< ${best_candidate} | cut -d. -f2 | rev) = "tar" ]
171 -+ if [ $(rev <<< "${best_candidate}" | cut -d. -f2 | rev) = "tar" ]
172 - then
173 - output "${YELLOW}Could not find a digest-file for ${CYAN}${best_candidate}${YELLOW}. Testing file integrity with tar.\n"
174 - if ! tar -tf ${best_candidate} >/dev/null
175 -@@ -698,17 +704,16 @@
176 -
177 - # Remember where we are, and go to a new dir there we can work
178 - tmp_dwn_dest="${DISTDIR}/.getdelta-`date +%N`-tmp"
179 -- mkdir ${tmp_dwn_dest}
180 -+ mkdir -- "${tmp_dwn_dest}"
181 - # If user abort Ctrl+C (signal 2), remove tmp-dir; enabable trap again and send it again to stop wget
182 -- trap "rm -r ${tmp_dwn_dest}; trap 2; kill -2 $$" 2
183 -- pushd ${tmp_dwn_dest} >/dev/null 2>&1
184 -+ trap 'rm -r -- "${tmp_dwn_dest}"; trap 2; kill -2 '$$ 2
185 -+ pushd -- "${tmp_dwn_dest}" >/dev/null 2>&1
186 -
187 - # thanks to MATSUI Fe2+ Tetsushi for idea and patch
188 - FILESIZE=$(stat -c %s "${DISTDIR}/${best_candidate}")
189 - let TIMELIMIT=${FILESIZE}/${BANDWIDTH}
190 - [[ $TIMELIMIT -lt $QUEUETIMEOUT ]] && QUEUETIMEOUT=$TIMELIMIT
191 --
192 -- if $FETCH "${DELTUP_SERVER}${query}"
193 -+ if $FETCH "${DELTUP_SERVER}${query}" -O ${best_candidate}-${NEW_FILE}.dtu
194 - then
195 - # thanks to deelkar for this much more elegant solution to the "broken pipe" problem with "head -n1"
196 - GOTFILE=$(ls -c | sed -n 1p)
197 -@@ -718,15 +723,15 @@
198 - # may have sento to us.
199 -
200 - # first: the request have been queued
201 -- if [ "${GOTFILE}" = "deltup-queued" ]
202 -+# if [ "${GOTFILE}" = "deltup-queued" ]
203 -+ if [[ "$(file -bi ${GOTFILE}|cut -d ";" -f1)" != "application/x-bzip2" && "$(cat ${GOTFILE}|cut -d "," -f1)" != "sorry" ]]
204 - then
205 - let QTMOUT=$(date +%s)+QUEUETIMEOUT
206 -- while [ -f deltup-queued ]
207 -+ while [[ "$(file -bi ${GOTFILE}|cut -d ";" -f1)" != "application/x-bzip2" && "$(cat ${GOTFILE}|cut -d "," -f1)" != "sorry" ]]
208 - do
209 - output "${GREEN}destination file: ${CYAN}${NEW_FILE}\n"
210 -- output "${YELLOW}$(cat deltup-queued)"
211 -- QUEUEPOS=$(grep "has been queued" deltup-queued | cut -d. -f2 | cut -d")" -f1)
212 -- rm -f deltup-queued
213 -+ output "${YELLOW}$(cat ${GOTFILE})"
214 -+ QUEUEPOS=$(grep "has been queued" ${GOTFILE} | cut -d. -f2 | cut -d")" -f1)
215 - TSTAMP=$(date +%s)
216 - if ((TSTAMP<QTMOUT)) && ((QUEUEPOS<=MAXIMUM_ACCEPTABLE_QUEUEPOS))
217 - then
218 -@@ -741,7 +746,7 @@
219 - sleep 1
220 - done
221 - echo -n -e "${NORMAL}"
222 -- $FETCH "${DELTUP_SERVER}${query}"
223 -+ $FETCH "${DELTUP_SERVER}${query}" -O ${best_candidate}-${NEW_FILE}.dtu
224 - GOTFILE=$(ls -c | sed -n 1p)
225 - else
226 - if ((TSTAMP>=QTMOUT))
227 -@@ -761,20 +766,20 @@
228 - done
229 - fi
230 -
231 -- if [ -f ${best_candidate}-${NEW_FILE}.failed ]
232 -+ if [ "$(cat ${GOTFILE}|cut -d "," -f1)" = "sorry" ]
233 - then
234 - output "\n${RED}The server could not build the dtu-file for ${NEW_FILE}\n"
235 -- output "${YELLOW}reason:\n${RED}$(cat ${best_candidate}-${NEW_FILE}.failed)\n"
236 -- rm -rf ${best_candidate}-${NEW_FILE}.failed
237 -+ output "${YELLOW}reason:\n${RED}$(cat ${GOTFILE})\n"
238 -+ rm -rf -- "${GOTFILE}"
239 - fi
240 -
241 -- if [ -f ${best_candidate}-${NEW_FILE}.dtu ]
242 -+ if [ -f "${best_candidate}-${NEW_FILE}.dtu" ]
243 - then
244 - output "${GREEN}Successfully fetched the dtu-file - let's build ${NEW_FILE}...\n"
245 -- downloadsize=$(stat -c %s ${best_candidate}-${NEW_FILE}.dtu)
246 -- if deltup -p -v -D ${DISTDIR} ${best_candidate}-${NEW_FILE}.dtu
247 -+ downloadsize=$(stat -c %s "${best_candidate}-${NEW_FILE}.dtu")
248 -+ if deltup -p -v -D "${DISTDIR}" "${best_candidate}-${NEW_FILE}.dtu"
249 - then
250 -- newsize=$(stat -c %s ${NEW_FILE})
251 -+ newsize=$(stat -c %s "${NEW_FILE}")
252 - let savedsize=${newsize}-${downloadsize}
253 - let percent=${savedsize}*100/${newsize}
254 - unit="bytes"
255 -@@ -791,8 +796,8 @@
256 - esac
257 - output "${YELLOW}This dtu-file saved ${UCOLOR}${savedsize} ${unit} (${percent}%)${YELLOW} download size.\n"
258 - fi
259 -- mv -f ${NEW_FILE} ${DISTDIR} &&
260 -- ${REMOVE_OLD} && remove "${best_candidate}"
261 -+ mv -f -- "${NEW_FILE}" "${DISTDIR}" &&
262 -+ ${REMOVE_OLD} && remove ${best_candidate}
263 - fi
264 -
265 - fi # if $FETCH "${DELTUP_SERVER}${query}"
266 -@@ -812,7 +817,7 @@
267 - read
268 - fi
269 - popd >/dev/null 2>&1
270 -- rm -rf ${tmp_dwn_dest}
271 -+ rm -rf -- "${tmp_dwn_dest}"
272 - #stop respond to trap2
273 - trap 2
274 - fi # if ! FILE_IS_CORRUPT
275 -@@ -824,10 +829,10 @@
276 -
277 - # Ok, once we are here, we should have got the delta (and used it)
278 - # or we still have to download the full file
279 --if ! [ -f ${DISTDIR}/${NEW_FILE} ]
280 -+if ! [ -f "${DISTDIR}/${NEW_FILE}" ]
281 - then
282 - output "${RED}The dtu could not be fetched,${YELLOW} downloading full file from original URL\n"
283 -- $FETCH $ORIG_URI
284 -+ $FETCHNAME "$NEW_FILE" "$ORIG_URI"
285 - # remember we had a fallback to use correct exitcode for portage
286 - FALLBACK=$?
287 - fi
288
289 diff --git a/app-portage/getdelta/getdelta-0.7.9-r2.ebuild b/app-portage/getdelta/getdelta-0.7.9-r2.ebuild
290 deleted file mode 100644
291 index db9e237e791..00000000000
292 --- a/app-portage/getdelta/getdelta-0.7.9-r2.ebuild
293 +++ /dev/null
294 @@ -1,46 +0,0 @@
295 -# Copyright 1999-2021 Gentoo Authors
296 -# Distributed under the terms of the GNU General Public License v2
297 -
298 -EAPI=5
299 -
300 -inherit epatch
301 -
302 -DESCRIPTION="dynamic deltup client"
303 -HOMEPAGE="http://linux01.gwdg.de/~nlissne/"
304 -SRC_URI="http://linux01.gwdg.de/~nlissne/${PN}-0.7.8.tar.bz2"
305 -SLOT="0"
306 -IUSE=""
307 -LICENSE="GPL-2"
308 -KEYWORDS="~alpha ~amd64 ~sparc ~x86"
309 -
310 -RDEPEND="app-portage/deltup
311 - dev-util/bdelta"
312 -
313 -S=${WORKDIR}
314 -
315 -src_prepare() {
316 - epatch "${FILESDIR}"/${P}.patch
317 -}
318 -
319 -src_install() {
320 - # portage has moved make.globals, so we just hotfix it
321 - sed -i -e "s:/etc/make.globals:/usr/share/portage/config/make.globals:g" "${WORKDIR}"/getdelta.sh || die "Couldn't fix make.globals path"
322 -
323 - # make.conf has now two locations. This should fix it ( #461726 )
324 - sed -i -e "s:source /etc/make.conf:source /etc/make.conf || source /etc/portage/make.conf:" "${WORKDIR}"/getdelta.sh || die "Couldn't fix make.conf path"
325 -
326 - sed -i -e "s:/bin/sh:/bin/bash:" "${WORKDIR}"/getdelta.sh || die
327 - dobin "${WORKDIR}"/getdelta.sh
328 -}
329 -
330 -pkg_postinst() {
331 - elog "You need to put"
332 - elog "FETCHCOMMAND=\"/usr/bin/getdelta.sh \\\${URI}\""
333 - elog "into your /etc/make.conf to make use of getdelta"
334 -
335 - # make sure permissions are ok
336 - touch "${ROOT}"/var/log/getdelta.log
337 - mkdir -p "${ROOT}"/etc/deltup
338 - chown -R portage:portage "${ROOT}"/{var/log/getdelta.log,etc/deltup}
339 - chmod -R ug+rwX "${ROOT}"/{var/log/getdelta.log,etc/deltup}
340 -}
341
342 diff --git a/app-portage/getdelta/metadata.xml b/app-portage/getdelta/metadata.xml
343 deleted file mode 100644
344 index f3de5f693ed..00000000000
345 --- a/app-portage/getdelta/metadata.xml
346 +++ /dev/null
347 @@ -1,8 +0,0 @@
348 -<?xml version="1.0" encoding="UTF-8"?>
349 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
350 -<pkgmetadata>
351 - <maintainer type="person">
352 - <email>patrick@g.o</email>
353 - <name>Patrick Lauer</name>
354 - </maintainer>
355 -</pkgmetadata>
356
357 diff --git a/profiles/package.mask b/profiles/package.mask
358 index 27140ed208e..457005a8a05 100644
359 --- a/profiles/package.mask
360 +++ b/profiles/package.mask
361 @@ -309,11 +309,6 @@ dev-cpp/libxsd-frontend
362 dev-cpp/libcutl
363 dev-util/build
364
365 -# John Helmert III <ajak@g.o> (2021-07-26)
366 -# Open security bug, service backing it seems to be dead, making these
367 -# packages useless. Old EAPIs. Removal on 2021-08-26. Bug #630814
368 -app-portage/getdelta
369 -
370 # Andrew Ammerlaan <andrewammerlaan@g.o> (2021-07-12)
371 # Version 3.3.0 suffers from ridiculously high CPU usage, this version has
372 # therefore been retracted upstream.