Modules Script Failing on Flathub, worked fine 3 months ago

GnuCash has been using this script to build a perl-based dependency for over a year without trouble. The latest builds have failed trying to execute that script with the following error:

========================================================================
Building module finance-quote in /srv/buildbot/worker/build-x86_64-5/build/.flatpak-builder/build/finance-quote-1
========================================================================
e]2;flatpak-builder: Building finance-quoteae]2;flatpak-builder: Installing finance-quoteaRunning: perl-libs/install.sh
FB: Running: flatpak build --die-with-parent --env=FLATPAK_BUILDER_BUILDDIR=/run/build/finance-quote --nofilesystem=host --filesystem=/srv/buildbot/worker/build-x86_64-5/build/.flatpak-builder/build/finance-quote-1 --bind-mount=/run/build/finance-quote=/srv/buildbot/worker/build-x86_64-5/build/.flatpak-builder/build/finance-quote-1 --build-dir=/run/build/finance-quote --bind-mount=/run/ccache=/srv/buildbot/worker/build-x86_64-5/build/.flatpak-builder/ccache --unshare=network --env=SOURCE_DATE_EPOCH=1624821381 '--env=CFLAGS=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection ' '--env=CXXFLAGS=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection ' '--env=LDFLAGS=-L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed ' --env=CCACHE_DIR=/run/ccache/disabled --env=PATH=/app/bin:/usr/bin --env=LD_LIBRARY_PATH=/app/lib --env=PKG_CONFIG_PATH=/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig --env=FLATPAK_BUILDER_N_JOBS=48 /srv/buildbot/worker/build-x86_64-5/build/.flatpak-builder/rofiles/rofiles-tfqIq5 /bin/sh -c perl-libs/install.sh
/bin/sh: line 1: perl-libs/install.sh: No such file or directory
e]2;flatpak-builder: Cleanup finance-quoteaError: module finance-quote: Child process exited with code 127
FB: Unmounting read-only fs: fusermount -uz /srv/buildbot/worker/build-x86_64-5/build/.flatpak-builder/rofiles/rofiles-tfqIq5

Unfortunately there’s not enough information there to say why the script file isn’t there.

It last worked at our last release 3 months ago and still works locally on Fedora 33. What might have changed and is there a work-around?

Found the problem by building on Arch Linux, which has the latest flathub-builder release. sources: Validate that dest-filename is not a path precents the script from being created in a subdirectory of the build dir.

yay breaking changes without a warning…