Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 602672

Summary: sys-libs/ncurses-6.0-r1 update does not complete, leads to unusable system
Product: Gentoo Linux Reporter: gletonai
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: major CC: amd64, jstein
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description gletonai 2016-12-14 17:56:43 UTC
Could not update from =sys-libs/ncurses-5.9-r99 to =sys-libs/ncurses-6.0-r1, the previous can not be uninstalled successfully.


Reproducible: Always

Steps to Reproduce:
1.emerge --newuse --update --deep --with-bdeps=y --complete-graph=y @world
2.see the above error messages
3.stunned in amazement
Actual Results:  
* Error messages for package sys-libs/ncurses-5.9-r5:

 * The ebuild phase 'postrm' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.
 * The 'postrm' phase of the 'sys-libs/ncurses-5.9-r5' package has failed
 * with exit value 1.
 * 
 * The problem occurred while executing the ebuild file named
 * 'ncurses-5.9-r5.ebuild' located in the '/var/db/pkg/sys-
 * libs/ncurses-5.9-r5' directory. If necessary, manually remove the
 * environment.bz2 file and/or the ebuild file located in that directory.
 * 
 * Removal of the environment.bz2 file is preferred since it may allow the
 * removal phases to execute successfully. The ebuild will be sourced and
 * the eclasses from the current portage tree will be used when necessary.
 * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
 * removal phases to be skipped entirely.

 * Error messages for package sys-libs/ncurses-6.0-r1:

 * The ebuild phase 'postinst' has exited unexpectedly. This type of
 * behavior is known to be triggered by things such as failed variable
 * assignments (bug #190128) or bad substitution errors (bug #200313).
 * Normally, before exiting, bash should have displayed an error message
 * above. If bash did not produce an error message above, it's possible
 * that the ebuild has called `exit` when it should have called `die`
 * instead. This behavior may also be triggered by a corrupt bash binary or
 * a hardware problem such as memory or cpu malfunction. If the problem is
 * not reproducible or it appears to occur randomly, then it is likely to
 * be triggered by a hardware problem. If you suspect a hardware problem
 * then you should try some basic hardware diagnostics such as memtest.
 * Please do not report this as a bug unless it is consistently
 * reproducible and you are sure that your bash binary and hardware are
 * functioning properly.
 * FAILED postinst: 1
 * The ebuild phase 'other' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 

Expected Results:  
exit code 0 :-)

Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 4.1.15-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.1.15-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5_CPU_660_@_3.33GHz-with-gentoo-2.2
KiB Mem:     7773644 total,   3187068 free
KiB Swap:   33517908 total,  33517908 free
Timestamp of repository gentoo: Wed, 14 Dec 2016 15:24:08 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 0

bakusaiga
    location: /var/lib/layman/bakusaiga
    masters: gentoo
    priority: 1

