Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/prelink/, sys-devel/prelink/files/, profiles/
Date: Wed, 23 Feb 2022 09:40:45
Message-Id: 1645609200.9e73effa51918eb614a66f4fa7670fded98a0d66.jsmolic@gentoo
1 commit: 9e73effa51918eb614a66f4fa7670fded98a0d66
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 23 09:20:03 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 23 09:40:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e73effa
7
8 sys-devel/prelink: treeclean
9
10 Closes: https://bugs.gentoo.org/579388
11 Closes: https://bugs.gentoo.org/726062
12 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
13
14 profiles/package.mask | 1 -
15 sys-devel/prelink/Manifest | 2 -
16 .../files/prelink-20130503-libiberty-md5.patch | 61 ------------------
17 .../files/prelink-20130503-prelink-conf.patch | 39 ------------
18 sys-devel/prelink/files/prelink.confd | 43 -------------
19 sys-devel/prelink/files/prelink.cron | 61 ------------------
20 sys-devel/prelink/files/prelink.service | 6 --
21 sys-devel/prelink/files/prelink.timer | 10 ---
22 sys-devel/prelink/metadata.xml | 8 ---
23 sys-devel/prelink/prelink-20151030-r1.ebuild | 72 ----------------------
24 sys-devel/prelink/prelink-99999999.ebuild | 71 ---------------------
25 11 files changed, 374 deletions(-)
26
27 diff --git a/profiles/package.mask b/profiles/package.mask
28 index 1c4a8c944217..0b1cdb8a034a 100644
29 --- a/profiles/package.mask
30 +++ b/profiles/package.mask
31 @@ -180,7 +180,6 @@ dev-java/felix-gogo-runtime
32 # already somewhat broken for a while...
33 # hmaccalc hard-depends on it (?).
34 # Removal in 30 days.
35 -sys-devel/prelink
36 app-crypt/hmaccalc
37
38 # James Beddek <telans@××××××.de> (2022-01-19)
39
40 diff --git a/sys-devel/prelink/Manifest b/sys-devel/prelink/Manifest
41 deleted file mode 100644
42 index 139e3eee1b83..000000000000
43 --- a/sys-devel/prelink/Manifest
44 +++ /dev/null
45 @@ -1,2 +0,0 @@
46 -DIST prelink-cross-20151030.tar.bz2 701337 BLAKE2B 4875b936254a03afd0eeb1ee81ee99f97a2d654b7c0379acb80ea3763412f3e892c366a9962ff3e1493bba9c83a8a140e79a1d5fb08b269a08ef596d63fd1d32 SHA512 75edd8617b95ae5bd3bfc968732ee142c968855c97c5b2b93784d3476a9724e0fd9a4eb7af681a5356616a4f023e24d5c5a2e75fb57e2a25b142cc901d9bfcaf
47 -DIST prelink.pdf 474129 BLAKE2B 6df5d4998d0822a8032c5dcd1103d7eafa8e9002f2cbfa8fa821131d7c804d2998100dc98d310ae3ae601137b6815435ecdd2684d547a8d25025984c20c06318 SHA512 86b7163fcf6f43d1764183b3dfc30aad8de99ce198b2721af276c81fc361e9f5fd8f4aea1e8e0c653f0566e8346dff4b4ba72909359167aa92c094f5561d2e1e
48
49 diff --git a/sys-devel/prelink/files/prelink-20130503-libiberty-md5.patch b/sys-devel/prelink/files/prelink-20130503-libiberty-md5.patch
50 deleted file mode 100644
51 index 5a9fffb838f9..000000000000
52 --- a/sys-devel/prelink/files/prelink-20130503-libiberty-md5.patch
53 +++ /dev/null
54 @@ -1,61 +0,0 @@
55 -From 8eeb9da6d017761037bf757780ea544dfeabbad8 Mon Sep 17 00:00:00 2001
56 -From: Mike Frysinger <vapier@g.o>
57 -Date: Tue, 31 Jul 2012 09:02:35 +0000
58 -Subject: [PATCH] libiberty/md5: fix strict alias warnings
59 -MIME-Version: 1.0
60 -Content-Type: text/plain; charset=UTF-8
61 -Content-Transfer-Encoding: 8bit
62 -
63 -Current libiberty md5 code triggers these warnings with gcc-4.7.1 for me:
64 -
65 -libiberty/md5.c: In function ‘md5_finish_ctx’:
66 -libiberty/md5.c:117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
67 -libiberty/md5.c:118:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
68 -
69 -The change below fixes things for me. The optimized output (-O2) is the same
70 -before/after my change on x86_64-linux. I imagine it'll be the same for most
71 -targets. It seems simpler than using a union on the md5_ctx buffer since these
72 -are the only two locations in the code where this occurs.
73 ----
74 - libiberty/ChangeLog | 5 +++++
75 - libiberty/md5.c | 12 ++++++++----
76 - 2 files changed, 13 insertions(+), 4 deletions(-)
77 -
78 -2012-07-31 Mike Frysinger <vapier@g.o>
79 -
80 - * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
81 - to swap_bytes, and then call memcpy to move it to ctx->buffer.
82 -
83 -diff --git a/libiberty/md5.c b/libiberty/md5.c
84 -index 0db8fc8..8cc0cb5 100644
85 ---- a/src/md5.c
86 -+++ b/src/md5.c
87 -@@ -103,6 +103,7 @@ md5_finish_ctx (struct md5_ctx *ctx, void *resbuf)
88 - {
89 - /* Take yet unprocessed bytes into account. */
90 - md5_uint32 bytes = ctx->buflen;
91 -+ md5_uint32 swap_bytes;
92 - size_t pad;
93 -
94 - /* Now count remaining bytes. */
95 -@@ -113,10 +114,13 @@ md5_finish_ctx (struct md5_ctx *ctx, void *resbuf)
96 - pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes;
97 - memcpy (&ctx->buffer[bytes], fillbuf, pad);
98 -
99 -- /* Put the 64-bit file length in *bits* at the end of the buffer. */
100 -- *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3);
101 -- *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) |
102 -- (ctx->total[0] >> 29));
103 -+ /* Put the 64-bit file length in *bits* at the end of the buffer.
104 -+ Use memcpy to avoid aliasing problems. On most systems, this
105 -+ will be optimized away to the same code. */
106 -+ swap_bytes = SWAP (ctx->total[0] << 3);
107 -+ memcpy (&ctx->buffer[bytes + pad], &swap_bytes, sizeof (swap_bytes));
108 -+ swap_bytes = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29));
109 -+ memcpy (&ctx->buffer[bytes + pad + 4], &swap_bytes, sizeof (swap_bytes));
110 -
111 - /* Process last bytes. */
112 - md5_process_block (ctx->buffer, bytes + pad + 8, ctx);
113 ---
114 -1.8.2.1
115 -
116
117 diff --git a/sys-devel/prelink/files/prelink-20130503-prelink-conf.patch b/sys-devel/prelink/files/prelink-20130503-prelink-conf.patch
118 deleted file mode 100644
119 index 9233a4114827..000000000000
120 --- a/sys-devel/prelink/files/prelink-20130503-prelink-conf.patch
121 +++ /dev/null
122 @@ -1,39 +0,0 @@
123 ---- a/doc/prelink.conf
124 -+++ b/doc/prelink.conf
125 -@@ -5,6 +5,7 @@
126 - # If a directory name is prefixed with `-h ', symbolic links in a
127 - # directory hierarchy are followed.
128 - # Directories or files with `-b ' prefix will be blacklisted.
129 -+-c /etc/prelink.conf.d/*.conf
130 - -b *.la
131 - -b *.png
132 - -b *.py
133 -@@ -16,8 +16,11 @@
134 - -b *.a
135 - -b *.js
136 - -b /lib/modules
137 ---b /usr/lib/locale
138 ---b /usr/X11R6/lib{,64}/X11/xfig
139 -+-b /usr/lib{,x32,32,64}/locale
140 -+-b /usr/lib{,x32,32,64}/wine
141 -+-b /usr/lib{,x32,32,64}/valgrind
142 -+-b /usr/X11R6/lib{,x32,32,64}/X11/xfig
143 -+-b /usr/src
144 - -l /bin
145 - -l /usr/bin
146 - -l /sbin
147 -@@ -27,9 +30,9 @@
148 - -l /usr/games
149 - -l /usr/libexec
150 - -l /var/ftp/bin
151 ---l /lib{,64}
152 ---l /usr/lib{,64}
153 ---l /usr/X11R6/lib{,64}
154 ---l /usr/kerberos/lib{,64}
155 -+-l /lib{,x32,32,64}
156 -+-l /usr/lib{,x32,32,64}
157 -+-l /usr/X11R6/lib{,x32,32,64}
158 -+-l /usr/kerberos/lib{,x32,32,64}
159 - -l /usr/X11R6/LessTif
160 ---l /var/ftp/lib{,64}
161 -+-l /var/ftp/lib{,x32,32,64}
162
163 diff --git a/sys-devel/prelink/files/prelink.confd b/sys-devel/prelink/files/prelink.confd
164 deleted file mode 100644
165 index 6b89b8c1f1fd..000000000000
166 --- a/sys-devel/prelink/files/prelink.confd
167 +++ /dev/null
168 @@ -1,43 +0,0 @@
169 -# For an in depth prelinking guide, please see:
170 -# http://www.gentoo.org/doc/en/prelink-howto.xml
171 -
172 -# Control prelinking behavior in the cronjob.
173 -# yes - automatically prelink the system
174 -# no - automatically un-prelink the system
175 -# "" - do nothing at all (user manages)
176 -# (if you change this from yes to no prelink -ua
177 -# will be run next night to undo prelinking)
178 -PRELINKING=""
179 -
180 -# Options to pass to prelink
181 -# -m Try to conserve virtual memory by allowing overlapping
182 -# assigned virtual memory slots for libraries which
183 -# never appear together in one binary
184 -# -R Randomize virtual memory slot assignments for libraries.
185 -# This makes it slightly harder for various buffer overflow
186 -# attacks, since library addresses will be different on each
187 -# host using -R.
188 -PRELINK_OPTS=-mR
189 -
190 -# How often should full prelink be run (in days)
191 -# Normally, prelink will be run in quick mode, every
192 -# $PRELINK_FULL_TIME_INTERVAL days it will be run
193 -# in normal mode. Comment it out if it should be run
194 -# in normal mode always.
195 -PRELINK_FULL_TIME_INTERVAL=14
196 -
197 -# How often should prelink run (in days) even if
198 -# no packages have been upgraded via portage.
199 -# If $PRELINK_FULL_TIME_INTERVAL days have not elapsed
200 -# yet since last normal mode prelinking, last
201 -# quick mode prelinking happened less than
202 -# $PRELINK_NOEMER_CHECK_INTERVAL days ago
203 -# and no packages have been upgraded by portage
204 -# since last quick mode prelinking, prelink
205 -# will not do anything.
206 -# Change to
207 -# PRELINK_NOEMER_CHECK_INTERVAL=0
208 -# if you want to disable the portage database timestamp
209 -# check (especially if you don't use portage
210 -# exclusively to upgrade system libraries and/or binaries).
211 -PRELINK_NOEMER_CHECK_INTERVAL=7
212
213 diff --git a/sys-devel/prelink/files/prelink.cron b/sys-devel/prelink/files/prelink.cron
214 deleted file mode 100644
215 index 067fc2ea97a2..000000000000
216 --- a/sys-devel/prelink/files/prelink.cron
217 +++ /dev/null
218 @@ -1,61 +0,0 @@
219 -#!/bin/sh
220 -
221 -. /etc/conf.d/prelink
222 -log="/var/log/prelink.log"
223 -
224 -case $PRELINKING in
225 - yes|no);;
226 - *) exit 0;;
227 -esac
228 -
229 -ionice -c3 -p $$ >/dev/null 2>&1
230 -renice +19 -p $$ >/dev/null 2>&1
231 -
232 -if [ "$PRELINKING" != yes ]; then
233 - sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:#KDE_IS_PRELINKED=1:' /etc/env.d/*kde* 2>/dev/null
234 - if [ -f /etc/prelink.cache ]; then
235 - echo /usr/sbin/prelink -uav > ${log}
236 - /usr/sbin/prelink -uav >> ${log} 2>&1 \
237 - || echo Prelink failed with return value $? >> ${log}
238 - rm -f /etc/prelink.cache
239 - # Restart init if needed
240 - [ -n "$(find `ldd /sbin/init | awk 'NF == 4 { print $3 }'` /sbin/init -ctime -1 2>/dev/null )" ] && /sbin/telinit u
241 - fi
242 - exit 0
243 -fi
244 -
245 -sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:KDE_IS_PRELINKED=1:' /etc/env.d/*kde* 2>/dev/null
246 -
247 -if [ ! -f /etc/prelink.cache -o -f /var/lib/misc/prelink.force ] \
248 - || grep -q '^prelink-ELF0.[0-2]' /etc/prelink.cache; then
249 - # If cache does not exist or is from older prelink versions or
250 - # if we were asked to explicitely, force full prelinking
251 - rm -f /etc/prelink.cache /var/lib/misc/prelink.force
252 - PRELINK_OPTS="$PRELINK_OPTS -f"
253 - date > /var/lib/misc/prelink.full
254 - cp -a /var/lib/misc/prelink.full /var/lib/misc/prelink.quick
255 -elif [ -n "$PRELINK_FULL_TIME_INTERVAL" \
256 - -a "`find /var/lib/misc/prelink.full -mtime -${PRELINK_FULL_TIME_INTERVAL} 2>/dev/null`" \
257 - = /var/lib/misc/prelink.full ]; then
258 - # If no more than PRELINK_NOEMER_CHECK_INTERVAL days elapsed from last prelink
259 - # (be it full or quick) and no packages have been upgraded via rpm since then,
260 - # don't do anything.
261 - [ "`find /var/lib/misc/prelink.quick -mtime -${PRELINK_NOEMER_CHECK_INTERVAL:-7} 2>/dev/null`" \
262 - -a -f /var/cache/edb/counter \
263 - -a /var/cache/edb/counter -ot /var/lib/misc/prelink.quick ] && exit 0
264 - date > /var/lib/misc/prelink.quick
265 - # If prelink without -q has been run in the last
266 - # PRELINK_FULL_TIME_INTERVAL days, just use quick mode
267 - PRELINK_OPTS="$PRELINK_OPTS -q"
268 -else
269 - date > /var/lib/misc/prelink.full
270 - cp -a /var/lib/misc/prelink.full /var/lib/misc/prelink.quick
271 -fi
272 -
273 -echo /usr/sbin/prelink -av $PRELINK_OPTS > ${log}
274 -/usr/sbin/prelink -av $PRELINK_OPTS >> ${log} 2>&1 \
275 - || echo Prelink failed with return value $? >> ${log}
276 -# Restart init if needed (and if exists)
277 -[ -n "$(find `ldd /sbin/init 2>/dev/null | awk 'NF == 4 { print $3 }'` /sbin/init -ctime -1 2>/dev/null )" ] && /sbin/telinit u
278 -
279 -exit 0
280
281 diff --git a/sys-devel/prelink/files/prelink.service b/sys-devel/prelink/files/prelink.service
282 deleted file mode 100644
283 index dcdbf813a0e4..000000000000
284 --- a/sys-devel/prelink/files/prelink.service
285 +++ /dev/null
286 @@ -1,6 +0,0 @@
287 -[Unit]
288 -Description=Perform system-wide prelinking
289 -
290 -[Service]
291 -Type=oneshot
292 -ExecStart=/etc/cron.daily/prelink
293
294 diff --git a/sys-devel/prelink/files/prelink.timer b/sys-devel/prelink/files/prelink.timer
295 deleted file mode 100644
296 index 5d58d437158e..000000000000
297 --- a/sys-devel/prelink/files/prelink.timer
298 +++ /dev/null
299 @@ -1,10 +0,0 @@
300 -[Unit]
301 -Description=Daily system-wide prelinking
302 -
303 -[Timer]
304 -OnCalendar=daily
305 -AccuracySec=12h
306 -Persistent=true
307 -
308 -[Install]
309 -WantedBy=timers.target
310
311 diff --git a/sys-devel/prelink/metadata.xml b/sys-devel/prelink/metadata.xml
312 deleted file mode 100644
313 index 5a1e1dee65db..000000000000
314 --- a/sys-devel/prelink/metadata.xml
315 +++ /dev/null
316 @@ -1,8 +0,0 @@
317 -<?xml version="1.0" encoding="UTF-8"?>
318 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
319 -<pkgmetadata>
320 -<maintainer type="project">
321 - <email>toolchain@g.o</email>
322 - <name>Gentoo Toolchain Project</name>
323 -</maintainer>
324 -</pkgmetadata>
325
326 diff --git a/sys-devel/prelink/prelink-20151030-r1.ebuild b/sys-devel/prelink/prelink-20151030-r1.ebuild
327 deleted file mode 100644
328 index 17c39b3993ef..000000000000
329 --- a/sys-devel/prelink/prelink-20151030-r1.ebuild
330 +++ /dev/null
331 @@ -1,72 +0,0 @@
332 -# Copyright 2002-2020 Gentoo Authors
333 -# Distributed under the terms of the GNU General Public License v2
334 -
335 -EAPI="7"
336 -
337 -MY_PN="${PN}-cross"
338 -MY_P="${MY_PN}-${PV}"
339 -
340 -inherit autotools flag-o-matic systemd
341 -
342 -DESCRIPTION="Modifies ELFs to avoid runtime symbol resolutions resulting in faster load times"
343 -HOMEPAGE="https://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/ https://people.redhat.com/jakub/prelink"
344 -SRC_URI="https://git.yoctoproject.org/cgit/cgit.cgi/${MY_PN}/snapshot/${MY_P}.tar.bz2
345 - doc? ( https://people.redhat.com/jakub/prelink/prelink.pdf )"
346 -
347 -LICENSE="GPL-2"
348 -SLOT="0"
349 -KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 x86"
350 -IUSE="doc selinux"
351 -
352 -RDEPEND=">=dev-libs/elfutils-0.100
353 - selinux? ( sys-libs/libselinux )
354 - !dev-libs/libelf"
355 -DEPEND="${RDEPEND}
356 - sys-libs/binutils-libs"
357 -
358 -S=${WORKDIR}/${MY_P}
359 -
360 -PATCHES=(
361 - "${FILESDIR}"/${PN}-20130503-prelink-conf.patch
362 - "${FILESDIR}"/${PN}-20130503-libiberty-md5.patch
363 -)
364 -
365 -# tests were fixed only in development version after 20151030
366 -RESTRICT=test
367 -
368 -src_prepare() {
369 - default
370 -
371 - sed -i -e '/^CC=/s: : -Wl,--disable-new-dtags :' testsuite/functions.sh #100147
372 -
373 - has_version 'dev-libs/elfutils[threads]' && append-ldflags -pthread
374 -
375 - eautoreconf
376 -}
377 -
378 -src_configure() {
379 - econf $(use_enable selinux)
380 -}
381 -
382 -src_install() {
383 - default
384 -
385 - use doc && dodoc "${DISTDIR}"/prelink.pdf
386 -
387 - insinto /etc
388 - doins doc/prelink.conf
389 -
390 - exeinto /etc/cron.daily
391 - newexe "${FILESDIR}"/prelink.cron prelink
392 - newconfd "${FILESDIR}"/prelink.confd prelink
393 - systemd_dounit "${FILESDIR}"/prelink.{service,timer}
394 -}
395 -
396 -pkg_postinst() {
397 - if [ -z "${REPLACING_VERSIONS}" ] ; then
398 - elog "You may wish to read the Gentoo Linux Prelink Guide, which can be"
399 - elog "found online at:"
400 - elog " https://wiki.gentoo.org/wiki/Prelink"
401 - elog "Please edit /etc/conf.d/prelink to enable and configure prelink"
402 - fi
403 -}
404
405 diff --git a/sys-devel/prelink/prelink-99999999.ebuild b/sys-devel/prelink/prelink-99999999.ebuild
406 deleted file mode 100644
407 index dfe534db6194..000000000000
408 --- a/sys-devel/prelink/prelink-99999999.ebuild
409 +++ /dev/null
410 @@ -1,71 +0,0 @@
411 -# Copyright 2002-2020 Gentoo Authors
412 -# Distributed under the terms of the GNU General Public License v2
413 -
414 -EAPI="7"
415 -
416 -MY_PN="${PN}-cross"
417 -MY_P="${MY_PN}-${PV}"
418 -
419 -inherit autotools flag-o-matic git-r3 systemd
420 -
421 -DESCRIPTION="Modifies ELFs to avoid runtime symbol resolutions resulting in faster load times"
422 -HOMEPAGE="https://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/ https://people.redhat.com/jakub/prelink"
423 -EGIT_REPO_URI="https://git.yoctoproject.org/git/prelink-cross"
424 -
425 -LICENSE="GPL-2"
426 -SLOT="0"
427 -IUSE="doc selinux"
428 -
429 -RDEPEND=">=dev-libs/elfutils-0.100
430 - selinux? ( sys-libs/libselinux )
431 - !dev-libs/libelf"
432 -DEPEND="${RDEPEND}
433 - sys-libs/binutils-libs"
434 -
435 -PATCHES=(
436 - "${FILESDIR}"/${PN}-20130503-prelink-conf.patch
437 - "${FILESDIR}"/${PN}-20130503-libiberty-md5.patch
438 -)
439 -
440 -src_prepare() {
441 - default
442 -
443 - sed -i -e '/^CC=/s: : -Wl,--disable-new-dtags :' testsuite/functions.sh #100147
444 -
445 - has_version 'dev-libs/elfutils[threads]' && append-ldflags -pthread
446 -
447 - eautoreconf
448 -}
449 -
450 -src_configure() {
451 - econf $(use_enable selinux)
452 -}
453 -
454 -src_test() {
455 - # prelink tests check exact library lists.
456 - # LD_PRELOADed libraries break the assumption.
457 - SANDBOX_ON=0 LD_PRELOAD= emake check VERBOSE=1
458 -}
459 -
460 -src_install() {
461 - default
462 -
463 - use doc && dodoc doc/prelink.pdf
464 -
465 - insinto /etc
466 - doins doc/prelink.conf
467 -
468 - exeinto /etc/cron.daily
469 - newexe "${FILESDIR}"/prelink.cron prelink
470 - newconfd "${FILESDIR}"/prelink.confd prelink
471 - systemd_dounit "${FILESDIR}"/prelink.{service,timer}
472 -}
473 -
474 -pkg_postinst() {
475 - if [ -z "${REPLACING_VERSIONS}" ] ; then
476 - elog "You may wish to read the Gentoo Linux Prelink Guide, which can be"
477 - elog "found online at:"
478 - elog " https://wiki.gentoo.org/wiki/Prelink"
479 - elog "Please edit /etc/conf.d/prelink to enable and configure prelink"
480 - fi
481 -}