Error building Ubuntu focal template on fedora 32


I am curious how Ubuntu will work with Qubes so I decided to build the template. Unfortunately I have no experience yet, but I like learning :slight_smile:

Articles I’ve read:

My steps:

  1. Install dependencies sudo dnf install gnupg git createrepo rpm-build make wget rpmdevtools python3-sh dialog rpm-sign dpkg-dev debootstrap python3-pyyaml devscripts perl-Digest-MD5 perl-Digest-SHA
  2. Create appVM 50GB on fedora32 with 8GB ram without memory balancing, 16 processors.
  3. based on this I imported keys and verified after cloning the repo then make install-deps
  4. After that I ran setup and configured it: qubes 4.0 stable, git clone faster ==> no, prebuilds ==> no, build template only, selected focal-desktop, build-rpm build-debian mgmt-alt (those were matched by default), then window disappeared.
  5. make install-deps ok, make get-sources ok,

make qubes-vm
And there it crashed with:

    Hunk #1 FAILED at 209.
    1 out of 1 hunk FAILED
    dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
    dpkg-source: info: if patch 'patch-xen-gcc10-fixes.patch' is correctly applied by quilt, use 'quilt refresh' to update it
    dpkg-source: info: restoring quilt backup files for patch-xen-gcc10-fixes.patch
    dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/patch-xen-gcc10-
    fixes.patch/ --reject-file=- < debian-vm/debian/patches/patch-xen-gcc10-fixes.patch subprocess 
    returned exit status 1
    dpkg-buildpackage: error: dpkg-source --before-build . subprocess returned exit status 2
    make[2]: *** [/home/user/qubes-builder/qubes-src/builder-debian//Makefile-legacy.debian:56: dist-
    package] Error 2
    make[1]: *** [Makefile.generic:191: packages] Error 1
    make: *** [Makefile:254: vmm-xen-vm] Error 1

When I did quilt-refresh it returned: No series file found

Could you help me please? :slight_smile:

It’s a known issue, and diagnosed, if you look at:

I suggest editing the patch-xen-gcc10-fixes.patch file:

  • int remember_string(struct hashtable *hash, const char *str);
  • #endif /* _XENSTORED_CORE_H */

That should allow the package to be built, although I haven’t tested the
template yet.

1 Like