Re: [gentoo-user] Cleaning up world

2009-05-28 Thread Valmor de Almeida
Volker Armin Hemmann wrote:
 
 Look into /usr/portage/profiles/base/packages.
 Everything in there must not be in your world file.
 
 Afterwards start the big deleting. You have gnome installed? Remove 
 everything 
 X11, glib, gtk from world. kde? qt does not belong there. 
 
 With a little bit of thinking you can reduce world A LOT.
 

I find

sys-devel/gcc

in my world file. It is listed in ...base/packages too. How exactly do I
remove it from world? Just edit the world file by removing the
sys-devel/gcc line and do a revdep-rebuild --ignore followed by a emerge
--depclean ?

Thanks for inputs; I don't want to break my system.

--
Valmor




Re: [gentoo-user] Cleaning up world

2009-05-28 Thread Mark Knecht
On Thu, May 28, 2009 at 8:31 AM, Valmor de Almeida val.gen...@gmail.com wrote:
 Volker Armin Hemmann wrote:

 Look into /usr/portage/profiles/base/packages.
 Everything in there must not be in your world file.

 Afterwards start the big deleting. You have gnome installed? Remove 
 everything
 X11, glib, gtk from world. kde? qt does not belong there.

 With a little bit of thinking you can reduce world A LOT.


 I find

 sys-devel/gcc

 in my world file. It is listed in ...base/packages too. How exactly do I
 remove it from world? Just edit the world file by removing the
 sys-devel/gcc line and do a revdep-rebuild --ignore followed by a emerge
 --depclean ?

 Thanks for inputs; I don't want to break my system.

 --
 Valmor

Yes, just edit it, but remember what you did. Depending on how the
tools react you may want to put it back in. Well, not gcc necessarily,
but if you do this for other packages pay attention to what happens.
When I do this I rerun emerge -pdDuN world, eix-test-obsolete,
revdep-rebuild -p, etc., to make sure nothing really changed.

Hope this helps,
Mark



Re: [gentoo-user] Cleaning up world

2009-05-22 Thread Alan McKinnon
On Friday 22 May 2009 00:11:12 Mick wrote:
 On Tuesday 19 May 2009, Alan McKinnon wrote:
  Edit the world file and remove every version number in that file if
  present. You don;t need it and portage is infinitely better at tracking
  it than you are. Then remove everything with a category ending in lib,
  these rarely need to be in world.

 Arrrgh!  Does this mean that I shouldn't have all these in there:

 media-libs/libdvdcss
 media-libs/libdvdnav
 media-libs/libdvdread
 media-libs/libflash
 media-libs/libmodplug
 media-libs/libmp4v2
 media-libs/libmpcdec
 media-libs/libmpeg2
 media-libs/libmpeg3
 media-libs/libogg
 media-libs/libpng
 media-libs/libquicktime
 media-libs/libsamplerate
 media-libs/libsdl
 media-libs/libtheora

 Also, as you can see from media-libs/libmpeg am I having duplicate packages
 in there?

Those are useful packages, so you probably do want them. Just not in world :-)

If --depclean wants to remove them, you could add them back, or look closely 
at your media apps to see which USE has been removed.

libmpeg2 and libmpeg3 are different packages. The numbers are part of the 
name, not a version number.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Cleaning up world

2009-05-21 Thread Mick
On Tuesday 19 May 2009, Alan McKinnon wrote:

 Edit the world file and remove every version number in that file if
 present. You don;t need it and portage is infinitely better at tracking it
 than you are. Then remove everything with a category ending in lib, these
 rarely need to be in world.

Arrrgh!  Does this mean that I shouldn't have all these in there:

media-libs/libdvdcss
media-libs/libdvdnav
media-libs/libdvdread
media-libs/libflash
media-libs/libmodplug
media-libs/libmp4v2
media-libs/libmpcdec
media-libs/libmpeg2
media-libs/libmpeg3
media-libs/libogg
media-libs/libpng
media-libs/libquicktime
media-libs/libsamplerate
media-libs/libsdl
media-libs/libtheora

Also, as you can see from media-libs/libmpeg am I having duplicate packages in 
there?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Cleaning up world

2009-05-21 Thread Paul Hartman
On Thu, May 21, 2009 at 5:11 PM, Mick michaelkintz...@gmail.com wrote:
 On Tuesday 19 May 2009, Alan McKinnon wrote:

 Edit the world file and remove every version number in that file if
 present. You don;t need it and portage is infinitely better at tracking it
 than you are. Then remove everything with a category ending in lib, these
 rarely need to be in world.

 Arrrgh!  Does this mean that I shouldn't have all these in there:

 media-libs/libdvdcss
 media-libs/libdvdnav
 media-libs/libdvdread
 media-libs/libflash
 media-libs/libmodplug
 media-libs/libmp4v2
 media-libs/libmpcdec
 media-libs/libmpeg2
 media-libs/libmpeg3
 media-libs/libogg
 media-libs/libpng
 media-libs/libquicktime
 media-libs/libsamplerate
 media-libs/libsdl
 media-libs/libtheora

 Also, as you can see from media-libs/libmpeg am I having duplicate packages in
 there?

