Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -uDpv world misses packages to update[part solved]
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
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1476
Location: Oxfordshire, UK

PostPosted: Wed Oct 01, 2008 4:34 pm    Post subject: emerge -uDpv world misses packages to update[part solved] Reply with quote

I have a system that I've been keeping up to date as regular as patches come out.

However, i've noticed that two identical systems are getting out of sync.

On my problem system I can now do the following:

Code:
kryten ~ # emerge -uDpv world

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

Calculating world dependencies... done!

Total: 0 packages, Size of downloads: 0 kB


and this misses this:


Code:
kryten ~ # emerge -pv dev-util/pkgconfig

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

Calculating dependencies... done!
[ebuild     U ] dev-util/pkgconfig-0.23 [0.22] USE="hardened" 1,009 kB

Total: 1 package (1 upgrade), Size of downloads: 1,009 kB


EDIT: I've also noticed that its not seen the latest hardened-sources kernel to install either:

Code:
kryten ~ # emerge -pv hardened-sources

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

Calculating dependencies... done!
[ebuild  NS   ] sys-kernel/hardened-sources-2.6.25-r7  USE="-build -symlink" 47,850 kB

Total: 1 package (1 in new slot), Size of downloads: 47,850 kB

Does anyone know why this is missed when updating system or world?


Last edited by richard.scott on Sun Oct 05, 2008 10:52 am; edited 1 time in total
Back to top
View user's profile Send private message
overkll
Veteran
Veteran


Joined: 21 Sep 2004
Posts: 1228
Location: Austin, Texas

PostPosted: Wed Oct 01, 2008 5:02 pm    Post subject: Reply with quote

Have you tried `emerge world -uDNpv` or `emerge world -uDNpv --with-bdeps=y` ?
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 617
Location: Munich, Germany

PostPosted: Wed Oct 01, 2008 5:31 pm    Post subject: Reply with quote

Are you sure that both your Portage trees are in sync with each other? The mirrors can differ sometimes in content.

Pkgconfig is a typical bdep (buildtime dependency) which is only needed to compile a package you emerged, but not to run it.

The emerge manpage section about "--with-bdeps" says:

Code:
--with-bdeps < y | n >
In dependency calculations, pull in build time dependencies that are not strictly required. This defaults to 'n' for installation actions, meaning they will not be installed, and 'y' for the --depclean action, meaning they will not be removed. This  settingcan be added to EMERGE_DEFAULT_OPTS (see make.conf(5)) and later overridden via the command line.


So make sure both machines have identical settings.
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1476
Location: Oxfordshire, UK

PostPosted: Thu Oct 02, 2008 10:17 am    Post subject: Reply with quote

zyko wrote:
Are you sure that both your Portage trees are in sync with each other? The mirrors can differ sometimes in content.


That's not my major problem, my problem is that on host A things aren't being shown as upgradable where as on host B they are always upgraded.
If you hunt around on host A you can also find these same packages that need upgrading.

For example on my problem server Kryten I have this when I try and update world:

Code:
kryten portage # emerge -uDNpv world

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

Calculating world dependencies... done!
[ebuild     U ] sys-apps/man-1.6f-r2 [1.6f-r1] USE="nls" 0 kB
[ebuild     U ] app-portage/gentoolkit-0.2.4.2 [0.2.3-r1] 89 kB

Total: 2 packages (2 upgrades), Size of downloads: 89 kB


And this from updating world adding the "--empty" option to pretend to re-install everything:

Code:
kryten portage # emerge -uDNepv world | grep -v " R "

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

Calculating world dependencies ... done!
[ebuild     U ] dev-util/pkgconfig-0.23 [0.22] USE="hardened" 1,009 kB
[ebuild     U ] sys-apps/man-1.6f-r2 [1.6f-r1] USE="nls" 0 kB
[ebuild  NS   ] sys-kernel/hardened-sources-2.6.25-r7  USE="-build -symlink" 47,850 kB
[ebuild     U ] app-portage/gentoolkit-0.2.4.2 [0.2.3-r1] 89 kB

Total: 154 packages (3 upgrades, 1 in new slot, 150 reinstalls), Size of downloads: 70,389 kB


Obviously the "grep -v" is to remove listing the packages that require a re-install.

As you can see, on the same server some packages are listed and others aren't.

On my good server all packages are listed and even the slotted kernel is installed.
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1476
Location: Oxfordshire, UK

PostPosted: Fri Oct 03, 2008 9:22 am    Post subject: Reply with quote

ok, the following has worked:

Code:
# emerge -uDNpv --with-bdeps y world

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

Calculating world dependencies... done!
[ebuild     U ] dev-util/pkgconfig-0.23 [0.22] USE="hardened" 1,009 kB
[ebuild  NS   ] sys-kernel/hardened-sources-2.6.25-r7  USE="-build -symlink" 47,850 kB

Total: 2 packages (1 upgrade, 1 in new slot), Size of downloads: 48,859 kB


I'm still confused as to why. all I have in my /etc/make.conf with regards to portage is as follows:

Code:
EMERGE_DEFAULT_OPTS="--alphabetical"
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1476
Location: Oxfordshire, UK

PostPosted: Sat Oct 04, 2008 4:53 pm    Post subject: Reply with quote

ok, here's another lost package: dev-libs/skyutils

Code:
lister emerge # emerge --with-bdeps=y -uDpv world

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

Calculating world dependencies... done!
[ebuild     U ] dev-util/intltool-0.37.1 [0.35.5] 136 kB
[ebuild     U ] dev-libs/openssl-0.9.8h-r1 [0.9.8g-r2] USE="-bindist -gmp -kerberos -sse2 -test zlib" 3,360 kB

Total: 2 packages (2 upgrades), Size of downloads: 3,496 kB


if I search for the package on its own I can find it needs updating:

Code:
lister emerge # emerge -pv skyutils

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

Calculating dependencies... done!
[ebuild     U ] dev-libs/skyutils-2.8-r1 [2.8] USE="ssl" 350 kB

Total: 1 package (1 upgrade), Size of downloads: 350 kB


yet searching an empty tree comes up blank:

Code:
lister emerge # emerge -epv world | grep sky


It's strange that this package doesn't show up anywhere other than if you try and emerge it on its own.
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 617
Location: Munich, Germany

PostPosted: Sat Oct 04, 2008 6:09 pm    Post subject: Reply with quote

Assuming that you have portage-2.2: What happens if you emerge -pvt @installed? It looks like skyutils is orphaned on your system. If you didn't specifically emerge it by hand, it was likely pulled in as a dependency. According to gentoo-portage.com, skyutils has one reverse dependency: app-mobilephone/smssend. Does that sound familiar? There might have been other packages in Portage that depended on skyutils, but there are none in the current state of the tree. It also looks like smssend and skyutils were abandoned by upstream.

I would expect emerge --depclean --pretend to pick up on skyutils and maybe other obsolete packages.
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1476
Location: Oxfordshire, UK

PostPosted: Sun Oct 05, 2008 10:52 am    Post subject: Reply with quote

zyko wrote:
Assuming that you have portage-2.2: What happens if you emerge -pvt @installed? It looks like skyutils is orphaned on your system. If you didn't specifically emerge it by hand, it was likely pulled in as a dependency. According to gentoo-portage.com, skyutils has one reverse dependency: app-mobilephone/smssend. Does that sound familiar? There might have been other packages in Portage that depended on skyutils, but there are none in the current state of the tree. It also looks like smssend and skyutils were abandoned by upstream.

I would expect emerge --depclean --pretend to pick up on skyutils and maybe other obsolete packages.


Yes, I had smssend installed at one point, but removed it.... guess I forgot about removing the dependencys

Anyway, to overcome this I've written a script that looks at any package that needs updating and the creates a list of dependencies and emerges them too! :D

Yes, I know that "revdep-rebuild" does this but when I do the following it doesn't find anything to rebuild just after updating openssl:

Code:
kryten ~ # revdep-rebuild -L openssl -- -pv
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries using openssl
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Checking dynamic linking
[ 100% ]

 * There are no dynamic links to openssl... All done.


Anyway, I think writing my own update wrapper has resolved my issue of packages not getting updated.

That still doesn't explain why dev-util/pkgconfig hasn't been selected for update (hence the starting of this thread). :roll:
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