sabayon
    location: /var/lib/layman/sabayon
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=westmere -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -msse4.2 -msse4.1 -mfxsr --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=westmere -fstack-protector-strong -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=westmere -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -msse4.2 -msse4.1 -mfxsr --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=westmere -fstack-protector-strong -O2 -pipe"
DISTDIR="/net/bakusaiga/exports/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs --load-average=4"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup compress-build-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch parallel-install protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ ftp://de-mirror.org/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j11 -l4"
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="10bit 12bit 3d 7zip X X509 a52 aac aacplus aacs acl acpi action_modeswitch additions adns aes aften aio airplay all_sfx alsa amd64 amr amrenc android androiddump apache2 apidoc apng aqsis ass audiofile aura autoshutdown autotools autotrace avahi avs bash-completion bazaar berkdb bittorrent blender bluetooth bluray boost bs2b bzip2 cacert cairo caps cdda cddb cdinstall cdio cdr cdsound celt cgroups charmap chm chroot city cjk clamdtop clang classbrowser cli client clockdiff clucene cmake coinmp coinor collada color-management colord colorio compressed-lumas conntrack consolekit context contrast contrib corefonts cracklib creds crypt cryptokit cryptsetup css cue cups curl custom-cflags custom-cpuopts custom-optimization cvs cxx cycles d3d9 dane dap dbus debugger declarative demosaic detex device-mapper dhcp dhcp-tools dia dirac djvu dmraid doc docbook doomsday dos dot dpi dri dri3 drm dts dv dvd dvi2tty dvipdfm ebook eclipse ecwj2k edd editor egl eigen emf emovix enchant encode equalizer ethernet evdev examples exif expat extensions extra extra-tools extras faac farstream fax fbcon fdk ffmpeg ffmpegsource fftw fgpanel filecaps fits flac flash flite fltk fluidsynth fma fontconfig fortran fpx freedoom freetds frei0r fribidi ftp fullscreen fuse g3dvl gadu games gbm gcdmaster gd gdbm geo geoip geolocation geos gflags gfortran gif gimp git gl gles glew glib glsl gltf glut gme gml gmp gnome-keyring gnome-online-accounts gnumeric gnuplot gold google googledrive gost gpg gphoto2 gpm gps gpsd gpu graphics graphite graphviz groupwise grp grub gs gsf gsl gsm gstreamer gtk gtk3 gtkstyle gudev gui hddtemp hdf hdf5 hdri heretic hexen hidpi highlight hog hpcups hpn html http http2 httpd hwdb i18n iconv icoutils icu id3tag ide idn iec61883 ieee1394 image-imlib image-io imagemagick imaging imap imlib import-filter indi inkjar inotify input_control input_testpicture input_uvc int-quality iodbc ipv6 jadetex jai java javafx javascript jbig jce jemalloc jingle jit jmf joystick jpeg jpeg2k json justify kate kde kdenlive kernel keymap kipi kms konsole kpathsea kvm ladspa lame lapack lastfm latex lcms ldap ldns legacy-systray lensfun libass libcaca libcanberra libffi libguess libkms libmpeg2 libmpv libmysqlclient libnotify libobjc2 libopts libsamplerate libsecret libsoxr libtiger libv4l libv4l2 libxml lightning lights live lm_sensors localstorage lqr ls-dos lua luajit luatex lyx lzma lzo mad marble matplotlib matroska md5sum mdnsresponder-compat meanwhile mediawiki melt mem-scramble memmap mencoder mercurial messages metric midi mikmod minizip mixer mjpeg mmap mms mmx mmxext mng mobi mod models modemmanager modern-top modplug modules mongodb mono motif mount mount-locking mozdom mozilla mp3 mp4 mpeg mpeg2 mpfi mpg123 mpi mpris msn mtp mudflap multilib multimedia musepack music musicbrainz mvl mysql mysqli native-exceptions natspec ncat ncurses ndiff netapi netcdf network networkmanager nfs nfsdcld nfsv41 nls notebook nping nptl nptlonly nsplugin ntfsdecrypt ntfsprogs ntp nut objc objc++ objc-gc octave odbc odbcmanual odf odk offensive ogg ogm ogre oil ois okteta omxil oom openal opencl opencv openexr opengl openimageio openinventor openmax openmp openssl optimization opus oscar osgapps osmesa otr output_autofocus output_file output_rtsp output_udp pam pango pbs pcap pcapnav pci pcntl pcre pcre16 pdf pdfannotextractor pdfimport pdo perl pgo pipelight plasma player plotutils plugins png pnm policykit popcnt portaudio postproc postscript ppds pppd printsupport private-headers profiler proprietary-codecs pstricks pulseaudio python pyx q32 q64 q8 qalculate qmake qml qpak qrcode qt3support qt4 qt5 qthelp quesoglc quicktime quvi rar raw readline real realtime redcode reencrypt rendering resources rfc3779 rle romio rtaudio rtc rtf rtmp rtsp rubberband s3tc samba sasl savedconfig sbc sbsms scanner schroedinger science script scrobbler sctp sdl sdl-sound sdlgfx seccomp secure-delete sendto server session shared-dricore shared-glapi shine sid sidxindex sift silc simage skype slideshow slp smi smp smpeg sms snappy sndfile snmp soap sockets sound soundtouch sox spatialite speex spell spice sql sqlite srt sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 stars startup-notification static-ppds steamgames_defenders_quest steamgames_dwarfs steamgames_hammerwatch steamgames_journey_down steamgames_painkiller steamgames_shatter steamgames_source_engine steamgames_tf2 steamgames_trine2 steamgames_unwritten_tales steamruntime streaming strong-optimization subversion suid svc svg swfdec sysfs syslog system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libCg system-libevent system-libvpx system-sqlite system-wine szip taglib tahoma tbb tcl tcmalloc tcpd tcpreplay telepathy templates terminal testprograms tex4ht textures tfshark tga theora threads thumbnail tiff timezone tinfo tk tools tracepath traceroute track-src-odirect tremor truetype tsmuxer twolame uchardet udev udisks uml unicode unlock-notify unwind upcall upnp upower urandom usb utils utp uuid uvm v4l vaapi vala valgrind vamp vc vcd vcdx vdpau vf-dlopen vhost-net video views virt-network virtualbox vlc vnc vorbis vpx wad wavpack wayland wcs wddx webchannel webgl webkit webkit2 webm webp webserver widevine widgets wifi winbind windows-games winpopup wireless wma-fixed wmf www wxwidgets x264 x265 xa xanim xattr xcb xcomposite xdg xetex xfce xft xkb xml xmlreader xmlrpc xmlwriter xmp xorg xosd xplanet xpm xps xrandr xscreensaver xslt xv xvfb xvid xvidmode xvmc yahoo yuv4mpeg zephyr zip zlib zvbi" ABI_X86="64 32" ALSA_CARDS="hda-intel usb-audio" 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="author braindump flow karbon kexi krita plan sheets stage words gemini" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" L10N="en hu hr de ko sr sr-Latn ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport scripting-javascript wiki-publisher scripting-beanshell" LINGUAS="en hu hr de ko sr ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel fbdev modesetting" XFCE_PLUGINS="logout menu brightness clock trash" 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, USE_PYTHON
Comment 1 Jonas Stein gentoo-dev 2016-12-15 20:13:49 UTC
This sounds not like a problem with the ebuild, but with your installation. But lets see...
Please look at the gentoo support channels to get help. 
https://www.gentoo.org/support/
Please add more details here as soon as possible.
Comment 2 gletonai 2016-12-15 20:25:32 UTC
I actually already reinstalled one box, on this on I got more cautious and backed up ncurses / tinfo libs and then restored them, so I could continue the update.
Comment 3 SpanKY gentoo-dev 2016-12-15 21:48:48 UTC
most likely you have an old version of bash installed which doesn't have a subslot dep on ncurses.  this has been fixed in stable already in bash-4.3_p48, but if you don't have that, then it won't help.

