public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Bo Ørsted Andresen" <bo.andresen@zlin.dk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] splitdebug
Date: Thu, 15 Jun 2006 03:09:46 +0200	[thread overview]
Message-ID: <200606150309.57141.bo.andresen@zlin.dk> (raw)
In-Reply-To: <200606150225.34505.bo.andresen@zlin.dk>

[-- Attachment #1: Type: text/plain, Size: 844 bytes --]

Just in case others are interested I ended out with this script:

===============================================
#/bin/bash

for arg in $@; do
        if [[ "${arg}" =~ "^\-" ]]; then
                EMERGE_ARGS="${EMERGE_ARGS} ${arg}"
        else
                BINARIES="${BINARIES} ${arg}"
        fi
done

PKG_LIST=`which ${BINARIES} | xargs -r ldd | awk '$2~/^=>$/{print $3}' | \
	sort -u | xargs -r equery belongs | sort -u | while read pkg; do grep -q \
	splitdebug /var/db/pkg/"$pkg"/FEATURES || echo ="$pkg"; done | xargs`

if [[ -n "${PKG_LIST}" ]]; then
        emerge --verbose --oneshot ${EMERGE_ARGS} ${PKG_LIST}
fi
===============================================

This allows me to run it with -a or --ask to avoid having to wait for equery 
and emerge twice.

Thanks Richard. :)

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-06-15  1:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-14 20:57 [gentoo-user] splitdebug Bo Ørsted Andresen
2006-06-14 21:28 ` Richard Fish
2006-06-14 21:45   ` Bo Ørsted Andresen
2006-06-15  0:01     ` Richard Fish
2006-06-15  0:25       ` Bo Ørsted Andresen
2006-06-15  1:09         ` Bo Ørsted Andresen [this message]
2006-06-15  1:57           ` Richard Fish
2006-06-15  8:53       ` Neil Bothwick

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=200606150309.57141.bo.andresen@zlin.dk \
    --to=bo.andresen@zlin.dk \
    --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