Builder doesn't pick up on buildsystem changes
I was trying to build gnome-calculator from git master in Builder. I was at commit dfb58018.
In that commit, Calculator has both an Autotools and Meson build system. The flatpak manifest builds with the Autotools.
The Autotools buildsystem being broken with srcdir!=builddir at that point (it has been fixed since then), I tried instead building the Flatpak with Meson.
So I added the appropriate line in the org.gnome.Calculator.json
manifest:
"buildsystem": "meson",
Trying to build, Builder used the Autotools again. Looking in the build properties, Builder still said "Build System: Autotools".
So I tried removing the autogen.sh
, configure.ac
and Makefile.am
files entirely, leaving only the meson buildsystem. Trying to build, Builder used the Autotools again. Looking in the build properties, Builder still said "Build System: Autotools".
At that point I closed Builder, removed ~/.var/app/org.gnome.Builder/cache/gnome-builder/builds/GNOME-Calculator
and started Builder again. I had to reimport the Calculator project as if it were the first time, but then the build properties said the buildsystem was meson, and building used meson as expected.
Setting aside the issues with Calculator (its Autotools buildsystem being broken then fixed), it seems to me Builder should have picked up my attemps to change the buildsystem, without requiring a complete cache clean and reimport?
This is with Builder from Flathub:
$ flatpak info org.gnome.Builder
Ref: app/org.gnome.Builder/x86_64/stable
ID: org.gnome.Builder
Arch: x86_64
Branch: stable
Origin: flathub
Date: 2018-01-25 01:12:15 +0000
Subject: bump build (3f306ea1)
Commit: 268d5286c21417dedcf370a25fceeb5f67dce8a530cb35dee1b550ef4496e5e7
Parent: a18996581b27ed203c42a2739ad8ec5f2f4a3133ff8d235171270d59045ca8f8
Location: /var/lib/flatpak/app/org.gnome.Builder/x86_64/stable/268d5286c21417dedcf370a25fceeb5f67dce8a530cb35dee1b550ef4496e5e7
Installed size: 77.1 MB
Runtime: org.gnome.Sdk/x86_64/3.26