Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646466 - sys-apps/portage: emerge --oneshot portage does not update if EMERGE_DEFAULT_OPTS enables --selective
Summary: sys-apps/portage: emerge --oneshot portage does not update if EMERGE_DEFAULT_...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 648750 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-03 07:49 UTC by Mark Nowiasz
Modified: 2018-02-25 08:22 UTC (History)
4 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 Mark Nowiasz 2018-02-03 07:49:45 UTC
Afer emerge --sync, portage stats that an update is available - but it won't update


-----------------------------8<-----------------------------------------
* An update to portage is available. It is _highly_ recommended
 * that you update portage now, before any other packages are updated.

 * To update portage, run 'emerge --oneshot portage' now.



seven ~ # emerge -1 portage
Calculating dependencies... done!
>>> Auto-cleaning packages...

------------------------>8................................

Indeed, there is an update available:

*  sys-apps/portage
      Latest version available: 2.3.24
      Latest version installed: 2.3.23

Yet portage does nothing. I've got a similar case where after emerging portage tells me to emerge @preserved-rebuild, but again, emerge @preserved-rebuild does nothin.
Comment 1 Mark Nowiasz 2018-02-03 08:08:25 UTC
(In reply to Mark Nowiasz from comment #0)

> 
> Yet portage does nothing. I've got a similar case where after emerging
> portage tells me to emerge @preserved-rebuild, but again, emerge
> @preserved-rebuild does nothin.

!!! existing preserved libs:
>>> package: sys-libs/binutils-libs-2.30-r1
 *  - /usr/lib32/libbfd-2.30.so
 *      used by /usr/lib32/cairo/libcairo-trace.so.0.0.0 (x11-libs/cairo-1.14.12)
 *  - /usr/lib64/libbfd-2.30.so
 *      used by /usr/lib64/cairo/libcairo-trace.so.0.0.0 (x11-libs/cairo-1.14.12)
Use emerge @preserved-rebuild to rebuild packages using these libraries
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.
seven ~ # emerge @preserved-rebuild
Calculating dependencies... done!
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
Comment 2 Franz Trischberger 2018-02-03 09:56:38 UTC
"emerge --info" would be great to have :) (e.g for EMERGE_DEFAULT_OPTS)
And just to be sure: "emerge" isn't some alias?
"emerge -pv portage" could be helpful, too.
Comment 3 Mark Nowiasz 2018-02-03 11:42:31 UTC
(In reply to Franz Fellner from comment #2)
> "emerge --info" would be great to have :) (e.g for EMERGE_DEFAULT_OPTS)
> And just to be sure: "emerge" isn't some alias?
> "emerge -pv portage" could be helpful, too.

Fair enough :-)

What's interesting: after emerge -uDN @world @system portage has been updatet to 2.3.24, but as you can see below emerge -pv portage would do nothing at all.

------------------------------------------------------------
emerge -pv portage

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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 KiB


-------------------------------------------------

emerge --info
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r5, 4.15.0-gentoo x86_64)
=================================================================
System uname: Linux-4.15.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:    16410800 total,    663208 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sat, 03 Feb 2018 11:15:01 +0000
Head commit of repository gentoo: 79ab5ad90b51506c14225f0123ca0c0e2f294222
sh bash 4.4_p18
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p18::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.30::gentoo
sys-devel/gcc:            7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

java
    location: /var/lib/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

wjn-overlay
    location: /var/lib/layman/wjn-overlay
    sync-type: laymansync
    sync-uri: https://bitbucket.org/wjn/wjn-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--changed-deps=y  --keep-going=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.jamit.de/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ "
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j8 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi activities aim alsa amd64 apng audiofile avx ayatana bash-completion bcmath berkdb blas bluetooth branding bzip2 cairo calendar cdb cdda cddb cdinstall cdparanoia cdr chromium cli clutter colord cracklib crypt cryptsetup css cups curl curlwrappers cvs cxx dbus declarative djvu dng dri dts dv dvb dvd dvdr emboss encode enscript evo exif expat fam farstream ffmpeg fftw flac flickr fontconfig foomaticdb fortran ftp gd gdbm gdu geo geoip gif gimp git glamor glut gmp gnuplot gnutls go google gphoto2 gpm graphicsmagick graphviz gsl gsm gstreamer gtk gtk3 gtkhtml gudev gzip handbook hbci hddtemp hdf5 iconv icq icu idn imagemagick imap imlib ipv6 jabber jack java java6 javascript jbig jingle jit joystick jpeg jpeg2k kde kdepim kipi kwallet lame lapack lash latex lcms ldap libcaca libedit libffi libnotify libsamplerate libwww lm_sensors lua lzma lzo mad maildir matroska memlimit mercurial mhash mikmod milter mime mmap mms mmx mng modplug modules mono mp3 mp4 mpeg mpi mplayer msn mtp multilib musepack musicbrainz mysql mysqli nas ncurses netcdf nls nntp nocd nptl nsplugin ocr odbc offensive ofx ogg openal opencl openexr opengl openmax openmp openvg osc oscar pam pango pcntl pcre pda pdf pentax phonon php plasma plotutils png policykit portaudio ppds pulseaudio python qml qt3support qt4 qt5 quicktime raw rdesktop readline recode rss samba sasl scanner sdl seccomp semantic-desktop session sharedmem shorten slang slp smp sndfile snmp soap sockets sound sox speex spell sqlite sqlite3 sse sse2 sse3 ssl startup-notification subversion suid svg syslog systemd szip taglib tcpd telepathy themes theora threads tiff timidity tokenizer truetype udev udisks unicode upnp upower usb v4l vala vdpau video videos vim-syntax vnc vorbis vpn vpnc wavpack webkit widgets win32codecs wmf wxwidgets x264 xa xattr xcb xcomposite xface xft xinerama xml xmlrpc xmp xmpp xosd xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo yaz zeroconf zip zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Mark Nowiasz 2018-02-03 12:14:15 UTC
(In reply to Franz Fellner from comment #2)
> "emerge --info" would be great to have :) (e.g for EMERGE_DEFAULT_OPTS)
> And just to be sure: "emerge" isn't some alias?
> "emerge -pv portage" could be helpful, too.

Oh, and of course it's not an alias:

which emerge
/usr/bin/emerge

ls -l /usr/bin/emerge
lrwxrwxrwx 1 root root 31 Feb  3 08:59 /usr/bin/emerge -> ../lib/python-exec/python-exec2
Comment 5 Alexander Tsoy 2018-02-04 00:55:12 UTC
This is due to --changed-deps=y. I also tried to enable this option globally, but it turned out it has this side effect.
Comment 6 Alexander Tsoy 2018-02-04 01:03:41 UTC
But since --changed-deps implies --selective, maybe this is intended behaviour:

$ ACCEPT_KEYWORDS=~amd64 emerge -1qpv --changed-deps=y portage
$ ACCEPT_KEYWORDS=~amd64 emerge -1qpv --selective y portage
$ ACCEPT_KEYWORDS=~amd64 emerge -1qpv --changed-deps=y --selective n portage
[ebuild     U ] sys-apps/portage-2.3.23 [2.3.19-r1] USE="(ipc) native-extensions rsync-verify%* (xattr) -build -doc -epydoc (-selinux)" PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_4 -python3_6"
$ ACCEPT_KEYWORDS=~amd64 emerge -1qpv --changed-deps=y --update portage
[ebuild     U ] sys-apps/portage-2.3.23 [2.3.19-r1] USE="(ipc) native-extensions rsync-verify%* (xattr) -build -doc -epydoc (-selinux)" PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_4 -python3_6"
Comment 7 Zac Medico gentoo-dev 2018-02-05 00:30:28 UTC
The emerge --selective option (and --changed-deps, --changed-use, --newuse etc) causes 'emerge --oneshot portage' to skip the upgrade, at least partially due to this commit from bug 275945:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=5f32c4bf10301d154aa35aaf5653afeadcd520d6

Adding --update to the options causes the update to occur. Maybe this behavior is desirable, since it's commonly suggested to add packages to the world file with 'emerge --noreplace <atom>', and the user does not necessarily want to upgrade the package with that command (--noreplace is equivalent to --selective).
Comment 8 Mark Nowiasz 2018-02-05 06:50:46 UTC
(In reply to Zac Medico from comment #7)

> Adding --update to the options causes the update to occur. Maybe this
> behavior is desirable, since it's commonly suggested to add packages to the
> world file with 'emerge --noreplace <atom>', and the user does not
> necessarily want to upgrade the package with that command (--noreplace is
> equivalent to --selective).

Don't forget that emerge @preserved-rebuild will also do nothing (at least in my case).

This is confusing as hell. On the one hand you're being warned when you're syncing and changed-deps is not enabled, on the other hand if you *are* enabling it (by putting it into EMERGE_DEFAULT_OPTS) emerge silenty ignores updates, even explicit ones (-1, @preserved-rebuild). I'd like some clarification: when do you need --changed-deps and when it's a bad idea to enable change-deps?
Comment 9 Zac Medico gentoo-dev 2018-02-05 07:15:35 UTC
(In reply to Mark Nowiasz from comment #8)
> (In reply to Zac Medico from comment #7)
> 
> > Adding --update to the options causes the update to occur. Maybe this
> > behavior is desirable, since it's commonly suggested to add packages to the
> > world file with 'emerge --noreplace <atom>', and the user does not
> > necessarily want to upgrade the package with that command (--noreplace is
> > equivalent to --selective).
> 
> Don't forget that emerge @preserved-rebuild will also do nothing (at least
> in my case).

I suppose we could probably trigger a warning message if EMERGE_DEFAULT_OPTS results in an effective --selective setting, since it's probably always by mistake.

> This is confusing as hell. On the one hand you're being warned when you're
> syncing and changed-deps is not enabled, on the other hand if you *are*
> enabling it (by putting it into EMERGE_DEFAULT_OPTS) emerge silenty ignores
> updates, even explicit ones (-1, @preserved-rebuild). I'd like some
> clarification: when do you need --changed-deps and when it's a bad idea to
> enable change-deps?

Since portage-2.3.24, you really don't need --changed-deps, because the default settings have been reverted to include --dynamic-deps=y once again (see bug 646458), so you'll get the effective dependency changes without having to rebuild the package with changed dependencies. Also, the message that advised you to use --changed-deps has been disabled by default (bug 645780).
Comment 10 Zac Medico gentoo-dev 2018-02-25 08:22:58 UTC
*** Bug 648750 has been marked as a duplicate of this bug. ***