The first full build succeeded and produced a package that would not have
worked. Three separate causes, all silent:
- R was configured --with-blas --with-lapack, so it linked Arch's external
BLAS and never built libRblas.so/libRlapack.so. The JASP module bundles
expect those inside R_HOME, the way a conventional R and the Flatpak ship
them. Now --without-blas, with a hard check after install.
- buildModuleBundlesLocally.R installs jaspModuleTools via install_github,
which failed on anonymous GitHub rate limits. No bundles were produced at
all. GITHUB_PAT is now required rather than merely recommended.
- buildAllDefaultJaspModules.R calls the bundle builder through system2(),
which ignores exit status, so all of the above exited 0. Added explicit
guards: jaspModuleTools must exist, Modules/local must be non-empty, and
the staged tree must contain the bundles and all three R libraries.
Staging was also wrong: it copied ModuleBundleBuildDir/Modules, which is
cloned module *sources* with zero compiled objects, while dropping
LibraryR entirely - 267MB of R packages built against the bundled R.