public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] move to xfce and forget kde and gnome
Date: Fri, 19 Aug 2011 19:14:07 -0400	[thread overview]
Message-ID: <20110819231407.GA4717@waltdnes.org> (raw)
In-Reply-To: <4E4E7F01.5060609@gmail.com>

On Fri, Aug 19, 2011 at 05:19:29PM +0200, Space Cake wrote

> I'll try to avoid as many kde/gnome application as I can :) I don't 
> really like them because I want to have my window in front of me right 
> when  click on the icon :). I just started to clean-up my useflags, 
> changed to desktop profile and I'll leave my machine here for the 
> weekend to re-emerge everything is needed for this change. I'm sure 
> some revdep-rebuild and depclean still waiting for me and also I think 
> lot of kde / gnome libs will remain because of the dependencies...

  Here's my "autodepclean" script.  It parses the output of a pretend
depclean and generates, but does not execute, a script called
"cleanscript", which has to be run as root.  Note the warning to check
"cleanscript" before running it.  Remove the commands to unmerge the
stuff you want to keep.  In addition to some gentoo-sources kernels, it
now wants to remove nano, ever since "virtual/editor" showed up in
Gentoo.  I get the warning...

!!! 'app-editors/nano' (virtual/editor) is part of your system profile.
!!! Unmerging it may be damaging to your system.

  Here's the script...

#!/bin/bash
# autodepclean script v 0.01 released under GPL v3 by Walter Dnes 2010/08/18
# Generates a file "cleanscript" to remove unused ebuilds, including
# buildtime-only dependancies.
#
# Warning; this script is still beta.  I recommend that you check the output
# in cleanscript before running it.  It is agressive about removing unused
# gentoo-sources versions.  This includes those that are higher than your
# current kernel.  This is technically correct for removing unused ebuilds,
# but it may not be what you want.
#
echo "#!/bin/bash" > cleanscript
echo "#" > cleanscript.000
emerge --pretend --depclean |\
  grep -A1 "^ .*/" |\
  grep -v "^ \*" |\
  grep -v "^--" |\
  sed ":/: {
N
s:\n::
s/    selected: /-/
s/^ /emerge --depclean =/
}" >> cleanscript.000
while read
do
  echo "${REPLY}" >> cleanscript
  if [ "${REPLY:0:6}" == "emerge" ]; then
    echo "revdep-rebuild" >> cleanscript
  fi
done < cleanscript.000
chmod 744 cleanscript


-- 
Walter Dnes <waltdnes@waltdnes.org>



  reply	other threads:[~2011-08-19 23:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19 12:02 [gentoo-user] move to xfce and forget kde and gnome Space Cake
2011-08-19 12:54 ` [gentoo-user] " Nikos Chantziaras
2011-08-19 14:07   ` Space Cake
2011-08-19 14:27     ` jdm
2011-08-19 14:41       ` Nikos Chantziaras
2011-08-19 14:39     ` Nikos Chantziaras
2011-08-19 16:03   ` Peter Humphrey
2011-08-22  9:47   ` Space Cake
2011-08-22 10:32     ` Neil Bothwick
2011-08-22 11:30     ` Michael Mol
2011-08-22 17:08       ` Michael Mol
2011-08-19 14:50 ` [gentoo-user] " András Csányi
2011-08-19 15:19   ` Space Cake
2011-08-19 23:14     ` Walter Dnes [this message]
2011-08-20  0:34       ` Peter Humphrey
2011-08-20  4:02         ` Walter Dnes
2011-08-20  8:07           ` Alan McKinnon
2011-08-20 10:32             ` Peter Humphrey
2011-08-20  1:17       ` Pandu Poluan
2011-08-20  4:10         ` Walter Dnes
2011-08-19 19:54   ` Daniel da Veiga

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=20110819231407.GA4717@waltdnes.org \
    --to=waltdnes@waltdnes.org \
    --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