When attempting to install a .tbz2 package of app-misc/ca-certificates-20110502-r1 with no locale set, emerge fails with a traceback that indicates the wrong package/object was used to reference the _merge_unicode_error function. (I realize that setting a locale works fixes the issue for me, but it still appears that there is a small bug with emerge here since I got a traceback instead of an error message.) Reproducible: Always Steps to Reproduce: 1. Ensure no system locale is set. 2. With the FEATURES variable including "buildpkg", install app-misc/ca-certificates-20110502-r1. (I'm generally installing on a cluster using a single binary package repository with all nodes installing nothing but binary packages, but installing by path is likewise 3. On a similar machine, A, set up a binary package repository with an FTP server. (Hopefully details aren't necessary.) 4. On a second similar machine, B, set it up to install nothing but binary packages from A. (PORTAGE_BINHOST set to machine A, FEATURES including getbinpkg.) 5. On machine B, attempt to install app-misc/ca-certificates-20110502-r1. Actual Results: # emerge -vqa1 ca-certificates [binary U ] app-misc/ca-certificates-20110502-r1 [20090709] Would you like to merge these packages? [Yes/No] y >>> Emerging binary (1 of 1) app-misc/ca-certificates-20110502-r1 >>> Installing (1 of 1) app-misc/ca-certificates-20110502-r1 >>> Failed to install app-misc/ca-certificates-20110502-r1, Log file: >>> '/var/tmp/portage/app-misc/ca-certificates-20110502-r1/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.04, 0.03, 0.05 >>> Extracting info * Package: app-misc/ca-certificates-20110502-r1 * Repository: gentoo * USE: kernel_linux elibc_glibc x86 userland_GNU * FEATURES: sandbox >>> Extracting app-misc/ca-certificates-20110502-r1 Traceback (most recent call last): File "/usr/lib/portage/pym/portage/dbapi/_MergeProcess.py", line 246, in _spawn prev_mtimes=self.prev_mtimes, counter=counter) File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 4261, in merge counter=counter) File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 3347, in treewalk eerror(portage._merge_unicode_error(unicode_errors)) AttributeError: 'module' object has no attribute '_merge_unicode_error' Expected Results: # emerge -vqa1 ca-certificates [binary U ] app-misc/ca-certificates-20110502-r1 [20090709] Would you like to merge these packages? [Yes/No] y >>> Emerging binary (1 of 1) app-misc/ca-certificates-20110502-r1 >>> Installing (1 of 1) app-misc/ca-certificates-20110502-r1 >>> Failed to install app-misc/ca-certificates-20110502-r1, Log file: >>> '/var/tmp/portage/app-misc/ca-certificates-20110502-r1/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.04, 0.03, 0.05 Some error message about the system locale not being set.
This is fixed in 2.1.10.13 and 2.2.0_alpha52: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d318bcce356b55d481e78b8cf511d6698f67eee5