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] Another reason to begin USE with "-*"
Date: Mon, 13 Mar 2006 15:13:27 -0600	[thread overview]
Message-ID: <4415E077.4020400@cisco.com> (raw)
In-Reply-To: <200603131124.05843.bss03@volumehost.net>

Boyd Stephen Smith Jr. wrote:

>The -pv output of emerge shows this.  A flag that was not available in your 
>current version but it available in the one you are installing, will be 
>colored yellow and postfixed with '%'.
>
>  
>

Great.  So something like the following in my cron.daily/portage.update 
script should do the job:


echo "Save old use.desc"
rm -f /usr/portage/profiles/use.desc.old
cp /usr/portage/profiles/use.desc /usr/portage/profiles/use.desc.old

echo "Save old use.local.desc"
rm -f /usr/portage/profiles/use.local.desc.old
cp /usr/portage/profiles/use.local.desc 
/usr/portage/profiles/use.local.desc.old

echo "Syncing portage tree..."
emerge --sync 2>> /var/log/portage.cron.log > /dev/null
status=$?

if [ $status -ne 0 ]; then
        echo "Portage sync failed, exiting update."
        exit $status
fi

echo "Changed use flags:"
diff /usr/portage/profiles/use.desc.old /usr/portage/profiles/use.desc
diff /usr/portage/profiles/use.local.desc.old 
/usr/portage/profiles/use.local.desc

echo "Running eupdatedb..."
eupdatedb --quiet --nocolor 2> /dev/null

echo "Running update-eix..."
update-eix --quiet

echo "Checking for updates..."
rm -f /tmp/emerge.output
/usr/local/sbin/einfo --update --deep --newuse world
emerge --update --deep --pretend --verbose --nospinner --newuse world > 
/tmp/emerge.output
emerge --update --deep --fetchonly --quiet --nospinner --newuse world >> 
/tmp/emerge.output
cat /tmp/emerge.output

echo "New USE flags indicated by trailing percent sign in:"
grep -P "\S+%" /tmp/emerge.output


Thank you,
Roy
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-03-13 21:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-11 14:24 [gentoo-user] Who does need apache? Andrew Gaydenko
2006-03-11 14:38 ` Ash Varma
2006-03-11 15:31   ` Andrew Gaydenko
2006-03-12  0:20     ` [gentoo-user] Another reason to begin USE with "-*" Walter Dnes
2006-03-12  0:58       ` Ryan Tandy
2006-03-12  2:43         ` Walter Dnes
2006-03-12 15:16           ` [gentoo-user] " james
2006-03-12  8:11       ` Francesco Talamona
2006-03-12 17:51       ` [gentoo-user] " Ciaran McCreesh
2006-03-12 20:07         ` Boyd Stephen Smith Jr.
2006-03-13  4:53           ` Roy Wright
2006-03-13  6:07             ` Michael Stewart (vericgar)
2006-03-13  9:21               ` Roy Wright
2006-03-13 17:24                 ` Boyd Stephen Smith Jr.
2006-03-13 21:13                   ` Roy Wright [this message]
2006-03-13 21:39                     ` Boyd Stephen Smith Jr.
2006-03-13 22:29                       ` Roy Wright
2006-03-13  8:09             ` Rick van Hattem
2006-03-13 17:35               ` [gentoo-user] " Harry Putnam
2006-03-12  0:44 ` [gentoo-user] Who does need apache? Ryan Tandy
2006-03-12  4:13   ` Thomas Kear

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=4415E077.4020400@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