eix-sync causes: Number of files: 184,620 (reg: 157,841, dir: 26,779) Number of created files: 0 Number of deleted files: 0 Number of regular files transferred: 15 Total file size: 331.53M bytes Total transferred file size: 687.87K bytes Literal data: 687.87K bytes Matched data: 0 bytes File list size: 3.84M File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 32.84K Total bytes received: 5.07M sent 32.84K bytes received 5.07M bytes 167.21K bytes/sec total size is 331.53M speedup is 65.01 === Sync completed for gentoo Traceback (most recent call last): File "/usr/lib/python-exec/python3.4/emerge", line 50, in <module> retval = emerge_main() File "/usr/lib64/python3.4/site-packages/_emerge/main.py", line 1161, in emerge_main return run_action(emerge_config) File "/usr/lib64/python3.4/site-packages/_emerge/actions.py", line 3067, in run_action return action_sync(emerge_config) File "/usr/lib64/python3.4/site-packages/_emerge/actions.py", line 1942, in action_sync retvals = syncer.auto_sync(options={'return-messages': False}) File "/usr/lib64/python3.4/site-packages/portage/emaint/modules/sync/sync.py", line 98, in auto_sync emaint_opts=options) File "/usr/lib64/python3.4/site-packages/portage/emaint/modules/sync/sync.py", line 232, in _sync sync_scheduler.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 54, in wait self._wait() File "/usr/lib64/python3.4/site-packages/portage/util/_async/AsyncScheduler.py", line 81, in _wait self._event_loop.iteration() File "/usr/lib64/python3.4/site-packages/portage/util/_eventloop/EventLoop.py", line 270, in iteration if not x.callback(f, event, *x.args): File "/usr/lib64/python3.4/site-packages/_emerge/PipeReader.py", line 80, in _output_handler self.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait self._wait_hook() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python3.4/site-packages/portage/util/_async/AsyncFunction.py", line 58, in _async_func_reader_exit self.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait self._wait_hook() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python3.4/site-packages/portage/sync/controller.py", line 343, in _sync_callback action_metadata(self.settings, self.portdb, self.emerge_config.opts, AttributeError: 'SyncManager' object has no attribute 'portdb' * emerge --sync failed * Time statistics: 32 seconds for syncing 32 seconds total ----------------------------------------------------------- after running python-updater & perl-cleaner --all same result
Same here. I had to downgrade again to 2.2.20.1.
Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.1.8-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.1.8-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2 KiB Mem: 16385360 total, 12860044 free KiB Swap: 25166912 total, 25166912 free Timestamp of repository gentoo: Wed, 23 Sep 2015 08:15:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10::gentoo, 3.3.5-r2::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.2::gentoo dev-util/pkgconfig: 0.28-r3::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.8::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::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.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 interactive-fiction location: /var/lib/layman/interactive-fiction sync-type: laymansync sync-uri: git://repo.or.cz/gentoo-interactive-fiction.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 vmware location: /var/lib/layman/vmware sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/vmware.git masters: gentoo priority: 50 Local location: /usr/local/portage masters: gentoo priority: 99999999 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe -mtune=native -march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block" 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 /usr/share/themes/oxygen-gtk/gtk-3.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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-pipe -mtune=native -march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block" DISTDIR="/mnt/Data/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo http://mirror.ovh.net/gentoo-distfiles http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common" MAKEOPTS="-j4" PKGDIR="/mnt/Data/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 aes aes-ni alsa amd64 audiofile avx bash-completion branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus declarative dri dts dvd dvdr emboss encode exif fam fbcondecor flac gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcdfilter lcms libnotify libsamplerate lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nptl nvidia offensive ogg opengl openmp pam pango pcre pdf pgo phonon plasma png policykit popcnt ppds pulseaudio qml qt4 qt5 readline seccomp session spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis widgets wxwidgets x264 xcb xcomposite xml xv xvid xvmc 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes aes-ni avx mmx mmxext popcnt sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3" DRACUT_MODULES="plymouth" 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" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby22" SANE_BACKENDS="nothing" 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" USE_PYTHON="3.4 3.3 2.7" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-apps/portage-2.2.20.1::gentoo was built with the following: USE="(ipc) -build -doc -epydoc (-selinux) -xattr" ABI_X86="64" LINGUAS="-ru" PYTHON_TARGETS="python2_7 python3_3 python3_4 (-pypy)"
emerge --info Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.2.0-gentoo-r1 x86_64) ================================================================= System uname: Linux-4.2.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i3-3220_CPU_@_3.30GHz-with-gentoo-2.2 KiB Mem: 8105396 total, 1185924 free KiB Swap: 2097148 total, 2096904 free Timestamp of repository gentoo: Wed, 23 Sep 2015 08:00:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 ccache version 3.2.3 [enabled] app-shells/bash: 4.3_p42::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo dev-util/ccache: 3.2.3::gentoo dev-util/cmake: 3.3.2::gentoo dev-util/pkgconfig: 0.28-r3::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.8::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::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.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 bircoph location: /var/lib/layman/bircoph masters: gentoo priority: 50 sunrise location: /var/lib/layman/sunrise masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx-i -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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core-avx-i -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" 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 aes alsa amd64 avx avx2 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fma3 fma4 fortran gdbm gif glamor gpm iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis widgets wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" 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="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="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" USE_PYTHON="2.7" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS had to downgrade to 2.2.20.1
Can you please confirm that this issue is only in eix-sync. That if you run emerge --sync or emaint sync -A directly that they work fine. Because I have not been able to reproduce this error running emerge/emaint directly.
For me, the issue is there for "emerge --sync". I don't know anything about "eix-sync". I never used it.
just checked: eix-sync & emerge --sync identical error, emaint sync -a not much differs: === Sync completed for gentoo Traceback (most recent call last): File "/usr/lib/python-exec/python3.4/emaint", line 36, in <module> emaint_main(sys.argv[1:]) File "/usr/lib64/python3.4/site-packages/portage/emaint/main.py", line 242, in emaint_main taskmaster.run_tasks(tasks, func, status, options=task_opts) File "/usr/lib64/python3.4/site-packages/portage/emaint/main.py", line 139, in run_tasks result = getattr(inst, func)(**kwargs) File "/usr/lib64/python3.4/site-packages/portage/emaint/modules/sync/sync.py", line 98, in auto_sync emaint_opts=options) File "/usr/lib64/python3.4/site-packages/portage/emaint/modules/sync/sync.py", line 232, in _sync sync_scheduler.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 54, in wait self._wait() File "/usr/lib64/python3.4/site-packages/portage/util/_async/AsyncScheduler.py", line 81, in _wait self._event_loop.iteration() File "/usr/lib64/python3.4/site-packages/portage/util/_eventloop/EventLoop.py", line 270, in iteration if not x.callback(f, event, *x.args): File "/usr/lib64/python3.4/site-packages/_emerge/PipeReader.py", line 80, in _output_handler self.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait self._wait_hook() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python3.4/site-packages/portage/util/_async/AsyncFunction.py", line 58, in _async_func_reader_exit self.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait self._wait_hook() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python3.4/site-packages/portage/sync/controller.py", line 343, in _sync_callback action_metadata(self.settings, self.portdb, self.emerge_config.opts, AttributeError: 'SyncManager' object has no attribute 'portdb'
OK, do you have any files in /etc/portage/repos.conf/ If yes, please their contents to this bug. They would most likely be gentoo.conf and layman.conf. If not you must be using the source /var/lib/layman/make.conf line in /etc/portage/make.conf. Please confirm Looking at the code, the only way portdb is not defined is if the pre_sync() does not run. That only occurs when it does not find the sync module it needs to run. But that should have printed an error message indicating that.
gentoo.conf: [DEFAULT] main-repo = gentoo [gentoo] location = /usr/portage sync-type = rsync sync-uri = rsync://rsync.europe.gentoo.org/gentoo-portage auto-sync = yes layman.conf: [interactive-fiction] priority = 50 location = /var/lib/layman/interactive-fiction layman-type = git sync-type = laymansync sync-uri = git://repo.or.cz/gentoo-interactive-fiction.git auto-sync = Yes [steam-overlay] priority = 50 location = /var/lib/layman/steam-overlay layman-type = git sync-type = laymansync sync-uri = git://github.com/anyc/steam-overlay.git auto-sync = Yes [vmware] priority = 50 location = /var/lib/layman/vmware layman-type = git sync-type = laymansync sync-uri = git://anongit.gentoo.org/proj/vmware.git auto-sync = Yes
Thank you, those look normal, nothing there that could be causing it.
hmm, If it isn't finding a sync module, it would have to be hte layman sync module for portage. Can you both please confirm that layman is installed in all the same python versions as portage? That is the only possibility that I can see so far. An easy test is to run "emaint sync -r ${overlay-name}" to sync one of your overlays. If that is failing, it should output the error message.
(In reply to Brian Dolbec from comment #10) > Can you both please confirm that layman is installed in all the same python > versions as portage? How do I confirm that? > An easy test is to run "emaint sync -r ${overlay-name}" to sync one of your > overlays. > > If that is failing, it should output the error message. It doesn't fail. I'm now running "emerge --sync" again to see where it fails exactly.
(In reply to Nikos Chantziaras from comment #11) > (In reply to Brian Dolbec from comment #10) > > An easy test is to run "emaint sync -r ${overlay-name}" to sync one of your > > overlays. > > It doesn't fail. I'm now running "emerge --sync" again to see where it fails > exactly. Well, emerge --sync fails, just as before: ============================= sent 29.65K bytes received 4.22M bytes 72.64K bytes/sec total size is 331.73M speedup is 78.06 === Sync completed for gentoo >>> Syncing repository 'vmware' into '/var/lib/layman/vmware'... Traceback (most recent call last): File "/usr/lib/python-exec/python3.4/emerge", line 50, in <module> retval = emerge_main() File "/usr/lib64/python3.4/site-packages/_emerge/main.py", line 1161, in emerge_main return run_action(emerge_config) File "/usr/lib64/python3.4/site-packages/_emerge/actions.py", line 3067, in run_action return action_sync(emerge_config) File "/usr/lib64/python3.4/site-packages/_emerge/actions.py", line 1942, in action_sync retvals = syncer.auto_sync(options={'return-messages': False}) File "/usr/lib64/python3.4/site-packages/portage/emaint/modules/sync/sync.py", line 98, in auto_sync emaint_opts=options) File "/usr/lib64/python3.4/site-packages/portage/emaint/modules/sync/sync.py", line 232, in _sync sync_scheduler.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 54, in wait self._wait() File "/usr/lib64/python3.4/site-packages/portage/util/_async/AsyncScheduler.py", line 81, in _wait self._event_loop.iteration() File "/usr/lib64/python3.4/site-packages/portage/util/_eventloop/EventLoop.py", line 270, in iteration if not x.callback(f, event, *x.args): File "/usr/lib64/python3.4/site-packages/_emerge/PipeReader.py", line 80, in _output_handler self.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait self._wait_hook() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python3.4/site-packages/portage/util/_async/AsyncFunction.py", line 58, in _async_func_reader_exit self.wait() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait self._wait_hook() File "/usr/lib64/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python3.4/site-packages/portage/sync/controller.py", line 343, in _sync_callback action_metadata(self.settings, self.portdb, self.emerge_config.opts, AttributeError: 'SyncManager' object has no attribute 'portdb' >>> Starting layman sync for vmware... realnc@gentoo ~ $ * Running Git... # ( cd /var/lib/layman/vmware && /usr/bin/git pull ) Already up-to-date. * * Succeeded: * ------ * Successfully synchronized overlay "vmware". * >>> layman sync succeeded: vmware >>> laymansync sez... "Hasta la sync ya, baby!" === Sync completed for vmware ============================= But emaint sync does not fail: ============================= $ sudo emaint sync -r interactive-fiction Password: >>> Syncing repository 'interactive-fiction' into '/var/lib/layman/interactive-fiction'... >>> Starting layman sync for interactive-fiction... * Running Git... # ( cd /var/lib/layman/interactive-fiction && /usr/bin/git pull ) Already up-to-date. * * Succeeded: * ------ * Successfully synchronized overlay "interactive-fiction". * >>> layman sync succeeded: interactive-fiction >>> laymansync sez... "Hasta la sync ya, baby!" === Sync completed for interactive-fiction Reading Portage settings .. Building database (/var/cache/eix/portage.eix) .. [0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat) Reading category 163|163 (100%) Finished [1] 'interactive-fiction' /var/lib/layman/interactive-fiction (cache: parse|ebuild*#metadata-md5#metadata-assign#assign) Reading category 163|163 (100%) Finished [2] 'steam-overlay' /var/lib/layman/steam-overlay (cache: parse|ebuild*#metadata-md5#metadata-assign#assign) Reading category 163|163 (100%) Finished [3] 'vmware' /var/lib/layman/vmware (cache: parse|ebuild*#metadata-md5#metadata-assign#assign) Reading category 163|163 (100%) Finished [4] 'Local' /usr/local/portage (cache: parse|ebuild*#metadata-md5#metadata-assign#assign) Reading category 163|163 (100%) Finished Applying masks .. Calculating hash tables .. Writing database file /var/cache/eix/portage.eix .. Database contains 18454 packages in 163 categories. q: Updating ebuild cache ... q: Finished 38030 entries in 0.112121 seconds Action: sync for repo: interactive-fiction, returned code = 0 =============================
The problem is that self.portdb is assigned in the SyncManager.pre_sync method, which is now executed in a child process. We need to assign self.portdb at the beginning of the SyncManager.async method, which executes in the main process.
There's a patch in the following branch: https://github.com/zmedico/portage/tree/bug_561234 You can test it like this: echo '=sys-apps/portage-9999 **' >> /etc/portage/package.accept_keywords portage_LIVE_BRANCH=bug_561234 \ 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/e29153d2aab2dd430438cbd5deb1e20d
This is in the master branch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=200d876b01dd11521cdcd9bfa07abdca165d24e8
Released in portage-2.2.22