when emerging app-office/openoffice-bin, if the locale is zh_CN.GBK , it will hangs up. The screen output seems like this: >>> Emerging (6 of 14) app-office/openoffice-bin-3.1.1 * OOo_3.1.1_LinuxIntel_install_en-US.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * OOo_3.1.1rc2_20090820_LinuxIntel_langpack_zh-CN.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking OOo_3.1.1_LinuxIntel_install_en-US.tar.gz to /var/tmp/portage/app-office/openoffice-bin-3.1.1/work >>> Unpacking OOo_3.1.1rc2_20090820_LinuxIntel_langpack_zh-CN.tar.gz to /var/tmp/portage/app-office/openoffice-bin-3.1.1/work >>> Source unpacked in /var/tmp/portage/app-office/openoffice-bin-3.1.1/work >>> Compiling source in /var/tmp/portage/app-office/openoffice-bin-3.1.1/work/OOO310_m19_native_packed-1_en-US.9420/RPMS ... >>> Source compiled. >>> Test phase [not enabled]: app-office/openoffice-bin-3.1.1 >>> Install openoffice-bin-3.1.1 into /var/tmp/portage/app-office/openoffice-bin-3.1.1/image/ category app-office * Installing OpenOffice.org into build root... Reproducible: Always Steps to Reproduce: 1. export LC_ALL="zh_CN.GBK" emerge openoffice-bin Actual Results: hangs up at " * Installing OpenOffice.org into build root..." and the command line "sed -i -e s/openoffice.org3/ooffice/g openoffice.org-3.desktop" uses up all cpu resources as it can. Expected Results: complete the installation not only zh_CN.GBK, but also some other locale can reproduce this problem, like ja_JP.EUC-JP. the sed command line "sed -i -e s/openoffice.org3/ooffice/g openoffice.org-3.desktop" hangs at the line started by "GenericName[bg]" in openoffice.org-3.desktop. TO FIX THIS: export LC_ALL=zh_CN.UTF-8 emerge openoffice-bin and it will work.
Assigning to base-system, looks like another "weird locales make stuff go bump in the night" bug.
Created attachment 250517 [details] openoffice.org-base.desktop to reproduce: LC_ALL=zh_CN.GBK sed '' openoffice.org-base.desktop
e-mailed upstream about the issue. apparently they dont have any bug trackers.
ive added a fix from upstream sed git to 4.2.1-r1 and sed now longer hangs for me