emerge --sync fails every time with the following output: # emerge --sync !!! Repository 'dlang' has sync-type attribute set to unsupported value: 'laymansync' !!! Installed sync-types are: '['cvs', 'git', 'rsync', 'svn', 'webrsync']' >>> Syncing repository 'gentoo' into '/usr/portage'... /usr/bin/git pull Already up-to-date. === Sync completed for gentoo Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module> retval = emerge_main() File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1161, in emerge_main return run_action(emerge_config) File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 3101, in run_action return action_sync(emerge_config) File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 1976, in action_sync retvals = syncer.auto_sync(options={'return-messages': False}) File "/usr/lib64/python2.7/site-packages/portage/emaint/modules/sync/sync.py", line 98, in auto_sync emaint_opts=options) File "/usr/lib64/python2.7/site-packages/portage/emaint/modules/sync/sync.py", line 232, in _sync sync_scheduler.wait() File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 54, in wait self._wait() File "/usr/lib64/python2.7/site-packages/portage/util/_async/AsyncScheduler.py", line 81, in _wait self._event_loop.iteration() File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 270, in iteration if not x.callback(f, event, *x.args): File "/usr/lib64/python2.7/site-packages/_emerge/PipeReader.py", line 80, in _output_handler self.wait() File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 57, in wait self._wait_hook() File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python2.7/site-packages/portage/util/_async/AsyncFunction.py", line 58, in _async_func_reader_exit self.wait() File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 57, in wait self._wait_hook() File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python2.7/site-packages/portage/sync/controller.py", line 373, in _sync_task_exit self.sync_callback(self.sync_task) File "/usr/lib64/python2.7/site-packages/portage/sync/controller.py", line 331, in _sync_callback exitcode, message, updatecache_flg = proc.result ValueError: need more than 2 values to unpack Reproducible: Always !!! Repository 'dlang' has sync-type attribute set to unsupported value: 'laymansync' !!! Installed sync-types are: '['cvs', 'git', 'rsync', 'svn', 'webrsync']' Portage 2.2.24 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-4.9.3, glibc-2.21-r1, 4.1.12-gentoo x86_64) ================================================================= System uname: Linux-4.1.12-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_E5400_@_2.70GHz-with-gentoo-2.2 KiB Mem: 8049224 total, 3172528 free KiB Swap: 60812 total, 60812 free Timestamp of repository gentoo: Thu, 10 Dec 2015 12:02:03 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 ccache version 3.1.9 [enabled] app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/ccache: 3.1.9-r4::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.18.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.8.3::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: dlang location: /var/lib/layman/dlang sync-type: laymansync sync-uri: https://github.com/gentoo/dlang.git masters: gentoo priority: 50 gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: 100 anyc location: /home/kicherer/anyc-overlay/ masters: gentoo priority: 101 mylocaloverlay location: /usr/local/portage masters: gentoo priority: 101 local-crossdev location: /usr/local/crossdev-portage masters: gentoo priority: 9999 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA PUEL" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /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/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=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" 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" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 aspell attica avahi berkdb bluetooth bluray branding bzip2 cairo cdda cdr cleartype cli corefonts cracklib crypt cups cxx daap dbus declarative dirac djvu dri dts dvb dvd dvdr ebook egl emboss encode exif faac fam ffmpeg firefox flac fortran fuse gdbm gif git glamor glew gnutls gpm gpssync gstreamer gtkstyles iconv ipv6 jpeg json kde kdepim kipi kvm latex lcms ldap libnotify lm_sensors lzma mad matroska mmx mmxext mng modules mp3 mp4 mpeg mplayer mtp multilib ncurses network nls nptl ogg opencl openexr opengl openmp opus pam pango panorama pcre pdf phonon plasma png policykit polkit postscript ppds prison pulseaudio python qalculate qml qt3support qt4 qt5 qwt rdesktop readline rtmp rtsp samba sdl seccomp session smp speex spell sse sse2 sse3 ssh ssl ssse3 startup-notification stream svg systemd tcpd telepathy theora threads tiff truetype udev udis86 udisks unicode usb v4l v4l2 vdpau vnc vorbis vpx wayland webkit widgets wxwidgets x264 xattr xcb xcomposite xine xinerama xml xmp xscreensaver xv xvid zeroconf zip zlib zvbi" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="radeon vesa nouveau intel i965" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
The SyncManager.sync method is at fault. It needs to return a 4-tuple in all cases.
(In reply to Mario Kicherer from comment #0) > emerge --sync fails every time with the following output: > > # emerge --sync > !!! Repository 'dlang' has sync-type attribute set to unsupported value: > 'laymansync' If you remove the repos.conf section that contains "sync-type = laymansync" then that will suppress the bug.
There's a patch in the following branch: https://github.com/zmedico/portage/tree/bug_567932 You can test it like this: echo '=sys-apps/portage-9999 **' >> /etc/portage/package.accept_keywords portage_LIVE_BRANCH=bug_567932 \ portage_LIVE_REPO=https://github.com/zmedico/portage.git \ emerge -1 =sys-apps/portage-9999 I've posted it for review here: https://archives.gentoo.org/gentoo-portage-dev/message/840f33ff47a8facb6b6cc29c539f2b83
This is in the master branch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=32b372bf79633bbfe6c7b1f5bca2f290a32695d4
I removed the offending line in the config and it works. I will test the patch with the next portage version because I can't use this machine for experiments. Thank you very much!
*** Bug 571268 has been marked as a duplicate of this bug. ***
Fixed in 2.2.27.