Cannot run a valid small vala+meson project ("FAILED: meson-install")
Submitted by Gwendal
Link to original bug (#791381)
Description
I am working on this small vala project built with meson: https://github.com/ebousse/diverse-seminar-2017-microservice
Using "[wrap-git]", it has a dependency to the valum library, available here: https://github.com/valum-framework/valum
Compilation and run works fine outside gnome builder, with these commands:
$ mkdir build && cd build
$ meson ..
$ ninja
$ ./src/diverse-seminar-2017-microservice # the application starts and works
However, when using gnome builder, it fails to run the project, with the following output:
ninja: no work to do. [0/1] Installing files. install: cannot stat '/home/ebousse/.cache/gnome-builder/builds/diverse-seminar-2017-microservice/org.gnome.Diverse-Seminar-2017-Microservice.json-3b8f42b54f649c8a83f549644b1ad71e367b986f-local-flatpak-org.gnome.Platform-x86_64-3.26/src/vsgi/vsgi.h': No such file or directory install: cannot stat '/home/ebousse/.cache/gnome-builder/builds/diverse-seminar-2017-microservice/org.gnome.Diverse-Seminar-2017-Microservice.json-3b8f42b54f649c8a83f549644b1ad71e367b986f-local-flatpak-org.gnome.Platform-x86_64-3.26/src/vsgi/vsgi-0.3.vapi': No such file or directory install: cannot stat '/home/ebousse/git/diverse-seminar-2017-microservice/src/vsgi/vsgi-0.3.deps': No such file or directory Installing subprojects/valum/src/vsgi/libvsgi-0.3.so to /app/lib/libvsgi-0.3.so Installing subprojects/valum/src/vsgi/servers/libvsgi-http.so to /app/lib/vsgi-0.3/servers/libvsgi-http.so Installing subprojects/valum/src/vsgi/servers/libvsgi-cgi.so to /app/lib/vsgi-0.3/servers/libvsgi-cgi.so Installing subprojects/valum/src/vsgi/servers/libvsgi-scgi.so to /app/lib/vsgi-0.3/servers/libvsgi-scgi.so Installing subprojects/valum/src/vsgi/servers/libvsgi-mock.so to /app/lib/vsgi-0.3/servers/libvsgi-mock.so Installing subprojects/valum/src/valum/libvalum-0.3.so to /app/lib/libvalum-0.3.so Installing src/diverse-seminar-2017-microservice to /app/bin/diverse-seminar-2017-microservice Installing /home/ebousse/.cache/gnome-builder/builds/diverse-seminar-2017-microservice/org.gnome.Diverse-Seminar-2017-Microservice.json-3b8f42b54f649c8a83f549644b1ad71e367b986f-local-flatpak-org.gnome.Platform-x86_64-3.26/meson-private/vsgi-0.3.pc to /app/lib/pkgconfig Installing /home/ebousse/.cache/gnome-builder/builds/diverse-seminar-2017-microservice/org.gnome.Diverse-Seminar-2017-Microservice.json-3b8f42b54f649c8a83f549644b1ad71e367b986f-local-flatpak-org.gnome.Platform-x86_64-3.26/meson-private/valum-0.3.pc to /app/lib/pkgconfig Running custom install script '/bin/sh /home/ebousse/git/diverse-seminar-2017-microservice/subprojects/valum/src/vsgi/install.sh' Failed to run install script '/bin/sh /home/ebousse/git/diverse-seminar-2017-microservice/subprojects/valum/src/vsgi/install.sh' FAILED: meson-install /usr/bin/python3 /usr/bin/meson --internal install /home/ebousse/.cache/gnome-builder/builds/diverse-seminar-2017-microservice/org.gnome.Diverse-Seminar-2017-Microservice.json-3b8f42b54f649c8a83f549644b1ad71e367b986f-local-flatpak-org.gnome.Platform-x86_64-3.26/meson-private/install.dat ninja: build stopped: subcommand failed.
It seems to be related to these two scripts used in the valum build process with 'meson.add_install_script': https://github.com/valum-framework/valum/blob/b765d12bb5fc584d93e972d027e726f789222841/src/valum/install.sh https://github.com/valum-framework/valum/blob/b765d12bb5fc584d93e972d027e726f789222841/src/vsgi/install.sh
Is is a bug in the gnome builder run process? Or is my meson configuration not supported in builder? Or is the valum meson configuration not supported?
thanks in advance!