*** This bug has been marked as a duplicate of bug 579324 ***
Comment 4 gletonai 2016-12-16 07:02:11 UTC
Hmm well since I already updated I dont know, but its a possibility
Comment 5 gletonai 2016-12-16 07:02:37 UTC
Hmm well since I already updated I dont know, but its a possibility
Comment 6 SpanKY gentoo-dev 2016-12-16 17:13:37 UTC
you could look at `qlop -l ncurses bash` and see if the newer bash was merged

although i'm not sure portage recalculates reverse deps in the middle of a merge
Comment 7 gletonai 2016-12-16 17:28:51 UTC
Fri Sep 19 22:19:46 2014 >>> sys-libs/ncurses-5.9-r3
Fri Sep 19 22:20:41 2014 >>> app-shells/bash-4.2_p45
Sat Oct 11 19:58:57 2014 >>> app-shells/bash-4.2_p53
Fri Apr  3 13:14:45 2015 >>> sys-libs/ncurses-5.9-r3
Sat May 23 08:40:52 2015 >>> app-shells/bash-4.3_p33-r2
Wed Aug 19 21:17:21 2015 >>> app-shells/bash-4.3_p39
Wed Aug 19 21:23:18 2015 >>> app-shells/bash-4.3_p39
Fri Aug 28 22:36:21 2015 >>> sys-libs/ncurses-5.9-r5
Fri Aug 28 22:36:26 2015 >>> sys-libs/ncurses-5.9-r99
Sun Dec 27 21:39:40 2015 >>> app-shells/bash-4.3_p42
Tue Jan  5 09:16:47 2016 >>> app-shells/bash-4.3_p42-r1
Wed Sep 21 19:44:20 2016 >>> app-shells/bash-4.3_p46-r1
Sun Oct  9 17:24:21 2016 >>> app-shells/bash-4.3_p48
Fri Nov 11 20:14:18 2016 >>> app-shells/bash-4.3_p48
Wed Dec 14 18:47:00 2016 >>> sys-libs/ncurses-6.0-r1
Wed Dec 14 19:03:28 2016 >>> app-shells/bash-4.3_p48-r1
Comment 8 SpanKY gentoo-dev 2016-12-16 18:49:03 UTC
(In reply to gletonai from comment #7)

thanks, that looks like you had the correct state, and portage should have preserved things.  over to a diff bug to dupe ! :)

*** This bug has been marked as a duplicate of bug 598080 ***