building ubuntu for qubes 3.2 fails due to PYBUILD_SYSTEM

561 views
Skip to first unread message

marti...@outlook.com

unread,
Sep 29, 2018, 12:49:37 PM9/29/18
to qubes-users
Hi,

I try to build ubuntu bionic for Qubes 3.2 following the HowTo:
https://www.reddit.com/r/Qubes/comments/5vzg04/idiots_guide_to_installing_qbuntu_ubuntu_1604/

When I execute:
`make qubes-vm`

I get the error:
sudo BACKEND_VMM=xen chroot /home/user/qubes-builder/chroot-bionic su user -c 'cd /home/user/qubes-src/python-xcffib/debian-pkg/debian/..; export LC_ALL=C; debchange -t -l+bionicu "Build for bionic"; debchange -t --force-distribution -r -D bionic bionic; dpkg-buildpackage -sa -uc -us'
dpkg-buildpackage: info: source package xcffib
dpkg-buildpackage: info: source version 0.5.1-2+bionicu1
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by Marek Marczykowski-Górecki <*@invisiblethingslab.com>
dpkg-source --before-build debian-pkg
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean --with python2,python3 --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
E: pybuild pybuild:109: cannot detect build system, please use --system option or set PYBUILD_SYSTEM env. variable
dh_auto_clean: pybuild --clean --test-nose -i python{version} -p 2.7 returned exit code 11
debian/rules:6: recipe for target 'clean' failed
make: *** [clean] Error 25
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-debian/Makefile.qubuntu:210: dist-package] Fehler 2
make[1]: *** [Makefile.generic:177: packages] Fehler 1
make: *** [Makefile:217: python-xcffib-vm] Fehler 1

Setting
export PYBUILD_SYSTEM=distutils
in my local bash does not work, maybe because of chroot? I don't know python.
Could anyone tell me, what I need to do to get it running?

unman

unread,
Sep 30, 2018, 6:10:43 AM9/30/18
to qubes-users
This is a known issue and I'm working on it

unman

marti...@outlook.com

unread,
Sep 30, 2018, 7:40:53 AM9/30/18
to qubes-users
Hi,
Ok, this is redundant to:
https://github.com/QubesOS/qubes-issues/issues/4330

Hence, I have modified:
chroot-bionic/home/user/qubes-src/python-xcffib/debian-pkg/debian/rules

#!/usr/bin/make -f
export PYBUILD_SYSTEM=distutils
DEB_BUILD_OPTIONS = nocheck

%:
dh $@ --with python2,python3 --buildsystem=pybuild

Unfortunately, I get now the error:

dpkg-build package: info: source changed by Marek Marczykowski-Górecki <*@invisiblethingslab.com>
dpkg-source --before-build debian-pkg
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean --with python2,python3 --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:217: python2.7 setup.py clean
python2.7: can't open file 'setup.py': [Errno 2] No such file or directory
E: pybuild pybuild:336: clean: plugin distutils failed with: exit code=2: python2.7 setup.py clean
dh_auto_clean: pybuild --clean --test-nose -i python{version} -p 2.7 returned exit code 13
debian/rules:6: recipe for target 'clean' failed
make: *** [clean] Error 25
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2
make[2]: *** [/home/user/qubes-builder/qubes-src/builder-debian/Makefile.qubuntu:210: dist-package] Fehler 2
make[1]: *** [Makefile.generic:177: packages] Fehler 1
make: *** [Makefile:217: python-xcffib-vm] Fehler 1

indeed, python-xcffib does not have a setup.py.

=> What do I need to do?

Thanks for your help!
Message has been deleted

marti...@outlook.com

unread,
Sep 30, 2018, 7:48:59 AM9/30/18
to qubes-users
@unman, sorry just saw your link. looking forward to that fix. Thanks for you work!
Reply all
Reply to author
Forward
0 new messages