Gentoo Archives: gentoo-dev

From: "Paweł Hajdan
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] preserve_old_lib and I'm even more lazy
Date: Mon, 27 Feb 2012 15:08:05
Message-Id: 4F4B9C07.7070504@gentoo.org
In Reply to: [gentoo-dev] preserve_old_lib and I'm even more lazy by "Paweł Hajdan
1 On 2/24/12 6:56 PM, "Paweł Hajdan, Jr." wrote:
2 > I'd like to modify eutils.eclass to only generate one command:
3 >
4 > # revdep-rebuild --library '/usr/lib/libv8.so.3.9.4' && \
5 > rm '/usr/lib/libv8.so.3.9.4'
6
7 Given supporting comments to this thread (and totally off-topic
8 zfs/btrfs discussion), I'd like to commit the patch below in 24 hours.
9
10 > --- eutils.eclass.orig 2012-02-26 10:02:24.000000000 +0100
11 > +++ eutils.eclass 2012-02-26 10:03:17.000000000 +0100
12 > @@ -1276,16 +1276,8 @@
13 > fi
14 > # temp hack for #348634 #357225
15 > [[ ${PN} == "mpfr" ]] && lib=${lib##*/}
16 > - ewarn " # revdep-rebuild --library '${lib}'"
17 > + ewarn " # revdep-rebuild --library '${lib}' && rm '${lib}'"
18 > done
19 > - if [[ ${notice} -eq 1 ]] ; then
20 > - ewarn
21 > - ewarn "Once you've finished running revdep-rebuild, it should be safe to"
22 > - ewarn "delete the old libraries. Here is a copy & paste for the lazy:"
23 > - for lib in "$@" ; do
24 > - ewarn " # rm '${lib}'"
25 > - done
26 > - fi
27 > }
28 >
29 > # @FUNCTION: built_with_use

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] preserve_old_lib and I'm even more lazy Pacho Ramos <pacho@g.o>