I think libmpeg2 and libmpeg3 are two distinct packages (2 and 3 are
the mpeg version and part of the library name, not the package
version)

and yes, those probably don't need to be there UNLESS you are a
developer and use them -- but if you only want libs that are required
by installed programs, then you most likely shouldn't have them in
world.



Re: [gentoo-user] Cleaning up world

2009-05-20 Thread Paul Hartman
On Tue, May 19, 2009 at 2:31 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Dienstag 19 Mai 2009, fe...@crowfix.com wrote:
 On Tue, May 19, 2009 at 07:55:23PM +0200, Volker Armin Hemmann wrote:
  Oh, and why that --pretend and feed into emerge' crap? Just do -a and
  world will not be bloated at all.

 Because I don't always want it to upgrade everything it wants to.

 then mask the stuff.

 Usually dependencies don't end up in world. But thanks to the stuff you do
 they did. Now you have a monster - starting to delete lines is a first step.

 Look into /usr/portage/profiles/base/packages.
 Everything in there must not be in your world file.

 Afterwards start the big deleting. You have gnome installed? Remove everything
 X11, glib, gtk from world. kde? qt does not belong there.

 With a little bit of thinking you can reduce world A LOT.

Another one is that anything beginning with lib* almost never needs to
be in world.

Basically as others have said, my thought process is that if it is not
a program that I use directly, it does not need to be in world. The
exception being optional helper apps for certain multimedia programs
that are not dependencies, but will be used to enhance the operation
of the program if they are present. (think of various media
encoders/decoders etc)



Re: [gentoo-user] Cleaning up world

2009-05-19 Thread Volker Armin Hemmann
On Dienstag 19 Mai 2009, fe...@crowfix.com wrote:
 In a previous thread, I learned about keeping world simple with
 --oneshot.  I realized how mine had gotten so bloated -- when I
 update, I edit the --pretend output and feed that directly into
 emerge without the benefit of --oneshot.

 So today I started a cleanup project.  I began by moving world to
 world-bloated and running emerge --depclean -p just to see what would
 happen.  The answer is ... a loop!

 There were a couple of missing or out of date packages and I emerged
 them.  But libusb has to be 10.6 to make some packages happy and 10.7
 to satisfy others.

 I have been down this route before.  I don't feel like unmerging
 either side of the mess, and even if I didn't want the packages, it is
 way too much hassle to unmerge them one by one as the list of unhappy
 packages grows.

 So, what is the proper way to recreate a proper world file?  If
 depclean can finally run one of these days when gentoo gets back in
 sync, is staring with an empty world file as good as anything else?
 The idea of trying to make intelligent guesses about which packages
 are truly top level, out of 3000+ packages, is not enticing.

nano -w world
remove everything you did not install.

Oh, and why that --pretend and feed into emerge' crap? Just do -a and world 
will not be bloated at all.




Re: [gentoo-user] Cleaning up world

2009-05-19 Thread Neil Bothwick
On Tue, 19 May 2009 10:32:01 -0700, fe...@crowfix.com wrote:

 So, what is the proper way to recreate a proper world file?  If
 depclean can finally run one of these days when gentoo gets back in
 sync, is staring with an empty world file as good as anything else?

No, starting with your existing world and removing packages, then running
--declean is the way to do it.

 The idea of trying to make intelligent guesses about which packages
 are truly top level, out of 3000+ packages, is not enticing.

It's not that hard, just remove anything you don't run yourself or as a
startup service. Start by deleting any lib packages.


-- 
Neil Bothwick

furbling, v.:
Having to wander through a maze of ropes at an airport or bank
even when you are the only person in line.
-- Rich Hall, Sniglets


signature.asc
Description: PGP signature


Re: [gentoo-user] Cleaning up world

2009-05-19 Thread Alan McKinnon
On Tuesday 19 May 2009 19:32:01 fe...@crowfix.com wrote:
 In a previous thread, I learned about keeping world simple with
 --oneshot.  I realized how mine had gotten so bloated -- when I
 update, I edit the --pretend output and feed that directly into
 emerge without the benefit of --oneshot.

 So today I started a cleanup project.  I began by moving world to
 world-bloated and running emerge --depclean -p just to see what would
 happen.  The answer is ... a loop!

 There were a couple of missing or out of date packages and I emerged
 them.  But libusb has to be 10.6 to make some packages happy and 10.7
 to satisfy others.

 I have been down this route before.  I don't feel like unmerging
 either side of the mess, and even if I didn't want the packages, it is
 way too much hassle to unmerge them one by one as the list of unhappy
 packages grows.

 So, what is the proper way to recreate a proper world file?  If
 depclean can finally run one of these days when gentoo gets back in
 sync, is staring with an empty world file as good as anything else?
 The idea of trying to make intelligent guesses about which packages
 are truly top level, out of 3000+ packages, is not enticing.

Step 1 is to make sure the machine is up to date - emerge -avuND world
Otherwise you are trying to take things out and portage is trying to put 
things in - confusing. Then satisfy the blockers like that issue with libusb, 
but chances are emerge world fixed that already.

