From: Eldad Zack <eldad@stoneshaft.ath.cx>
To: Andrew Gaffney <agaffney@technaut.darktalker.net>
Cc: Gentoo Dev <gentoo-dev@gentoo.org>
Subject: Re: [gentoo-dev] correct package depends
Date: Wed, 15 Oct 2003 21:06:27 +0200 (IST) [thread overview]
Message-ID: <Pine.LNX.4.58.0310152103330.21541@localhost> (raw)
In-Reply-To: <Pine.LNX.4.58.0310152037130.18783@localhost>
I forgot to mention -
The patch shows the USE flags whenever -i -v is used.
also, it would show up only with installed packages.
On Wed, 15 Oct 2003, Eldad Zack wrote:
>
> On Tue, 14 Oct 2003, Andrew Gaffney wrote:
>
> > Chris Gianelloni wrote:
> > > On Tue, 2003-10-14 at 12:52, Andrew Gaffney wrote:
> > >
> > >>Is there a program/script out there that can give me the same information at 'qpkg -q'
> > >>*and* take into account the USE flags packages were compiled with? If not, I'm going to
> > >>write one.
> > >
> > >
> > > Why not add the functionality to qpkg?
> >
> > First of all, I'm not a very good bash/sed/awk/grep/etc. programmer. Second, I believe
> > that is beyond the functionality of a bash script.
> >
> > --
> > Andrew Gaffney
> >
> >
> > --
> > gentoo-dev@gentoo.org mailing list
> >
> >
>
> I've wanted the same functionality myself, so I went ahead and changed
> qpkg.
>
> apply this patch to qpkg.
>
> If the developers maintaining gentoolkit would apply this at well, it'll
> be even better.
>
> --- /usr/bin/qpkg 2003-10-03 13:23:58.000000000 +0200
> +++ qpkg 2003-10-15 20:35:24.000000000 +0200
> @@ -376,6 +376,21 @@
> home=`grep HOMEPAGE ${p}| cut -d\" -f2`
> desc=`grep DESCRIPTION ${p}| cut -d\" -f2`
> echo -e "${T}${BL}${desc}${NO} [ ${YL}${home}${NO} ]"
> + if [ ${verb} -gt 0 ]; then
> + pdir=${p/$(basename ${p})/}
> + if [[ -r ${pdir}/USE ]]; then
> + echo -n "Compiled with USE Flags: "
> + for flag in $(<${pdir}/IUSE)
> + do
> + use=$(grep -o ${flag} ${pdir}/USE | tr -d '\n')
> + if [[ "${use}" == "" ]]; then
> + echo -n "-"
> + fi
> + echo -n "${flag} "
> + done
> + echo
> + fi
> + fi
> fi
>
> if [ "${query}" ]; then
>
>
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2003-10-15 19:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-14 16:52 [gentoo-dev] correct package depends Andrew Gaffney
2003-10-14 23:47 ` Chris Gianelloni
2003-10-15 1:21 ` Andrew Gaffney
2003-10-15 18:43 ` Eldad Zack
2003-10-15 19:06 ` Eldad Zack [this message]
2003-10-16 0:19 ` Andrew Gaffney
2003-10-16 8:59 ` Eldad Zack
2003-10-16 15:15 ` Andrew Gaffney
2003-10-16 16:27 ` Eldad Zack
2003-10-16 17:25 ` Andrew Gaffney
2003-10-16 18:41 ` Andrew Gaffney
2003-10-15 23:59 ` Andrew Gaffney
2003-10-16 0:14 ` Spider
2003-10-16 8:13 ` Christian Birchinger
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=Pine.LNX.4.58.0310152103330.21541@localhost \
--to=eldad@stoneshaft.ath.cx \
--cc=agaffney@technaut.darktalker.net \
--cc=gentoo-dev@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