0.59.{91,92}: broken vte-2.91-update-po target
Issue started in 0.59.91 (0.59.90 was OK). .pot file should be automatically generated if it is not present (this is how it works in all other meson projects).
[tkloczko@barrel vte-0.59.92]$ /usr/bin/ninja -v -j48 -C x86_64-redhat-linux-gnu vte-2.91-update-po
ninja: Entering directory `x86_64-redhat-linux-gnu'
[0/1] /usr/bin/meson --internal commandrunner /home/tkloczko/rpmbuild/BUILD/vte-0.59.92 /home/tkloczko/rpmbuild/BUILD/vte-0.59.92/x86_64-redhat-linux-gnu po /usr/bin/meson /usr/bin/meson --internal gettext update_po --pkgname=vte-2.91 --extra-args=--keyword=g_dpgettext2:2c,3@@--flag=NC_:2:pass-c-format@@--flag=g_fprintf:2:c-format@@--keyword=N_@@--flag=g_strdup_printf:1:c-format@@--from-code=UTF-8@@--flag=g_markup_printf_escaped:1:c-format@@--flag=g_dngettext:2:pass-c-format@@--flag=N_:1:pass-c-format@@--flag=g_sprintf:2:c-format@@--keyword=NC_:1c,2@@--flag=g_print:1:c-format@@--add-comments@@--flag=g_log:3:c-format@@--flag=g_printf:1:c-format@@--keyword=_@@--keyword=C_:1c,2@@--flag=g_string_printf:2:c-format@@--flag=g_error_new:3:c-format@@--keyword=g_dcgettext:2@@--flag=g_printerr:1:c-format@@--keyword=g_dngettext:2,3@@--flag=g_snprintf:3:c-format@@--flag=g_set_error:4:c-format@@--flag=C_:2:pass-c-format@@--flag=g_string_append_printf:2:c-format
msgmerge: error while opening "/home/tkloczko/rpmbuild/BUILD/vte-0.59.92/po/vte-2.91.pot" for reading: No such file or directory
Traceback (most recent call last):
File "/usr/bin/meson", line 11, in <module>
load_entry_point('meson==0.53.1', 'console_scripts', 'meson')()
File "/usr/lib/python3.8/site-packages/mesonbuild/mesonmain.py", line 226, in main
return run(sys.argv[1:], launcher)
File "/usr/lib/python3.8/site-packages/mesonbuild/mesonmain.py", line 215, in run
return run_script_command(args[1], args[2:])
File "/usr/lib/python3.8/site-packages/mesonbuild/mesonmain.py", line 163, in run_script_command
return module.run(script_args)
File "/usr/lib/python3.8/site-packages/mesonbuild/scripts/gettext.py", line 113, in run
return update_po(src_sub, options.pkgname, langs)
File "/usr/lib/python3.8/site-packages/mesonbuild/scripts/gettext.py", line 74, in update_po
subprocess.check_call(['msgmerge', '-q', '-o', pofile, pofile, potfile])
File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['msgmerge', '-q', '-o', '/home/tkloczko/rpmbuild/BUILD/vte-0.59.92/po/am.po', '/home/tkloczko/rpmbuild/BUILD/vte-0.59.92/po/am.po', '/home/tkloczko/rpmbuild/BUILD/vte-0.59.92/po/vte-2.91.pot']' returned non-zero exit status 1.
FAILED: meson-vte-2.91-update-po
/usr/bin/meson --internal commandrunner /home/tkloczko/rpmbuild/BUILD/vte-0.59.92 /home/tkloczko/rpmbuild/BUILD/vte-0.59.92/x86_64-redhat-linux-gnu po /usr/bin/meson /usr/bin/meson --internal gettext update_po --pkgname=vte-2.91 --extra-args=--keyword=g_dpgettext2:2c,3@@--flag=NC_:2:pass-c-format@@--flag=g_fprintf:2:c-format@@--keyword=N_@@--flag=g_strdup_printf:1:c-format@@--from-code=UTF-8@@--flag=g_markup_printf_escaped:1:c-format@@--flag=g_dngettext:2:pass-c-format@@--flag=N_:1:pass-c-format@@--flag=g_sprintf:2:c-format@@--keyword=NC_:1c,2@@--flag=g_print:1:c-format@@--add-comments@@--flag=g_log:3:c-format@@--flag=g_printf:1:c-format@@--keyword=_@@--keyword=C_:1c,2@@--flag=g_string_printf:2:c-format@@--flag=g_error_new:3:c-format@@--keyword=g_dcgettext:2@@--flag=g_printerr:1:c-format@@--keyword=g_dngettext:2,3@@--flag=g_snprintf:3:c-format@@--flag=g_set_error:4:c-format@@--flag=C_:2:pass-c-format@@--flag=g_string_append_printf:2:c-format
ninja: build stopped: subcommand failed.