Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455946 - sys-apps/portage-2.1.11.50: emerge -a offers to add package to world when it's already in world
Summary: sys-apps/portage-2.1.11.50: emerge -a offers to add package to world when it'...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 456888
  Show dependency tree
 
Reported: 2013-02-07 01:10 UTC by Robin Bankhead
Modified: 2013-02-12 04:21 UTC (History)
0 users

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 Robin Bankhead 2013-02-07 01:10:34 UTC
When issuing "emerge -uav <pkgname>" for a package already in world for which there is no available update, portage erroneously offers to add the package to world file.

Example:
<SNIP>
minime ~ # emerge -uav thunderbird-bin

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

Calculating dependencies  ....... done!

Total: 0 packages, Size of downloads: 0 kB

 * mail-client/thunderbird-bin

Would you like to add these packages to your world favorites? [Yes/No] y
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
</SNIP>

emerge --info:
Portage 2.1.11.50 (default/linux/x86/10.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.8.0-rc4 i686)
=================================================================
System uname: Linux-3.8.0-rc4-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.2
KiB Mem:      900496 total,     50500 free
KiB Swap:    1870844 total,   1775252 free
Timestamp of tree: Wed, 06 Feb 2013 20:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p39-r1
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo arcon belak local
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-D_FORTIFY_SOURCE=2 -march=atom -msahf -mmovbe --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=atom -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mssse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/security/pam_mount.conf.xml /usr/lib/distcc/bin/ /usr/share/apps/kdm/themes/oxygen/oxygen.xml /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-D_FORTIFY_SOURCE=2 -march=atom -msahf -mmovbe --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=atom -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mssse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16 -l4.0"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/arcon /usr/local/portage/layman/belak /usr/local/portage"
SYNC="rsync://hazel/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdparanoia cdr chm cli consolekit cracklib crypt cups cxx dbus declarative dga dri dts dvd egl emboss encode exif faac faad fam ffmpeg firefox flac flash fontconfig foomaticdb fortran fuse g3dvl gbm gdbm gif gimp gles1 gles2 gnutls gpm iconv id3tag imagemagick innodb inotify java java6 javascript jpeg kde kipi lcms ldap libnotify lzma lzo mad madwifi matroska mmx mmxext mng modules mp3 mp4 mpeg mplayer msn mudflap mysql ncurses nls nptl nsplugin odbc offensive ogg opengl openmp openvg osmesa pam pango pcntl pcre pdf phonon plasma png policykit posix ppds qt3support qt4 readline rtmp samba scanner sdl semantic-desktop session sharedmem sna soap sockets spell sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg tcpd theora threads tiff tk tordns truetype udev udisks unicode upower usb v4l vaapi vcd vhosts vorbis webkit wifi win32codecs wxwidgets x264 x86 xa xcb xcomposite xinerama xml xmlrpc xorg xscreensaver xsl xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="multiboot pc" INPUT_DEVICES="evdev keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" NETBEANS_MODULES="php" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="i915 intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Zac Medico gentoo-dev 2013-02-07 02:42:48 UTC
The is how it's intended to behave unless you add --oneshot to your options. Alternatively, you can set --select=n in EMERGE_DEFAULT_OPTS, and use the --select option when you want to add something to the world file.
Comment 2 Robin Bankhead 2013-02-08 01:00:04 UTC
It's surely not intended for it to offer to add a package to world that's *already in* world? (Sorry if that was underemphasised above, I did mention it.)
Comment 3 Zac Medico gentoo-dev 2013-02-08 01:24:42 UTC
When the prompt occurs, it hasn't checked whether or not the package(s) are in the world file yet. So, we'll have to refactor the code a bit if we want it to have that information there.
Comment 4 Robin Bankhead 2013-02-08 13:35:00 UTC
It would make sense from a transparency point of view: since the prompt (and the message) is spurious in this scenario, it would be best eliminated. The cost of checking world state at that point can't be all that onerous I'd have thought.

It also occurs that folks might assume that answering "no" would actually *remove* the atom from the world file, which it doesn't.
Comment 6 Zac Medico gentoo-dev 2013-02-12 04:21:25 UTC
This is fixed in 2.1.11.51 and 2.2.0_alpha162.