Hello everyone,
I'd be really grateful if someone versed in meson could help me fix build errors in modem-manager-gui. The error is a bit of a random thing, as only some builds fail, and some work fine; I actually haven't been able to reproduce the error on my machines and only see it in Fedora builders.
The tl;dr version is that there seems to be some kind of race condition in the build script, and sometimes it will run into a situation where it tries to install a file that hasn't been created yet - this most often happens with translation files.
If you want to help out, here's the most recent build log: https://kojipkgs.fedoraproject.org//work/tasks/3908/32513908/build.log
Thanks in advance, A.I.
On Sun, Feb 03, 2019 at 07:24:17PM -0000, Artur Iwicki wrote:
Hello,
[..]
The tl;dr version is that there seems to be some kind of race condition in the build script, and sometimes it will run into a situation where it tries to install a file that hasn't been created yet - this most often happens with translation files.
If you want to help out, here's the most recent build log: https://kojipkgs.fedoraproject.org//work/tasks/3908/32513908/build.log
perhaps the root-cause is itstool - i.e. it errors out some time before the error message at the end of the log:
BUILDSTDERR: Installing /builddir/build/BUILD/modem-manager-gui-0.0.19.1/resources/modem-manager-gui-symbolic.svg to /builddir/build/BUILDROOT/modem-manager-gui-0.0.19.1-5.fc30.x86_64/usr/share/icons/hicolor/symbolic/appsTraceback (most recent call last): BUILDSTDERR: File "/usr/bin/itstool", line 1611, in <module> BUILDSTDERR: doc.merge_translations(translations, opts.lang, strict=opts.strict) BUILDSTDERR: File "/usr/bin/itstool", line 997, in merge_translations BUILDSTDERR: lcpar = lcpar.parent BUILDSTDERR: File "/usr/lib64/python3.7/site-packages/libxml2.py", line 296, in get_parent BUILDSTDERR: return nodeWrap(ret) BUILDSTDERR: File "/usr/lib64/python3.7/site-packages/libxml2.py", line 580, in nodeWrap BUILDSTDERR: if name[0:8] == "document": BUILDSTDERR: TypeError: 'NoneType' object is not subscriptable
There is an open bug report that describes some similar non-determistic itstool behaviour - when called from gmake:
https://github.com/itstool/itstool/issues/21
Best regards Georg