Whonix Desktop Installer with Calamares - field report

Apply that git commit and then set GENMKFILE_DEBUG=1.

Or add

set -x

on top of

/home/user//Whonix/packages/genmkfile/usr/share/genmkfile/make-helper.bsh

below

#!/bin/bash

unconditionally.

I will probably manage to reproduce and fix that one. It’s about a VM which already has genmkfile vs one that has not. Just need to start with a very minimal VM to reproduce. Should be fixed in near future.

git tag

15.0.0.4.6-developers-only

now comes with debugging enabled by default for genmkfile_installation

But even if I started with a new VM without genmkfile installed ever previously, I still couldn’t reproduce this issue.

Please kindly get 15.0.0.4.6-developers-only and do again. This time we’ll have debug output.

15.0.0.4.6-developers-only still fails

+ make_deb-pkg-build_shared
+ '[' false = true ']'
+ command -v debuild
+ dpkg-checkbuilddeps
+ debuild --no-lintian -sa -us -uc
 dpkg-buildpackage -us -uc -ui -sa
dpkg-buildpackage: info: source package genmkfile
dpkg-buildpackage: info: source version 3:7.9-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Patrick Schleizer <adrelanos@riseup.net>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_auto_clean
	make -j1 distclean
make[1]: Entering directory '/home/user/Whonix/packages/genmkfile'
./usr/share/genmkfile/make-helper.bsh distclean
make[1]: *** [usr/share/genmkfile/makefile-full:97: distclean] Error 1
make[1]: Leaving directory '/home/user/Whonix/packages/genmkfile'
dh_auto_clean: make -j1 distclean returned exit code 2
make: *** [debian/rules:9: clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -sa failed
++ error_handler_pre
++ local exit_code=29
++ local 'last_err=debuild --no-lintian -sa $make_debuild_maybe_unsigned_opts "$@"'
++ '[' '!' 1 = 1 ']'
++ '[' '' = '' ']'
++ output='## See above.'
++ '[' '!' 1 = 1 ']'
++ force_echo '
####################################################################
## BEGIN ERROR in ./usr/share/genmkfile/make-helper-one.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: debuild --no-lintian -sa $make_debuild_maybe_unsigned_opts "$@"
## EXIT_CODE: 29
##
## END ERROR in ./usr/share/genmkfile/make-helper-one.bsh detected!
## Please report this bug!
####################################################################

Yes.
make_use_cowbuilder=false is set during genmkfile_installation because cannot use cowbuilder to initially build and install genmkfile.

Did you set make_use_cowbuilder=false?

Is now something else failing?

No I did not change anything, just downloaded github source and

sudo ~/Whonix/whonix_build --build --redistribute --target iso --flavor whonix-host-xfce --freedom false

I don’t know what’s happening. Didn’t have these issues when building before.

1 Like

Shuld I set make_use_cowbuilder=false?
If yes, how exactly can I do that?

1 Like

Would not help since already set at that stage here

https://github.com/Whonix/Whonix/blob/master/build-steps.d/1120_prepare-build-machine#L278

as per Whonix ™ Source Code Introduction

or (same result)

sudo make_use_cowbuilder=false ~/Whonix/whonix_build --build --redistribute --target iso --flavor whonix-host-xfce --freedom false

Building with this command fails at the exact same step with the exact same error.

1 Like

Expected.

We need more debugging in genmkfile.

So we need to

set -x

unconditionally.

Building now with set -x set unconditionnally.
Stage 1120 passed, building continues

1 Like

Now included in git tag:

15.0.0.4.7-developers-only

There was an error with uncommitted changes that I chose to ignore, I think it’s safe?

+ true '---------------------------------------------------------------------'
+ error 'Uncommitted changes! See above!'
+ echo '############################################################'
############################################################
+ echo 'ERROR: Uncommitted changes! See above!'
ERROR: Uncommitted changes! See above!
+ echo '############################################################'
############################################################
1 Like

Yes.

Something that https://github.com/Whonix/helper-scripts/blob/master/usr/lib/helper-scripts/pre.bsh might be causing this.

Speculation: an old version of helper-scripts (pre.bsh) shipped in Whonix stable is the cause of this. By installing newer helper-scripts before building Whonix, none of this might happen.

I am probably building with a newer version of helper-scripts, hence not able to reproduce.