Edit the world file and remove every version number in that file if present. 
You don;t need it and portage is infinitely better at tracking it than you 
are. Then remove everything with a category ending in lib, these rarely need 
to be in world.

Periodically run emerge -av --depclean adding things back to world that you do 
want - it's a rinse and repeat process.

If you use kde and gnome, I'll bet you have every package listed. Remove them 
all and add kde-meta or gnome back in (or maybe the @kde set if you use that). 
Let portage worry about dependencies.

By now you should be getting the idea that there's no easy way to recreate a 
minimum world file from an existing system. eix-test-obsolete looks like it 
ought to do this, but unfortunately doesn't.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Cleaning up world

2009-05-19 Thread Daniel Iliev
On Tue, 19 May 2009 10:32:01 -0700
fe...@crowfix.com wrote:

 In a previous thread, I learned about keeping world simple with
 --oneshot.  I realized how mine had gotten so bloated -- when I
 update, I edit the --pretend output and feed that directly into
 emerge without the benefit of --oneshot.
 
 So today I started a cleanup project.  I began by moving world to
 world-bloated and running emerge --depclean -p just to see what would
 happen.  The answer is ... a loop!
 
 There were a couple of missing or out of date packages and I emerged
 them.  But libusb has to be 10.6 to make some packages happy and 10.7
 to satisfy others.
 
 I have been down this route before.  I don't feel like unmerging
 either side of the mess, and even if I didn't want the packages, it is
 way too much hassle to unmerge them one by one as the list of unhappy
 packages grows.
 
 So, what is the proper way to recreate a proper world file?  If
 depclean can finally run one of these days when gentoo gets back in
 sync, is staring with an empty world file as good as anything else?
 The idea of trying to make intelligent guesses about which packages
 are truly top level, out of 3000+ packages, is not enticing.
 

QUICK  DIRTY:

emerge autounmask
autounmask =app-portage/udept-0.5.99.0.2.95-r1
dep -w


About the dirty part. Don't use dep for anything else. It's
masked for a good reason - it's outdated and doesn't work with current
portage versions. -w is the only feature I use and it works for me.
Use at your own risk, make a backup of the world file, etc...



-- 
Best regards,
Daniel



Re: [gentoo-user] Cleaning up world

2009-05-19 Thread Stroller


On 19 May 2009, at 18:32, fe...@crowfix.com wrote:

...
So today I started a cleanup project.  I began by moving world to
world-bloated and running emerge --depclean -p just to see what would
happen.  The answer is ... a loop!


It appears you no longer have a world file (because you moved it,  
rather than copying).


I would copy it then, as Volker suggests, edit the original.


There were a couple of missing or out of date packages and I emerged
them.  But libusb has to be 10.6 to make some packages happy and 10.7
to satisfy others.


If this is _really_ the case, then look at the packages that need 1.6.  
Look at the later, ~x86 or masked, versions of them and find one that  
supports 1.7. Unmask that  emerge it.


As Alan hints at (Edit the world file and remove every version number  
in that file if present), I think you might find that you don't  
really have any packages that won't support later than 1.6. Perhaps  
you just have 1.6 pinned in your world file, or you have an older  
version of a package (which has since been upgraded to support 1.7)  
pinned.


Stroller.




Re: [gentoo-user] Cleaning up world

2009-05-19 Thread felix
On Tue, May 19, 2009 at 07:55:23PM +0200, Volker Armin Hemmann wrote:

 Oh, and why that --pretend and feed into emerge' crap? Just do -a and world 
 will not be bloated at all.

Because I don't always want it to upgrade everything it wants to. 

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman  rocket surgeon / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



Re: [gentoo-user] Cleaning up world

2009-05-19 Thread Daniel Pielmeier
fe...@crowfix.com schrieb am 19.05.2009 20:25:
 On Tue, May 19, 2009 at 07:55:23PM +0200, Volker Armin Hemmann wrote:
 
 Oh, and why that --pretend and feed into emerge' crap? Just do -a and world 
 will not be bloated at all.
 
 Because I don't always want it to upgrade everything it wants to. 
 

Another quick thing would be copying the world file to a temporary
location and run regenworld. The created world file is not minimal but
in your case if you have still a few hundred entries in world the world
will be cut down a bit.

-- 
Daniel Pielmeier



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Cleaning up world

2009-05-19 Thread Volker Armin Hemmann
On Dienstag 19 Mai 2009, fe...@crowfix.com wrote:
 On Tue, May 19, 2009 at 07:55:23PM +0200, Volker Armin Hemmann wrote:
  Oh, and why that --pretend and feed into emerge' crap? Just do -a and
  world will not be bloated at all.

 Because I don't always want it to upgrade everything it wants to.

then mask the stuff.

Usually dependencies don't end up in world. But thanks to the stuff you do 
they did. Now you have a monster - starting to delete lines is a first step.

Look into /usr/portage/profiles/base/packages.
Everything in there must not be in your world file.

Afterwards start the big deleting. You have gnome installed? Remove everything 
X11, glib, gtk from world. kde? qt does not belong there. 

With a little bit of thinking you can reduce world A LOT.