On 2/24/12 6:56 PM, "Paweł Hajdan, Jr." wrote:
> I'd like to modify eutils.eclass to only generate one command:
> 
> # revdep-rebuild --library '/usr/lib/libv8.so.3.9.4' && \
>       rm '/usr/lib/libv8.so.3.9.4'

Given supporting comments to this thread (and totally off-topic
zfs/btrfs discussion), I'd like to commit the patch below in 24 hours.

> --- eutils.eclass.orig        2012-02-26 10:02:24.000000000 +0100
> +++ eutils.eclass     2012-02-26 10:03:17.000000000 +0100
> @@ -1276,16 +1276,8 @@
>               fi
>               # temp hack for #348634 #357225
>               [[ ${PN} == "mpfr" ]] && lib=${lib##*/}
> -             ewarn "  # revdep-rebuild --library '${lib}'"
> +             ewarn "  # revdep-rebuild --library '${lib}' && rm '${lib}'"
>       done
> -     if [[ ${notice} -eq 1 ]] ; then
> -             ewarn
> -             ewarn "Once you've finished running revdep-rebuild, it should 
> be safe to"
> -             ewarn "delete the old libraries.  Here is a copy & paste for 
> the lazy:"
> -             for lib in "$@" ; do
> -                     ewarn "  # rm '${lib}'"
> -             done
> -     fi
>  }
>  
>  # @FUNCTION: built_with_use

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to