migrated from github:
https://github.com/Whonix/Whonix/issues/356
I am considering to revise build-steps.d/1200_create-debian-packages.
Current issues:
- dpkg-buildpackage unfortunately does not support a --outputdir option (feature request), so .deb packages end up in ../ or in other words in whonix_source_folder/packages directory.
- When creating a package, debhelper creates temporary files within whonix_source_folder/packages/$package_name/debian and as far I know this cannot be prevented either.
- Needless to say, having temporary and binary (.deb's) within Whonix source folder is non-ideal. (Risk of custom builders committing them to git or asking when/how/if they can be deleted.)
- Therefore an ugly cleanup step is required, which risks wiping files which others added in meanwhile.
Unfortunately, this task will have to wait, because cowbuilder does not produce deterministic builds in neither wheezy nor jessie.
Produced a work in progress cowbuilder branch:
https://github.com/Whonix/Whonix/tree/cowbuilder
That modifies:
https://github.com/Whonix/Whonix/blob/cowbuilder/build-steps.d/1200_create-debian-packages
There is a new function create_whonix_debian_packages_using_cowbuilder:
https://github.com/Whonix/Whonix/blob/cowbuilder/build-steps.d/1200_create-debian-packages#L250
Unfortunately, this task will have to wait, because cowbuilder does not produce deterministic builds in neither wheezy nor jessie.
No upstream bugreport necessary, because it is fixed in sid + reproducible builds custom build environment (https://wiki.debian.org/ReproducibleBuilds#Custom_build_environment). I guess this will be possible in jessie + 1 (Debian version 9 codename Stretch).