New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in qubes-builder while making qubes-vm in order to build Ubuntu template #3098

Open
yitjob opened this Issue Sep 17, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@yitjob

yitjob commented Sep 17, 2017

Qubes OS version (e.g., R3.2):

R3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

qubes-builder is installed in a standalone vm based on fedora-23, following the Arch Linux procedure.


Expected behavior:

Running ./setup and following pre and post instructions, should produce similar results to the guide written for Arch.

Actual behavior:

When doing the merge after getting all sources, several .tar.gz files of 0 bytes of size appear in the folder qubes-src/vmm-xen/, and this is probably ok for some of those files, but when running
make qubes-vm, the command qubes-src/vmm-xen/debian-quilt qubes-src/vmm-xen/series-debian-vm.conf /home/user/qubes-builder/chroot-xenial//home/user/qubes-src/vmm-xen/debian/patches tar xfz "/home/user/qubes-builder/chroot-xenial//home/user/qubes-src/vmm-xen/xen-4.6.6.tar.gz" -C /home/user/qubes-builder/chroot-xenial//home/user/qubes-src/vmm-xen/debian-vm --strip-components=1

raises an error and the build is interrupted.

Steps to reproduce the behavior:

[...]
[user@dev qubes-builder]$ make get-sources
[...]
[user@dev qubes-builder]$ make qubes-vm
Currently installed dependencies:
git-2.5.5-1.fc23.x86_64
rpmdevtools-8.9-1.fc23.noarch
rpm-build-4.13.0-0.rc1.13.fc23.x86_64
createrepo-0.10.3-3.fc21.noarch
debootstrap-1.0.87-1.fc23.noarch
dpkg-dev-1.17.27-1.fc23.noarch
python-sh-1.11-1.fc23.noarch
dialog-1.3-4.20160424.fc23.x86_64
dpkg-dev-1.17.27-1.fc23.noarch
debootstrap-1.0.87-1.fc23.noarch
╔══ DEBUG ══════════════════════════════════════════════════════════════════════
║ Repo Variables
╠───────────────────────────────────────────────────────────────────────────────
║ SRC_DIR: qubes-src
║ CHROOT_DIR: /home/user/qubes-builder/chroot-xenial
║ CHROOT_REPO_DIR: chroot-qubuntu
║ CHROOT_DEBIAN_DIR: /home/user/qubes-builder/chroot-xenial//
║ BUILDER_REPO_DIR: /home/user/qubes-builder/qubes-packages-mirror-repo/xenial
╠───────────────────────────────────────────────────────────────────────────────
║ Chroot Variables
╠───────────────────────────────────────────────────────────────────────────────
║ DIST_BUILD_DIR: /home/user
║ DIST_SRC:
║ DIST_SRC_DEBIAN_DIR: /
╠───────────────────────────────────────────────────────────────────────────────
║ Build Variables
╠───────────────────────────────────────────────────────────────────────────────
║ DEBIAN_PARSER: /home/user/qubes-builder/qubes-src/builder-debian//scripts/debian-parser
║ DEBIAN_PLUGIN_DIR: /home/user/qubes-builder/qubes-src/builder-debian/
║ OUTPUT_DIR: pkgs/xenial
║ PACKAGE_LIST:
║ DISTRIBUTION: qubuntu
║ DIST: xenial
║ DEBIANVERSION: xenial
║ UPDATE_REPO:
║ REPO_SUFFIX:
║ DISTRIBUTION_CAP: Qubuntu
║ REPO_PROXY:
║ APT_GET_OPTIONS:
║ CHROOT_ENV: BACKEND_VMM=xen
╚═══════════════════════════════════════════════════════════════════════════════
╔══ DEBUG ══════════════════════════════════════════════════════════════════════
║ Repo Variables
╠───────────────────────────────────────────────────────────────────────────────
║ SRC_DIR: qubes-src
║ CHROOT_DIR: /home/user/qubes-builder/chroot-xenial
║ CHROOT_REPO_DIR: chroot-qubuntu
║ CHROOT_DEBIAN_DIR: /home/user/qubes-builder/chroot-xenial//debian-vm/debian
║ BUILDER_REPO_DIR: /home/user/qubes-builder/qubes-packages-mirror-repo/xenial
╠───────────────────────────────────────────────────────────────────────────────
║ Chroot Variables
╠───────────────────────────────────────────────────────────────────────────────
║ DIST_BUILD_DIR: /home/user
║ DIST_SRC:
║ DIST_SRC_DEBIAN_DIR: /debian-vm/debian
╠───────────────────────────────────────────────────────────────────────────────
║ Build Variables
╠───────────────────────────────────────────────────────────────────────────────
║ DEBIAN_PARSER: /home/user/qubes-builder/qubes-src/builder-debian//scripts/debian-parser
║ DEBIAN_PLUGIN_DIR: /home/user/qubes-builder/qubes-src/builder-debian/
║ OUTPUT_DIR: pkgs/xenial
║ PACKAGE_LIST: debian-vm/debian
║ DISTRIBUTION: qubuntu
║ DIST: xenial
║ DEBIANVERSION: xenial
║ UPDATE_REPO:
║ REPO_SUFFIX:
║ DISTRIBUTION_CAP: Qubuntu
║ REPO_PROXY:
║ APT_GET_OPTIONS:
║ CHROOT_ENV: BACKEND_VMM=xen
╚═══════════════════════════════════════════════════════════════════════════════
qubes-src/vmm-xen/debian-quilt qubes-src/vmm-xen/series-debian-vm.conf /home/user/qubes-builder/chroot-xenial//home/user/qubes-src/vmm-xen/debian/patches
tar xfz "/home/user/qubes-builder/chroot-xenial//home/user/qubes-src/vmm-xen/xen-4.6.6.tar.gz" -C /home/user/qubes-builder/chroot-xenial//home/user/qubes-src/vmm-xen/debian-vm --strip-components=1

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
qubes-src/vmm-xen/Makefile.builder:19: recipe for target 'source-debian-xen-copy-in' failed
make[1]: *** [source-debian-xen-copy-in] Error 2
Makefile:213: recipe for target 'vmm-xen-vm' failed
make: *** [vmm-xen-vm] Error 1


General notes:

Related issues:

Btw, before this point, there appears to be an error related to dependencies, which I commented in the relevant issue (#3038).

@unman

This comment has been minimized.

Show comment
Hide comment
@unman

unman Oct 9, 2017

Member

There are two problems here: First you're building with Fedora23 which is eol. The issue with dependencies wont arise if you use a newer Fedora and update your git.

The other problem is this:

several .tar.gz files of 0 bytes of size

This indicates that your download of some of the necessary files failed.

Can you try updating your build environment and running 'make get-sources' again.
I cant replicate this on a clean Fedora 25 build environment.

Member

unman commented Oct 9, 2017

There are two problems here: First you're building with Fedora23 which is eol. The issue with dependencies wont arise if you use a newer Fedora and update your git.

The other problem is this:

several .tar.gz files of 0 bytes of size

This indicates that your download of some of the necessary files failed.

Can you try updating your build environment and running 'make get-sources' again.
I cant replicate this on a clean Fedora 25 build environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment