View previous topic :: View next topic |
Author |
Message |
multix Apprentice
Joined: 28 Nov 2004 Posts: 240 Location: Italy
|
Posted: Wed Jan 02, 2013 12:19 pm Post subject: emerge world doesn't build anything |
|
|
Hi,
I was doing an upgrade when a build failed. Fine, happens. What happens how however is that "emerge -Dua world" doesn't find any packages to emerge, before I had an update list of around 60 packages!
If I run "emerge --depclean -a" 500 packages are marked for slaughter. I wonder if portage lost which packages are installed on my system?
Is there a way to fix that and rebuild, apart from really cleaning and building all my needed stuff again?
Thanks. _________________ Unix is user friendly. It is only careful selecting its friends. |
|
Back to top |
|
|
_______0 Guru
Joined: 15 Oct 2012 Posts: 521
|
Posted: Wed Jan 02, 2013 12:43 pm Post subject: |
|
|
try
revdep-rebuild |
|
Back to top |
|
|
multix Apprentice
Joined: 28 Nov 2004 Posts: 240 Location: Italy
|
Posted: Wed Jan 02, 2013 2:04 pm Post subject: |
|
|
that just checks link consistency, i run it, it doesn't find any errors. _________________ Unix is user friendly. It is only careful selecting its friends. |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Wed Jan 02, 2013 2:14 pm Post subject: |
|
|
Looks like you accumulated a lot of garbage.
This might have been caused by deps no longer needed.
To resolve this do Code: |
emerge --depclean -p > somefilename |
Check what is in this file with equery -d.
If it's really 500 then you'll have quite a bit of work.
Gerard.
Edit:
might also be useful. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
multix Apprentice
Joined: 28 Nov 2004 Posts: 240 Location: Italy
|
Posted: Wed Jan 02, 2013 2:27 pm Post subject: |
|
|
gerard, it wants to remove perfectly valid packages which are actually installed, but the system forgets they are.
For example, if I do esearch "libart_gpl" it says I have the latest version installed. If I actually do "emerge -a libart_gpl" it tells me "N" for new. Esearch database thus still records it,but emerge things it is not and likewiese it removes a lot of packages.
My problem is not just the removal: if it forgets they are tehre, it refuses to upgrade them.
Riccardo _________________ Unix is user friendly. It is only careful selecting its friends. |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Wed Jan 02, 2013 3:09 pm Post subject: |
|
|
Riccardo,
Did you try emaint world?
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
multix Apprentice
Joined: 28 Nov 2004 Posts: 240 Location: Italy
|
Posted: Wed Jan 02, 2013 4:14 pm Post subject: |
|
|
Hi,
yes I did. It didn't really help Followed with an esync, I still miss a lot o packages to update, looks most off my packages "unregistered".
Packages installed: 643
Packages in world: 10
Packages in system: 42
Required packages: 174
Number to remove: 469
fo example emerge --depclean wants to remove perfect.ly valid and installed packages like "xemacs":
app-editors/xemacs
selected: 21.5.31
protected: none
omitted: none _________________ Unix is user friendly. It is only careful selecting its friends. |
|
Back to top |
|
|
sickboy2583 Tux's lil' helper
Joined: 30 Jan 2004 Posts: 83 Location: UK
|
Posted: Wed Jan 02, 2013 4:47 pm Post subject: |
|
|
It looks like something borked your world file, which probably means you are going to have to manually add the packages back into the world file, unless you have a backup. |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Wed Jan 02, 2013 4:49 pm Post subject: |
|
|
I just tried Code: |
emerge --depclean -p --verbose |
and it produced an almost endless list.
I have a total of 903 packages,149 in world,42 in system.
But I really have no idea what could be wrong in your system.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
multix Apprentice
Joined: 28 Nov 2004 Posts: 240 Location: Italy
|
Posted: Thu Jan 03, 2013 7:42 am Post subject: |
|
|
Hi, here is a strange thing:
returns no packages,
yet Code: |
emerge -Dua gimp
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild U ] dev-libs/gobject-introspection-common-1.34.2 [1.32.1]
[ebuild U ] dev-libs/gobject-introspection-1.34.2-r1 [1.32.1] PYTHON_SINGLE_TARGET="python2_7%*" PYTHON_TARGETS="python2_7%*"
[ebuild U ] dev-libs/atk-2.6.0 [2.4.0]
[ebuild U ] dev-libs/icu-50.1-r2 [49.1.2]
[ebuild U ] net-misc/curl-7.28.1 [7.27.0-r3] USE="nonblocking%*"
[ebuild U ] x11-libs/gdk-pixbuf-2.26.5 [2.26.4]
[ebuild U ] dev-util/cmake-2.8.10.2-r1 [2.8.9-r1]
[ebuild N ] media-gfx/graphite2-1.2.0 USE="-perl {-test}"
[ebuild N ] media-libs/harfbuzz-0.9.9 USE="-static-libs"
[ebuild U ] x11-libs/pango-1.32.5 [1.30.1]
[ebuild U ] media-libs/gegl-0.2.0-r1 [0.2.0]
[ebuild U ] x11-libs/gtk+-2.24.14 [2.24.13]
[ebuild U ] media-gfx/gimp-2.8.2-r1 [2.8.2]
|
tells me that gimp and several dependencies need updating!
it means gimp is still registered, with version 2.8.2!
Riccardo _________________ Unix is user friendly. It is only careful selecting its friends. |
|
Back to top |
|
|
multix Apprentice
Joined: 28 Nov 2004 Posts: 240 Location: Italy
|
Posted: Thu Jan 03, 2013 9:10 am Post subject: |
|
|
the plot is thickening:
I did
Quote: |
emerge -p --depclean gentoo-sources
|
it tells me:
Quote: |
sys-kernel/gentoo-sources
selected: 3.3.1 3.3.4 3.6.0 3.6.2 3.7.1
protected: none
omitted: none
|
I then emerge gentoo-sources:
Quote: |
[ebuild R ] sys-kernel/gentoo-sources-3.7.1
|
I reissue depclean and it wants to remove 3.7.1 again! Like it didn't register!
Riccardo _________________ Unix is user friendly. It is only careful selecting its friends. |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Thu Jan 03, 2013 12:56 pm Post subject: |
|
|
Try Code: |
emerge -uDNpv world |
That's what I always use.
Use flags are regularly updated!
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
sickboy2583 Tux's lil' helper
Joined: 30 Jan 2004 Posts: 83 Location: UK
|
Posted: Thu Jan 03, 2013 1:26 pm Post subject: |
|
|
multix wrote: | Hi, here is a strange thing:
returns no packages,
yet Code: |
emerge -Dua gimp
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild U ] dev-libs/gobject-introspection-common-1.34.2 [1.32.1]
[ebuild U ] dev-libs/gobject-introspection-1.34.2-r1 [1.32.1] PYTHON_SINGLE_TARGET="python2_7%*" PYTHON_TARGETS="python2_7%*"
[ebuild U ] dev-libs/atk-2.6.0 [2.4.0]
[ebuild U ] dev-libs/icu-50.1-r2 [49.1.2]
[ebuild U ] net-misc/curl-7.28.1 [7.27.0-r3] USE="nonblocking%*"
[ebuild U ] x11-libs/gdk-pixbuf-2.26.5 [2.26.4]
[ebuild U ] dev-util/cmake-2.8.10.2-r1 [2.8.9-r1]
[ebuild N ] media-gfx/graphite2-1.2.0 USE="-perl {-test}"
[ebuild N ] media-libs/harfbuzz-0.9.9 USE="-static-libs"
[ebuild U ] x11-libs/pango-1.32.5 [1.30.1]
[ebuild U ] media-libs/gegl-0.2.0-r1 [0.2.0]
[ebuild U ] x11-libs/gtk+-2.24.14 [2.24.13]
[ebuild U ] media-gfx/gimp-2.8.2-r1 [2.8.2]
|
tells me that gimp and several dependencies need updating!
it means gimp is still registered, with version 2.8.2!
Riccardo |
This is what is expected if gimp is not in your world file. If a package is not in your world file the system knows it is installed but thinks it was installed as a dependency, hence when you depclean it will get removed if nothing else depends on it.
You can add it to your world file by emerge -n gimp then when you next run depclean you will find it will not be removed. So as I said you need to rebuild your world file by looking at the output of depclean and adding any packages that you explicitly installed (i.e. not dependencies) to your world file.
Hope that helps. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9507 Location: beyond the rim
|
Posted: Fri Jan 04, 2013 7:08 am Post subject: |
|
|
Check the filesystem that contains /var for errors. Check if your worldfile /var/lib/portage/world looks sane. |
|
Back to top |
|
|
zajelo3 n00b
Joined: 05 Sep 2005 Posts: 60
|
Posted: Fri Jan 04, 2013 7:11 am Post subject: |
|
|
I have the same issue or one very similar. This has been happening for the past two weeks. I will run "emerge --sync && emerge -auvDN world" and it doesn't find anything to update. Today I ran "emerge -auvDN portage" and it shows the following:
RixGentooBox64 ~ # emerge -auvDN portage
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-python/python-exec-0.2 PYTHON_TARGETS="(jython2_5) (pypy1_9) (pypy2_0%*) (python2_5) (python2_6) (python2_7) (python3_1) (python3_2) (-pypy1_8*) (-python3_3)" 64 kB
[ebuild U ] sys-devel/automake-wrapper-8 [7] 0 kB
[ebuild U ] dev-libs/gobject-introspection-common-1.34.2 [1.32.1] 1,064 kB
[ebuild U ] perl-core/Scalar-List-Utils-1.270.0 [1.250.0] 68 kB
[ebuild U ] perl-core/ExtUtils-Install-1.540.0 [1.54] 66 kB
[ebuild U ] virtual/perl-Scalar-List-Utils-1.270.0 [1.250.0] 0 kB
[ebuild U ] virtual/perl-ExtUtils-Install-1.540.0 [1.54] 0 kB
[ebuild U ] perl-core/IO-Compress-2.59.0 [2.58.0] 235 kB
[ebuild U ] virtual/perl-IO-Compress-2.59.0 [2.58.0] 0 kB
[ebuild U ] dev-perl/DBI-1.623.0 [1.622.0] USE="{-test}" 583 kB
[ebuild U ] perl-core/ExtUtils-ParseXS-3.180.0 [3.150.0] 62 kB
[ebuild U ] virtual/perl-ExtUtils-ParseXS-3.180.0 [3.150.0] 0 kB
[ebuild U ] perl-core/ExtUtils-MakeMaker-6.640.0 [6.620.0-r1] 412 kB
[ebuild U ] virtual/perl-ExtUtils-MakeMaker-6.640.0 [6.620.0] 0 kB
[ebuild U ] sys-apps/sed-4.2.2 [4.2.1-r1] USE="acl nls (-selinux) -static" 1,035 kB
[ebuild U ] sys-libs/readline-6.2_p4 [6.2_p1-r1] USE="-static-libs" 2,233 kB
[ebuild U ] app-shells/bash-4.2_p42 [4.2_p39-r1] USE="net nls (readline) -afs -bashlogger -examples -mem-scramble -plugins -vanilla" 6,947 kB
[ebuild U ] dev-libs/libxml2-2.9.0-r1:2 [2.8.0-r4:2] USE="ipv6 lzma python readline -debug -examples -icu -static-libs {-test}" PYTHON_TARGETS="python2_7 -python2_5 -python2_6" 5,041 kB
[ebuild U ] sys-libs/gpm-1.20.7-r1 [1.20.7] USE="static-libs (-selinux)" 772 kB
[ebuild U ] app-text/qpdf-4.0.0 [3.0.2] USE="-doc -examples -static-libs {-test}" 4,912 kB
[ebuild U ] dev-python/setuptools-0.6.33 [0.6.32] PYTHON_TARGETS="python2_7 python3_2 (-pypy1_8) -pypy1_9 -pypy2_0 -python2_5 -python2_6 -python3_1 (-python3_3)" 630 kB
[ebuild U ] sys-apps/file-5.12 [5.11] USE="python zlib -static-libs" 618 kB
[ebuild N ] dev-python/pyelftools-0.20-r1 273 kB
[ebuild U ] app-misc/pax-utils-0.6 [0.5] USE="python%* -caps" 86 kB
[ebuild U ] dev-python/pyxattr-0.5.2 [0.5.1] USE="{-test}" PYTHON_TARGETS="python2_7 python3_2 -pypy1_9 -pypy2_0 -python2_5 -python2_6 -python3_1" 25 kB
[ebuild U ] dev-python/docutils-0.10 [0.9.1-r1] USE="-glep" PYTHON_TARGETS="python2_7 python3_2 (-pypy1_8) -pypy1_9 -python2_5 -python2_6 -python3_1" 1,565 kB
[ebuild NS ] app-text/docbook-xml-dtd-4.5-r1:4.5 [4.1.2-r6:4.1.2, 4.2-r2:4.2, 4.3-r1:4.3, 4.4-r2:4.4] 97 kB
[ebuild U ] dev-libs/glib-2.34.3:2 [2.32.4-r1:2] USE="xattr -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils" 6,574 kB
[ebuild U ] dev-libs/gobject-introspection-1.34.2-r1 [1.32.1] USE="-doctool {-test} (-doc%)" PYTHON_SINGLE_TARGET="python2_7%*" PYTHON_TARGETS="python2_7%*" 0 kB
[ebuild U ] x11-libs/qt-core-4.8.4-r1:4 [4.8.4:4] USE="exceptions glib iconv qt3support ssl (-aqua) -c++0x -debug -icu -pch" 231,048 kB
[ebuild U ] x11-libs/libXcomposite-0.4.4 [0.4.3-r1] USE="-doc -static-libs" 278 kB
[ebuild U ] x11-libs/libXdamage-1.1.4 [1.1.3] USE="-static-libs" 273 kB
[ebuild U ] sys-apps/hwids-20130102 [20121217] USE="udev" 1,434 kB
[ebuild U ] dev-libs/atk-2.6.0 [2.4.0] USE="introspection nls" 595 kB
[ebuild U ] x11-libs/gdk-pixbuf-2.26.5:2 [2.26.4:2] USE="X introspection jpeg tiff -debug -jpeg2k {-test}" 1,154 kB
[ebuild N ] app-accessibility/at-spi2-core-2.6.2-r2:2 USE="introspection" 434 kB
[ebuild N ] app-accessibility/at-spi2-atk-2.6.2:2 USE="{-test}" 269 kB
[ebuild U ] dev-util/cmake-2.8.10.2-r1 [2.8.10.2] USE="ncurses qt4 -emacs {-test} -vim-syntax" 5,634 kB
[ebuild N ] media-gfx/graphite2-1.2.0 USE="perl {-test}" 4,555 kB
[ebuild N ] media-libs/harfbuzz-0.9.9 USE="-static-libs" 858 kB
[ebuild U ] x11-libs/pango-1.32.5 [1.30.1] USE="X introspection -debug" 976 kB
[ebuild U ] x11-libs/gtk+-3.6.3:3 [3.4.4:3] USE="X introspection (-aqua) -colord -cups -debug (-egl) -examples (-packagekit) {-test} -vim-syntax (-wayland) -xinerama" 12,964 kB
[ebuild N ] app-text/asciidoc-8.6.8 USE="graphviz -examples -highlight {-test} -vim-syntax" 880 kB
[ebuild U ] dev-vcs/cvsps-3.3-r1 [2.2_beta1] 61 kB
[ebuild U ] dev-vcs/git-1.8.1 [1.8.0.2] USE="blksha1 curl cvs gpg gtk iconv nls pcre perl python subversion threads webdav -cgi -doc -emacs -gnome-keyring -highlight (-ppcsha1) {-test} -tk -xinetd" 4,714 kB
Total: 45 packages (37 upgrades, 6 new, 1 in new slot, 1 reinstall), Size of downloads: 299,471 kB
I'm not sure what to think. Maybe things will be fixed after updating portage. |
|
Back to top |
|
|
multix Apprentice
Joined: 28 Nov 2004 Posts: 240 Location: Italy
|
Posted: Fri Jan 04, 2013 8:22 am Post subject: |
|
|
Genone wrote: | Check the filesystem that contains /var for errors. Check if your worldfile /var/lib/portage/world looks sane. |
/var is in root for me and is JFS, I hope it is fine, fsck -N returns nothing.
the world file looks fine, but it contains only 24 packages! _________________ Unix is user friendly. It is only careful selecting its friends. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21518
|
Posted: Fri Jan 04, 2013 11:31 pm Post subject: |
|
|
A world file of only 24 packages sounds rather small to me. That might make sense on an embedded system, but even headless server machines tend to have more than that. |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 04, 2013 11:56 pm Post subject: |
|
|
multix wrote: | [the world file looks fine, but it contains only 24 packages! |
you have probably borked your world file. try adding a package that you know needs an update to world and re-run emerge world. if it picks it up, the error lies with the borked file. you'll probably have to add all the packages back to it. |
|
Back to top |
|
|
zajelo3 n00b
Joined: 05 Sep 2005 Posts: 60
|
Posted: Sat Jan 05, 2013 8:19 am Post subject: |
|
|
I updated portage as described above and still no change. After running emerge --sync, emerge -auvDN world shows no packages that need updating. I am thinking it may be a python issue and I ran python-updater thinking I may have missed configuring an update and it was causing my troubles. The first run it stopped with an error like so:
Code: | bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Success
Input file = /var/db/pkg/sys-devel/m4-1.4.16/environment.bz2, output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
* Missing metadata in '/var/db/pkg/sys-devel/m4-1.4.16/environment.bz2' file. Manually reinstall corresponding package. |
I reinstalled sys-devel/m4 and python-updater completed the 2nd run fine. I dropped to init 1 and checked the /var partition for errors and none were found. My world file has 158 packages listed, which seems fine to me. Still not sure what might be causing this issue.
Which file tells portage which packages need to be updated? |
|
Back to top |
|
|
zajelo3 n00b
Joined: 05 Sep 2005 Posts: 60
|
Posted: Mon Jan 07, 2013 8:43 am Post subject: |
|
|
I'm not sure what was causing the issue but after I used emwrap to rebuild the toolchain, system, and world, the problem went away. |
|
Back to top |
|
|
|