Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --db-rebuild? [emerge update anomolies]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
onlawn
n00b
n00b


Joined: 25 Oct 2002
Posts: 45

PostPosted: Sat Apr 12, 2003 3:33 pm    Post subject: emerge --db-rebuild? [emerge update anomolies] Reply with quote

In my rescue operation I'm seeing some interesting results that is reminiscent of some that I saw recently on my workstation.

If I emerge -p, and name a specific package gentoo will detect the old one and say its either [R] or even [U]. However if it shows up with a [U], and I try to do a regular emerge -pu world, the package does not show up.

I know when this happened in RedHat there was a db-rebuild option that solved this kind of thing. Does Gentoo have something simular?
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Sat Apr 12, 2003 3:38 pm    Post subject: Reply with quote

If that package was merged as a dependency of another package, it won't be in your "world" file, so emerge -pu world won't usually pick it up (except if the package that depends on it now requires a higher version).
Try "emerge -pu --deep world". That will look for updates on dependencies too.
Back to top
View user's profile Send private message
onlawn
n00b
n00b


Joined: 25 Oct 2002
Posts: 45

PostPosted: Sat Apr 12, 2003 3:55 pm    Post subject: Reply with quote

These aren't dependancy anomolies. For instance if I do a emerge -p openldap on my machine right now I get...

Code:
ragmazoo 3.2.2 # emerge -p openldap
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild    U ] net-nds/openldap-2.0.27-r2 [2.0.27]



Notice the "U". Now, if I do a emerge -pu world...



Code:
ragmazoo 3.2.2 # emerge -pu world
 
These are the packages that I would merge, in order:
 
Calculating world dependencies ...done!
[ebuild    U ] sys-devel/gettext-0.11.5-r1 [0.11.5]
[ebuild    U ] sys-apps/gawk-3.1.1-r2 [3.1.1-r1]
[ebuild    U ] sys-apps/baselayout-1.8.6.5 [1.8.5.8]
[ebuild    U ] sys-devel/binutils-2.13.90.0.20-r1 [2.13.90.0.18]
[ebuild    U ] sys-apps/sed-4.0.7 [4.0.6]
[ebuild    U ] sys-apps/texinfo-4.5 [4.3-r1]
[ebuild    U ] sys-devel/gcc-config-1.3.2 [1.3.1]
[ebuild    U ] sys-devel/gcc-3.2.2-r2 [3.2.2]
[ebuild    U ] sys-libs/glibc-2.3.2-r1 [2.3.1-r4]
[ebuild    U ] sys-apps/util-linux-2.11z-r1 [2.11y]
[ebuild    U ] sys-apps/grep-2.5.1-r1 [2.5-r1]
[ebuild    U ] sys-devel/bin86-0.16.11 [0.16.0]
[ebuild    U ] sys-apps/netkit-base-0.17-r7 [0.17-r6]
[ebuild    U ] app-crypt/krb5-1.2.7-r2 [1.2.6-r1]
[ebuild    U ] dev-libs/openssl-0.9.6i-r2 [0.9.6g]
[ebuild    U ] sys-apps/groff-1.18.1-r2 [1.18.1-r1]
[ebuild    U ] net-misc/openssh-3.6.1_p1 [3.5_p1]
[ebuild    U ] sys-libs/db-3.2.9-r2 [4.1.24]
[ebuild    U ] sys-apps/grub-0.93.20030118 [0.92-r1]
[ebuild  N   ] sys-apps/slocate-2.7
[ebuild    U ] sys-apps/procps-3.1.8 [2.0.10-r1]
[ebuild    U ] sys-libs/slang-1.4.8 [1.4.5-r2]


I didn't see openldap in there. This was the exact same thing that happened once when I did an emerge -e that died before completing.

There really is no "dependancy" misunderstanding in this case. The emerge -p openldap clearly detects the old openldap package, and the emerge -pu world does not.
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Sat Apr 12, 2003 4:07 pm    Post subject: Reply with quote

We agree.

emerge -p openldap will look to see if openldap is installed, and if there's an update available or not.
emerge -p world will look at all the packages listed in your world file (/var/cache/ebd/world, or something like that), and see if there are updates for those packages.

If you first installed openldap by issuing explicitly "emerge openldap", then openldap should be in your world file and thus should show up in emerge -pu world.
If openldap was first installed by 'emerge package-that-depends-on-openldap', it won't be in your world file. But if "package-that-depends-on-openldap" (which is in your world file) has a new version, which requires a newer openldap, then openldap will get updated if you emerge -pu world.

[Not sure this is very clear, but I think it's correct at least :wink: ]
Back to top
View user's profile Send private message
onlawn
n00b
n00b


Joined: 25 Oct 2002
Posts: 45

PostPosted: Sat Apr 12, 2003 4:30 pm    Post subject: Reply with quote

Yeah, although I did happen to have emerged it directly in the beginning I think we agree what is going on.

I suppose that rebuilding a world file would be pretty counter-productive since it would probably fill it with all the dependancies and bloat it. Right now I'm just emerging everything that I remember is on the machine, which is probably the best way to fix it, but having a world file rebuild would have been helpful.

I think in the future I'm just going to backup the world file.
Back to top
View user's profile Send private message
Phreakazoid_
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2003
Posts: 76
Location: Sydney, Australia

PostPosted: Sun Apr 13, 2003 4:22 am    Post subject: Reply with quote

Try this:
Code:
emerge -upD world
Back to top
View user's profile Send private message
onlawn
n00b
n00b


Joined: 25 Oct 2002
Posts: 45

PostPosted: Sun Apr 13, 2003 5:54 am    Post subject: Reply with quote

Hmm, interesting. Same results as the other try, it still picked up an embarassingly small amount of the packages I have installed.
Back to top
View user's profile Send private message
onlawn
n00b
n00b


Joined: 25 Oct 2002
Posts: 45

PostPosted: Sun Apr 13, 2003 6:00 am    Post subject: Reply with quote

onlawn wrote:
Hmm, interesting. Same results as the other try, it still picked up an embarassingly small amount of the packages I have installed.


I take that back. It did pick up a bit more then just regular -pu, and it picks up packages I haven't re-emerged yet. Its still missing some though like some perl modules.
Back to top
View user's profile Send private message
onlawn
n00b
n00b


Joined: 25 Oct 2002
Posts: 45

PostPosted: Sat Apr 19, 2003 2:09 am    Post subject: regenworld Reply with quote

Thanks to everyones help I have warm fuzzies about Gentoo (no really).

But inspite of everyones help, I found the answer to my question really is the utility packaged with portage called...

regenworld
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum