Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759301 - app-emulation/qemu-5.2.0: error while opening "/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/po/bg.po" for reading: No such file or directory
Summary: app-emulation/qemu-5.2.0: error while opening "/var/tmp/portage/app-emulation...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-10 07:29 UTC by Julien Delquié
Modified: 2020-12-10 19:20 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Delquié 2020-12-10 07:29:04 UTC
In the installation phase of qemu ebuild, there is a missing file.

Installing /var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/softmmu-build/pc-bios/descriptors/60-edk2-arm.json to /var/tmp/portage/app-emulation/qemu-5.2.0/image/usr/share/qemu/firmwaremsgfmt: error while opening "/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/po/bg.po" for reading: No such file or directory
Traceback (most recent call last):
  File "/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/meson/meson.py", line 29, in <module>
    sys.exit(mesonmain.main())
  File "/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/meson/mesonbuild/mesonmain.py", line 240, in main
    return run(sys.argv[1:], launcher)
  File "/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/meson/mesonbuild/mesonmain.py", line 229, in run
    return run_script_command(args[1], args[2:])
  File "/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/meson/mesonbuild/mesonmain.py", line 177, in run_script_command
    return module.run(script_args)
  File "/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/meson/mesonbuild/scripts/gettext.py", line 118, in run
    if gen_gmo(src_sub, bld_sub, langs) != 0:
  File "/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/meson/mesonbuild/scripts/gettext.py", line 65, in gen_gmo
    subprocess.check_call(['msgfmt', os.path.join(src_sub, l + '.po'),
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['msgfmt', '/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/po/bg.po', '-o', '/var/tmp/portage/app-emulation/qemu-5.2.0/work/qemu-5.2.0/softmmu-build/po/bg.gmo']' returned non-zero exit status 1.


Reproducible: Always

Steps to Reproduce:
1. try emerge app-emulation/qemu-5.2.0
2. fails with described missing file
Actual Results:  
Installation fails.

Expected Results:  
Installation success.
Comment 1 Ionen Wolkens gentoo-dev 2020-12-10 07:38:06 UTC
Can confirm and reproduce with USE="gtk -nls"

option('gettext', type : 'boolean', value : true,
       description: 'Localization of the GTK+ user interface')

As a workaround, can emerge with:
EXTRA_CONF_QEMU="--disable-gettext"
Comment 2 Ionen Wolkens gentoo-dev 2020-12-10 07:43:29 UTC
(In reply to Ionen Wolkens from comment #1)
> Can confirm and reproduce with USE="gtk -nls"
Or actually, this happens with +nls too (seems just need USE=gtk), was under a wrong impression looking at the ebuild.
Comment 3 HougeLangley 2020-12-10 09:07:46 UTC
(In reply to Ionen Wolkens from comment #1)
> Can confirm and reproduce with USE="gtk -nls"
> 
> option('gettext', type : 'boolean', value : true,
>        description: 'Localization of the GTK+ user interface')
> 
> As a workaround, can emerge with:
> EXTRA_CONF_QEMU="--disable-gettext"

Using sudo EXTRA_CONF_QEMU="--disable-gettext" emerge -av qemu temporary solution.
Comment 4 Ostashevskyi Viktor 2020-12-10 09:50:08 UTC
I can confirm this as well (+gtk +nls).
Comment 5 Larry the Git Cow gentoo-dev 2020-12-10 19:20:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30d865422ef40ecdfcb8b6b7c873a01334560aba

commit 30d865422ef40ecdfcb8b6b7c873a01334560aba
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-12-10 19:20:03 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-12-10 19:20:16 +0000

    app-emulation/qemu: drop nls mangling, use --enable-gettext
    
    qemu-5.2.0 updated the way locales are generated. Let's drop
    our hack for locale filtering.
    
    Reported-by: Julien Delquié
    Closes: https://bugs.gentoo.org/759301
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 app-emulation/qemu/qemu-5.2.0.ebuild | 37 +++++++-----------------------------
 app-emulation/qemu/qemu-9999.ebuild  | 37 +++++++-----------------------------
 2 files changed, 14 insertions(+), 60 deletions(-)