[gentoo-user] emerge curiosity

2005-06-09 Thread reg hughson
As shown below, why wouldn't emerge -u world pick up the update available for 
gdm? 

Actually, I think it is probably because it is not listed in 
/var/lib/portage/world so I guess I am actually wondering why it wouldn't be 
listed there? 

Obviously my system knows gdm is installed but how does it know this? I guess I 
was always under the impression that everything I installed would be placed in 
/var/lib/portage/world. Obviously not. I know I can edit that file and add gdm 
dut that doesn't really answer my question.

I am sure this is a minor issue that I just can't find in the man pages but I 
am trying to 1) learn something that I am obviously missing 2) determine if 
there are any other updates that emerge -Du world might be missing.

Thanks in advance.

Reg


[EMAIL PROTECTED] ~ $ sudo emerge -ua world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!

Nothing to merge; do you want me to auto-clean packages? [Yes/No] no

Quitting.

[EMAIL PROTECTED] ~ $ sudo emerge -ua gdm

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild U ] gnome-base/librsvg-2.9.5 [2.8.1-r1]
[ebuild U ] gnome-base/gdm-2.6.0.9-r3 [2.6.0.6]

Do you want me to merge these packages? [Yes/No] no

Quitting.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread Wade Brown
It's likely that gnome-base/gdm isn't in your world file.  An easy way
to check this is:

grep gnome-base/gdm /var/lib/portage/world

It's more than likely a dependancy of some other gnome project that
hasn't upgraded its requirements to gdm.  A way to upgrade
dependancies is to add --deep or just -D to your emerge world, e.g.

emerge -Duva world

One other useful flag you may have missed is also --newuse or -N,
which rechecks use flags on all packages, just in case you've tweaked
your flags recently.

On 6/9/05, reg hughson [EMAIL PROTECTED] wrote:
 As shown below, why wouldn't emerge -u world pick up the update available 
 for gdm?
 
 Actually, I think it is probably because it is not listed in 
 /var/lib/portage/world so I guess I am actually wondering why it wouldn't be 
 listed there?
 
 Obviously my system knows gdm is installed but how does it know this? I guess 
 I was always under the impression that everything I installed would be placed 
 in /var/lib/portage/world. Obviously not. I know I can edit that file and add 
 gdm dut that doesn't really answer my question.
 
 I am sure this is a minor issue that I just can't find in the man pages but I 
 am trying to 1) learn something that I am obviously missing 2) determine if 
 there are any other updates that emerge -Du world might be missing.
 
 Thanks in advance.
 
 Reg
 
 
 [EMAIL PROTECTED] ~ $ sudo emerge -ua world
 
 These are the packages that I would merge, in order:
 
 Calculating world dependencies ...done!
 
 Nothing to merge; do you want me to auto-clean packages? [Yes/No] no
 
 Quitting.
 
 [EMAIL PROTECTED] ~ $ sudo emerge -ua gdm
 
 These are the packages that I would merge, in order:
 
 Calculating dependencies ...done!
 [ebuild U ] gnome-base/librsvg-2.9.5 [2.8.1-r1]
 [ebuild U ] gnome-base/gdm-2.6.0.9-r3 [2.6.0.6]
 
 Do you want me to merge these packages? [Yes/No] no
 
 Quitting.
 
 --
 gentoo-user@gentoo.org mailing list
 


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread David Morgan
On 12:16 Thu 09 Jun , reg hughson wrote:
 As shown below, why wouldn't emerge -u world pick up the update available 
 for gdm? 
 
 Actually, I think it is probably because it is not listed in 
 /var/lib/portage/world so I guess I am actually wondering why it wouldn't be 
 listed there? 
 
 Obviously my system knows gdm is installed but how does it know this? I guess 
 I was always under the impression that everything I installed would be placed 
 in /var/lib/portage/world. Obviously not. I know I can edit that file and add 
 gdm dut that doesn't really answer my question.
 
 I am sure this is a minor issue that I just can't find in the man pages but I 
 am trying to 1) learn something that I am obviously missing 2) determine if 
 there are any other updates that emerge -Du world might be missing.
 

emerge -uD world should want to upgrade gdm.

Here's how it works:

You type emerge foo, and bar gets installed as a dep of foo, and baz
gets installed as a dep of bar. foo gets recorded in your world file,
but bar and baz don't. All 3 get entries in /var/db/pkg.

Now, if you do emerge -u world should pickup updates for foo and bar, but not
baz. emerge -uD world should pickup updates for foo, bar and baz.

But if foo gets removed or stops depending on bar and nothing else
depends on bar, then even emerge -uD world or emerge -e world won't
pickup updates of bar or baz. If you still wanted bar in this case you
could do emerge -n bar, and it'd get added to your world file without
being re-emerged.

Why not add everything to your world file? I believe that it slows
portage down because it has to check the deps of more packages. It also means
that if libbar gets installed as a dep of appfoo, and then you decided
you don't want appfoo anymore and unmerge it then you'd still keep
getting updates for libfoo, and emerge depclean wouldn't remove it. It's
also harder to maintain/find stuff in a larger world file.

hth, Dave
-- 
djm

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread Holly Bostick
reg hughson schreef:
 As shown below, why wouldn't emerge -u world pick up the update available 
 for gdm? 
 
 Actually, I think it is probably because it is not listed in 
 /var/lib/portage/world so I guess I am actually wondering why it wouldn't be 
 listed there? 
 
 Obviously my system knows gdm is installed but how does it know this? I guess 
 I was always under the impression that everything I installed would be placed 
 in /var/lib/portage/world. Obviously not. I know I can edit that file and add 
 gdm dut that doesn't really answer my question.
 

It knows this because GDM is a dependency of the gnome meta-package. If
you installed that, then GDM was pulled in as a dependency, but
dependencies are not placed in the world file. Had you installed (for
example) the gnome-light package, which does not install GDM as a
dependency, in order to get GDM you would have had to explicitly emerge
it, which would have placed it in your world file.

If you want to be sure that dependencies will be updated as well as
listed packages, use

emerge -uaD(tv) world

instead of

emerge -ua(v) world

The --deep switch makes Portage also check the update availability of
dependencies of the packages in your world file.

Hope this helps.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread Zac Medico


--- reg hughson [EMAIL PROTECTED] wrote:

 As shown below, why wouldn't emerge -u world pick
 up the update available for gdm? 
 
 Actually, I think it is probably because it is not
 listed in /var/lib/portage/world so I guess I am
 actually wondering why it wouldn't be listed there? 
 

It was merged indirectly as a dependency.

 Obviously my system knows gdm is installed but how
 does it know this? I guess I was always under the

The installed package database is in /var/db/pkg.

 impression that everything I installed would be
 placed in /var/lib/portage/world. Obviously not. I
 know I can edit that file and add gdm dut that
 doesn't really answer my question.
 
 I am sure this is a minor issue that I just can't
 find in the man pages but I am trying to 1) learn
 something that I am obviously missing 2) determine
 if there are any other updates that emerge -Du
 world might be missing.

emerge -uD world will upgrade all packages to the
latest (unmasked) versions.  Nothing will be missed. 
Like Wade said, the a, v, and N options are also
recommended.

Zac



__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread Zac Medico
--- reg hughson [EMAIL PROTECTED] wrote:
 
 Thanks to all but in hindsight, I guess I should
 have posted my emerge -Du world as it does not
 reveal the upgrade for gdm either. 
 
 So I guess at one point, gdm got pulled in as part
 of something else that no longer is on my system? 
 
 How would I find other programs that may exist in a
 similiar state?
 

emerge -a depclean

You need to study your emerge manpage ;-)

Zac



__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread reg hughson
On Thu, 9 Jun 2005 10:37:21 -0700 (PDT)
Zac Medico [EMAIL PROTECTED] wrote:

 --- reg hughson [EMAIL PROTECTED] wrote:
  
  Thanks to all but in hindsight, I guess I should
  have posted my emerge -Du world as it does not
  reveal the upgrade for gdm either. 
  
  So I guess at one point, gdm got pulled in as part
  of something else that no longer is on my system? 
  
  How would I find other programs that may exist in a
  similiar state?
  
 
 emerge -a depclean
 
 You need to study your emerge manpage ;-)
 
 Zac

You're rightgdm comes up during depclean. Actually, as you point out, my 
answer was in the emerge page all along. The man page states that emerge 
generates a list of packages which it expects to be installed by checking the 
system package list and the world file. 

Which brings me to my final questions...where is this package list? Is it, as 
one person already stated, simply the list of directories, etc. below 
/var/lib/pkg? And if it is, then how does one do an emerge -Du on the package 
list, not just the world list, thereby updating EVERYTHING on your system?


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread Zac Medico


--- reg hughson [EMAIL PROTECTED] wrote:

 The man page states that
 emerge generates a list of packages which it expects
 to be installed by checking the system package list
 and the world file. 
 
 Which brings me to my final questions...where is
 this package list? Is it, as one person already
 stated, simply the list of directories, etc. below
 /var/lib/pkg? And if it is, then how does one do an
 emerge -Du on the package list, not just the world
 list, thereby updating EVERYTHING on your system?
 

The system package list comes from the profile linked
from /etc/make.profile.  Portage uses stacked or
cascading profiles now so it uses all the package
files of your profile and all the ones inherited from
it's parents.

In the emerge manpage it says that the system class is
a subset of the world class so emerge -uDN world
does everything.

Zac



__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread Zac Medico


--- Zac Medico [EMAIL PROTECTED] wrote:

 
 
 --- reg hughson [EMAIL PROTECTED] wrote:
 
  The man page states that
  emerge generates a list of packages which it
 expects
  to be installed by checking the system package
 list
  and the world file. 
  
  Which brings me to my final questions...where is
  this package list? Is it, as one person already
  stated, simply the list of directories, etc. below
  /var/lib/pkg? And if it is, then how does one do
 an
  emerge -Du on the package list, not just the
 world
  list, thereby updating EVERYTHING on your system?
  
 
 The system package list comes from the profile
 linked
 from /etc/make.profile.  Portage uses stacked or
 cascading profiles now so it uses all the package
 files of your profile and all the ones inherited
 from
 it's parents.
 
 In the emerge manpage it says that the system class
 is
 a subset of the world class so emerge -uDN world
 does everything.
 
 Zac
 

I forgot to mention revdep-rebuild.  The commands I
would use for a complete update are as follows:

emerge -auDN world
emerge -a depclean
revdep-rebuild -a

The revdep-rebuild is needed to fix any dynamic links
that may have been broken in the first 2 commands.  I
recommend the maintenance release of of revdep-rebuild
because it allows you to mask binary packages with
SEARCH_DIRS_MASK in make.conf.

http://bugs.gentoo.org/show_bug.cgi?id=62644

Zac



__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge curiosity

2005-06-09 Thread Zac Medico


--- reg hughson [EMAIL PROTECTED] wrote:

 
 I do understand that but clearly on my system,
 emerge -DuN world does not do everything as it
 misses gdm. Searching back through my old emerge

Like I said, use emerge -a depclean to spot packages
like that.  If you want any of those packages just add
them to your world file where they belong.

Zac



__ 
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/
-- 
gentoo-user@gentoo.org mailing list