Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge update not updating packages?
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
haydongentoo
n00b
n00b


Joined: 17 Jan 2003
Posts: 23

PostPosted: Tue Nov 27, 2012 3:14 pm    Post subject: emerge update not updating packages? Reply with quote

I just noticed that my typical 'emerge -uD @world' isn't catching some updates. The typical output:

Code:
mail linux-3.6.8 # emerge -puD @world

These are the packages that would be merged, in order:

Calculating dependencies... done!

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


And the output of update but also with the newuse flag:

Code:
mail linux-3.6.8 # emerge -puDN @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-libs/cracklib-2.8.19  USE="-build%"
[ebuild     U  ] sys-apps/ed-1.6 [1.4]
[ebuild   R   #] sys-devel/gcc-4.7.2  USE="(-nocxx%)"
[ebuild   R    ] sys-apps/busybox-1.20.2  USE="static* -systemd%"
[ebuild     U  ] net-misc/curl-7.26.0 [7.25.0-r1] CURL_SSL="-cyassl%"
[ebuild     U  ] dev-libs/libxml2-2.8.0-r3 [2.8.0-r2]
[ebuild   R    ] net-misc/openssh-5.9_p1-r4  USE="-bindist%"
[ebuild   R   #] media-video/ffmpeg-9999  USE="-fdk%"

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


Eh? I would have expected sys-apps/ed, net-misc/curl and dev-libs/libxml2 to be caught and updated with the -uD flags but they weren't. Am I right about that or what?
Back to top
View user's profile Send private message
gabrielg
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2012
Posts: 87

PostPosted: Tue Nov 27, 2012 3:19 pm    Post subject: Reply with quote

I always do --update --deep --newuse --changed-use --with-bdeps=y
emerge's man page explains all of them... technically you wouldn't use --newuse and --changed-use unless you added/changed USE flags, but it doesn't hurt and I don't have to keep track of my changes, so there you go. I'm lazy :-)
Back to top
View user's profile Send private message
haydongentoo
n00b
n00b


Joined: 17 Jan 2003
Posts: 23

PostPosted: Tue Nov 27, 2012 7:35 pm    Post subject: Reply with quote

In my mind, the issue has nothing to do with use flags. It's that -uD should be picking up these package updates and building them. It seems to be picking them up correctly when other packages are built but not solely with -uD. I've been using gentoo for years and years and this is the first time I've noticed this behavior which makes me think it's a bug.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7785
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Nov 27, 2012 7:41 pm    Post subject: Reply with quote

It's possible that the other packages are build-time only dependencies of the packages that get updated with --newuse. Try dropping the --newuse flag and adding the --with-bdeps=y option and see if those hidden updates pop up. Normally, if a package is installed only because it's necessary to build some other package, updates are avoided until the other package needs to be updated.

- John
_________________
This space intentionally left blank.


Last edited by John R. Graham on Tue Nov 27, 2012 8:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
haydongentoo
n00b
n00b


Joined: 17 Jan 2003
Posts: 23

PostPosted: Tue Nov 27, 2012 8:20 pm    Post subject: Reply with quote

Indeed --with-bdeps=y does work. I've never noticed this behavior in all of the time I've used Gentoo.

I really thought just -uD would have covered everything but I see the distinction. Thank you.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7785
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Nov 27, 2012 8:30 pm    Post subject: Reply with quote

It wasn't there when you and I started using Gentoo. It's relatively new, perhaps 3 - 4 years old. There's a huge amount of work that's been done on the dependency resolver: more and more blockers are solved automatically by Portage now.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
haydongentoo
n00b
n00b


Joined: 17 Jan 2003
Posts: 23

PostPosted: Tue Nov 27, 2012 10:41 pm    Post subject: Reply with quote

Interesting history.

I'm glad I'm not completely crazy. Though 3-4 years is an awful long time for me to not notice something. I'm happy to say, most of the time, things work quite well and as expected.
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