Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101484 - emerge --newuse world doesn't find everything
Summary: emerge --newuse world doesn't find everything
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 108082
  Show dependency tree
 
Reported: 2005-08-05 14:03 UTC by Niels Laukens
Modified: 2005-10-09 22:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Laukens 2005-08-05 14:03:49 UTC
I just did a stage1 install and ran into bug #39318.
To solve it, I (temporarily) disabled the java USE flag.
I just re-enabled it, and ran a emerge -p --newuse world but emerge sais
everything is fine:

# emerge -pv --newuse world

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

Calculating world dependencies ...done!

Total size of downloads: 0 kB


However:
# emerge -pv db

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

Calculating dependencies ...done!
[ebuild  N    ] dev-java/java-config-1.2.11  15 kB
[ebuild  N    ] dev-java/blackdown-jre-1.4.2.02  -browserplugin +mozilla 13,206 kB
[ebuild  N f  ] dev-java/java-sdk-docs-1.4.2  0 kB
[ebuild  N    ] dev-java/blackdown-jdk-1.4.2.02  -browserplugin +doc +mozilla
33,556 kB
[ebuild   R   ] sys-libs/db-4.2.52_p2  -bootstrap +doc +java* -nocxx -tcltk 0 kB

Total size of downloads: 46,777 kB


clearly, db needs an update...

I also tried the -D option, same result

Reproducible: Always
Steps to Reproduce:




# emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.11-gentoo-r6-kraxel1-bigbrother-019 i686)
=================================================================
System uname: 2.6.11-gentoo-r6-kraxel1-bigbrother-019 i686 Intel(R) Pentium(R) 4
CPU 3.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi aim alsa apache2 apm arts avi berkdb bitmap-fonts
cdparanoia cdr crypt cups divx4linux doc dts dv dvb dvd dvdr eds emboss encode
ethereal flac foomaticdb gdbm gif gpm gstreamer gtk gtk2 icq imagemagick imap
imlib ipv6 jabber java jpeg kde ldap libg++ libwww lm_sensors mad maildir
matroskamikmod mmx motif mozilla mp3 mpeg msn nagios-dns nagios-ntp nagios-ping
nagios-ssh ncurses nls nocardbus offensive ogg oggvorbis opengl oss pam pda
pdflib perl png python qt quicktime readline real rrdtool rtc samba sasl sdl
spell sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb v4l
v4l2 vorbis win32codecs wmf xinerama xml2 xmms xv xvid yahoo zlib
video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-08-05 14:54:04 UTC
What's the output of emerge -evp world show?
Comment 2 Zac Medico gentoo-dev 2005-08-05 15:26:44 UTC
(In reply to comment #1)
> What's the output of emerge -evp world show?

I'm guessing that sys-libs/db will not be included in the output of "emerge -evp
world".  That is normal if sys-libs/db was merged as a dependency of another
package that is not yet installed.  That would make this bug a duplicate of bug
97616 and bug 100382.
Comment 3 Niels Laukens 2005-08-06 09:10:01 UTC
(striped useless builds (I guess):

[ebuild  N    ] sys-libs/db-4.2.52_p2  -bootstrap +doc +java* -nocxx -tcltk 0 kB
[ebuild  N    ] dev-libs/cyrus-sasl-2.1.20  -authdaemond +berkdb +gdbm +java*
-kerberos +ldap -mysql +pam -postgres +ssl -static 0 kB
Comment 4 Zac Medico gentoo-dev 2005-08-06 13:44:55 UTC
(In reply to comment #3)
> (striped useless builds (I guess):
> 
> [ebuild  N    ] sys-libs/db-4.2.52_p2  -bootstrap +doc +java* -nocxx -tcltk 0 kB
> [ebuild  N    ] dev-libs/cyrus-sasl-2.1.20  -authdaemond +berkdb +gdbm +java*
> -kerberos +ldap -mysql +pam -postgres +ssl -static 0 kB

This output suggests that sys-libs/db-4.2.52_p2 is not installed (ebuild  N) but
comment #0 showed that it was installed (ebuild   R).  Have you uninstalled
sys-libs/db-4.2.52_p2 between comment #0 and comment #3?  Please attach
/var/lib/portage/world.
Comment 5 Niels Laukens 2005-08-06 13:56:27 UTC
I needed some space so deleted that setup, if needed I'll remake it.

I didn't unmerge anything. I tried a stage 1 setup, but failed (see comment #1),
so I disabled java. to break the circular dependency.
to return to the desired state, I re-added java to the use flags and wanted to
update all packages that need to: emerge --newuse world.

Aparently, none needed updates...

the N on the emerge output is normal (I guess), since you asked to --emptytree.
Which will pretend nothing is installed. A normal emerge db gives the output in
comment #1.

as said, I deleted the files, but since this was right after emerge system, I
guess the world-file would be empty. (I can check this, if you reasy want to)
Comment 6 Zac Medico gentoo-dev 2005-08-07 17:57:42 UTC
Okay, I see the problem.  You didn't use emerge --deep (-D).  You should use
that if you want portage to update dependencies.  The sys-libs/db package is not
directly a part of the world or system classes.  It is a dependency.  Portage
seems to be working correctly.
Comment 7 Niels Laukens 2005-08-08 03:11:05 UTC
As said in initial post:
>
> I also tried the -D option, same result
Comment 8 Frederick Martin 2005-08-17 09:55:51 UTC
I'm also having a similar problem.  I tried emerging nuvexport, received a
warning about not having mjpeg as an use flag.  I added it to my make.conf and
emerge -upvDN world doesn't show transcode, but finds many others for other use
flags.  I added the -u option because I read somewhere that it is required for
-N to find the packages.
Comment 9 Frederick Martin 2005-08-17 12:43:39 UTC
I think I figured out my problem.  The package nuvexport didn't finish emerging
so it wasn't added to the world file.  Since it wasn't in the world file emerge
-upvDN world didn't find transcode.  So not related to this bug, sorry.

Back to the bug, did the original submiter try the -u option along with newuse?
Comment 10 Niels Laukens 2005-08-17 13:42:34 UTC
(In reply to comment #9)
> did the original submiter try the -u option along with newuse?

No I did not.
As already mentioned, I removed the setup, so I can't try it now. If wanted I
can try to reinstall and check it.
Comment 11 andy 2005-08-23 03:41:27 UTC
I had the same problem this night when I tried to recompile my KDE (3.4.2 split
ebuilds) without the arts useflag.

After adding -arts to the make.conf and emerge -C arts kdemultimedia-arts
artsplugin-*, I ran emerge -pvD --newuse world. This only showed a couple of
packets (around 10) to rebuild. I was surprised, but let it run for the night. 

This morning I discovered that several programs still search for the arts
libraries. Inspired by comment #9, I tried emerge -pvDu --newuse world, which
now showed another 20 packets or so to rebuild. So using -u with --newuse seems
to show the complete list.
Comment 12 Robin Thellend 2005-09-18 19:08:51 UTC
I just experienced the same problem:

# emerge --newuse --deep --pretend world

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

Calculating world dependencies ...done!

(nothing!)  Whereas, the following command gives me lots and lots of use flags
with a *:

# emerge --verbose --pretend `qpkg -I -nc` | grep '*'
[ebuild   R   ] app-crypt/gnupg-1.4.1  +X -bzip2 -caps +curl* -ecc -idea -ldap
+nls +readline (-selinux) -smartcard +zlib 0 kB
[ebuild   R   ] dev-lang/swig-1.3.21  +X -guile -java +perl +php* +python -ruby
+tcltk 0 kB
[ebuild   R   ] dev-php/mod_php-4.4.0  +X -apache2 +berkdb +crypt +curl* -debug
-doc -fdftk -firebird -flash -freetds +gd -gd-external +gdbm -gmp -hardenedphp
-imap -informix +ipv6 -java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql
+nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl +tiff +truetype +xml2
-yaz 0 kB
[ebuild   R   ] dev-php/php-4.4.0  +X +berkdb +crypt +curl* -debug -doc -fdftk
-firebird -flash -freetds +gd -gd-external +gdbm -gmp -hardenedphp -imap
-informix +ipv6 -java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql
+ncurses +nls -oci8 -odbc +pam +png -postgres +readline -snmp +spell +ssl +tiff
+truetype +xml2 -yaz 0 kB
[trimmed.. I think you get the point]

I think --newuse and --deep simply aren't working together at all. When --newuse
is used, --deep is ignored.
Comment 13 Robin Thellend 2005-09-18 19:14:37 UTC
Btw, emerge -pvDu --newuse world   doesn't show me anything. Everything is
up-to-date as far as the package versions are concerned.
Comment 14 Zac Medico gentoo-dev 2005-09-18 19:32:14 UTC
(In reply to comment #13)
> Btw, emerge -pvDu --newuse world   doesn't show me anything. Everything is
> up-to-date as far as the package versions are concerned.

Does the ouput of "emerge -p depclean" show any of those packages?  If so, it
would indicate that you need to add some packages to the /var/lib/portage/world
(or unmerge them).
Comment 15 Robin Thellend 2005-09-18 20:14:47 UTC
(In reply to comment #14)

> Does the ouput of "emerge -p depclean" show any of those packages?  If so, it
> would indicate that you need to add some packages to the /var/lib/portage/world
> (or unmerge them).

It shows some packages, but none of those of that should have shown with
--newuse --deep.
Comment 16 Jason Stubbs (RETIRED) gentoo-dev 2005-10-05 13:16:00 UTC
Will make --newuse imply --update on the next round. The other bugs regarding 
-puDN not finding stuff - it's packages missing from your world file and/or 
changes deps with regard to changing use flags making installed packages no 
longer necessary. 
Comment 17 Jason Stubbs (RETIRED) gentoo-dev 2005-10-09 22:50:03 UTC
Fixed in 2.0.53_rc5 
Comment 18 Jason Stubbs (RETIRED) gentoo-dev 2005-10-09 22:51:12 UTC
.