Skip to content

Fix misc problems with the xz recipe causing redox build failures

Jeremy Soller requested to merge raw-bin:master into master

Created by: raw-bin

Hi.

I hit these when trying a clean build using the instructions here.

Here's an excerpt from the build log:

Create directory build/filesystem/
repo - coreutils up to date
repo - drivers up to date
repo - preparing extrautils
cook - extrautils prepare
~/work/repos/redox/redox/cookbook ~/work/repos/redox/redox/cookbook/recipes/extrautils
./repo.sh: line 38: [: : integer expression expected
repo - building xz
cook - xz build
build-aux/config.sub: No such file or directory
./repo.sh failed.make: *** [mk/filesystem.mk:12: build/filesystem.bin] Error 1

The failure is misleading and after a bit of digging it turns out to be because the xz tarball couldn't be fetched. A follow-on problem was to do with invoking configure which requires generation first.

The 2 commits in this PR fixed the problems for me.

Please consider and apply if appropriate.

Thanks.

Merge request reports