public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Roy Wright <royw@cisco.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Heads-Up sys-lib/com_err breaks Apps
Date: Fri, 08 Jul 2005 10:56:08 -0500	[thread overview]
Message-ID: <42CEA218.5050907@cisco.com> (raw)
In-Reply-To: <1120809184.29226.113.camel@neuromancer.home.net>

Here's a perl script to display the einfo lines of packages to
be merged.  Just run it with the same options you will use for
emerge.  Example:

  einfo -uDN world >einfo.txt
  emerge -uDN world
  less einfo.txt

You will probably want to save the output to refer to after
emerging.

Enjoy,
Roy

#!/usr/bin/perl

# this script will run emerge with the given command line options plus
# "--pretend".  It will then grep all of the packages to be merged looking
# for einfo lines to display.

$portage = '/usr/portage';
$emerge = "emerge @ARGV --pretend";

open(EMERGE, "$emerge|") || die "unable to open $emerge\n";
while(<EMERGE>) {
        if(/\[[^\]]+\]\s+(\S+)\/(\S+)\-(\d\S*)\s/) {
                findInfo($1,$2,$3);
        }
}
close(EMERGE);

exit 0;

sub findInfo
{
        local ($package,$name,$ver) = @_;
        local $pkgDir = "$portage/$package/$name";
        local $ebuild = "$pkgDir/$name-$ver.ebuild";
        print "$ebuild\n";
        if(-T $ebuild) {
                open(EBUILD, "<$ebuild") || warn "unable to read $ebuild\n";
                while(<EBUILD>) {
                        if(/(einfo.*)$/) {
                                print "  $1\n";
                        }
                }
                close(EBUILD);
        }
        print "\n";
}


Ow Mun Heng wrote:

>Perhaps a good thing would be when the emerge -uDpv world output can be
>formatted to include einfo messages, or rather include "ecriticalinfo"
>outputs. (Just like IIRC updating portage will make that happen.)
>
>Now, that would be a feature worth having.
>  
>
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2005-07-08 16:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-08  5:38 [gentoo-user] Heads-Up sys-lib/ss breaks Apps Ow Mun Heng
2005-07-08  6:04 ` Zac Medico
2005-07-08  6:28   ` [gentoo-user] Heads-Up sys-lib/com_err " Ow Mun Heng
2005-07-08  7:11     ` Zac Medico
2005-07-08  7:38     ` W.Kenworthy
2005-07-08  7:53       ` Ow Mun Heng
2005-07-08 15:56         ` Roy Wright [this message]
2005-07-09 11:21           ` Peter Ruskin
2005-07-09 12:04             ` Peter Ruskin
2005-07-10  1:24               ` Roy Wright
2005-07-08 15:52 ` [gentoo-user] Heads-Up sys-lib/ss " Ron Bickers
2005-07-08 16:51   ` Uwe Thiem
2005-07-08 17:47   ` kashani
2005-07-09  1:56     ` Allan Gottlieb
2005-07-10  1:41       ` Ow Mun Heng
2005-07-08 19:17   ` Rumen Yotov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42CEA218.5050907@cisco.com \
    --to=royw@cisco.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox