Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to build a single Qubes package on plain Debian?

81 views
Skip to first unread message

Patrick Schleizer

unread,
Sep 12, 2015, 6:57:36 PM9/12/15
to qubes...@googlegroups.com, Patrick Schleizer
How to build a single Qubes package on plain Debian? I.e. in a Qubes
Debian template?

I wanted to work on the following:
Debian Templates: 'su -' asks for password
https://github.com/QubesOS/qubes-issues/issues/1128

It would help with debugging, if I could just build inside a Qubes
Debian template. I.e. outside of Qubes Builder.

Could you please provide instructions on how to do that?

As a related note, I think the dependency xserver-xorg-dev is missing.
Created a pull request for it.:
https://github.com/marmarek/qubes-core-agent-linux/pull/30

Tried 'make all'. Still failing. [1]

Cheers,
Patrick

[1]
make all
make -C misc
make[1]: Entering directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/misc'
python -m compileall .
Listing . ...
python -O -m compileall .
Listing . ...
gcc -o close-window close-window.c -lX11
make[1]: Leaving directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/misc'
make -C qrexec
make[1]: Entering directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/qrexec'
gcc -I. -g -O2 -Wall -Wextra -Werror -pie -fPIC `pkg-config --cflags
vchan-` -c -o qrexec-agent.o qrexec-agent.c
Package vchan- was not found in the pkg-config search path.
Perhaps you should add the directory containing `vchan-.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vchan-' found
qrexec-agent.c:39:22: fatal error: libvchan.h: No such file or directory
#include <libvchan.h>
^
compilation terminated.
<builtin>: recipe for target 'qrexec-agent.o' failed
make[1]: *** [qrexec-agent.o] Error 1
make[1]: Leaving directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/qrexec'
Makefile:47: recipe for target 'all' failed
make: *** [all] Error 2

signature.asc

HW42

unread,
Sep 12, 2015, 8:56:03 PM9/12/15
to Patrick Schleizer, qubes...@googlegroups.com, Patrick Schleizer
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Patrick Schleizer:
> How to build a single Qubes package on plain Debian? I.e. in a
> Qubes Debian template?
>
> I wanted to work on the following: Debian Templates: 'su -' asks
> for password https://github.com/QubesOS/qubes-issues/issues/1128
>
> It would help with debugging, if I could just build inside a Qubes
> Debian template. I.e. outside of Qubes Builder.

Haven't verified if it works for every package but for me
BACKEND_VMM=xen dpkg-buildpackage
always worked.
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJV9Ml9AAoJEOSsySeKZGgWzBUP/ifXlSU5ezz3ACkgydSMIYD7
DrBjS7aCpjPrEtqKfyWhuoe7GGb6VruORIJ46NH+Ai4nllemrV99+zwGzSZNjcxc
acU2R559XS1yljWjD8lkxNOw6tmk+It/cZpwiWpoCgNXo2EFRThaUO0OshUp89Dz
mp6SPBR73ZuggeRW0FhR7oLz/s77+b99Xuu0L32QU+df47zIOAxdtWVfEg8Usffl
HcMlixKp0o0G3FifVi3ckrYO5WIUpsb/4BRB5821DdrpBNodx5j6j3wLOKtCdNlX
rrcszp2cYPGLzCondG04jXWRSCJtU0iaNY/9QXCEAeIeUj2V6F+uecjYSaPhGkRD
PdMFrQNM7ikAgkOCv4SPalBdgmSGa/kr/7olR/9g/I4Xoln1rq+fQ/rF54/pE4Bi
MflimjgSLUcksn0LpnaX8HiYB/Qsrs8E3EWlFmZYHRspKoRQAFCNXko2lFt6Tz3o
yQ1ItKnp3VoLG3oJoCx5Sk4kqlc00fW5YdpD8lIeR4Syta9dB75An3PHIRlPApXX
BcjDnGnMV1TRCT+aaeC4AGLwpXmF9l4EoT+B+gsLNHzH4Qv2O3M3eqTgZOLOvupf
Q4JUPSgKQNQ74w8S+Yur8PDDM33Ncxd+PM5YdqlmAy9HWfJ6pUI5mm89mea+N7Mh
jADawFbVlIFwwx+BnuQi
=h+Bx
-----END PGP SIGNATURE-----

Patrick Schleizer

unread,
Sep 13, 2015, 6:14:35 AM9/13/15
to HW42, Patrick Schleizer, qubes...@googlegroups.com
HW42:
> Haven't verified if it works for every package but for me
> BACKEND_VMM=xen dpkg-buildpackage
> always worked.

That works better. Getting an error about a missing upstream tarball. Is
there a shortcut / canonical way to create one?

Cheers,
Patrick

[1]
BACKEND_VMM=xen dpkg-buildpackage
dpkg-buildpackage: source package qubes-core-agent
dpkg-buildpackage: source version 3.0.16-1
dpkg-buildpackage: source distribution wheezy
dpkg-buildpackage: source changed by Marek Marczykowski-Górecki
<marm...@invisiblethingslab.com>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build qubes-core-agent-linux
dpkg-source: info: using options from
qubes-core-agent-linux/debian/source/options:
--extend-diff-ignore=(^|/)(.git/.*)$ --extend-diff-ignore=(^|/)(deb/.*)$
--extend-diff-ignore=(^|/)(pkgs/.*)$ --extend-diff-ignore=(^|/)(rpm/.*)$
fakeroot debian/rules clean
dh clean --with systemd
dh_testdir
dh_auto_clean
make[1]: Entering directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux'
make -C misc clean
make[2]: Entering directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/misc'
rm -f xenstore-watch *.o *~ *.pyc *.pyo
make[2]: Leaving directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/misc'
make -C qrexec clean
make[2]: Entering directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/qrexec'
rm -f *.o *~ qrexec-agent qrexec-client-vm
make[2]: Leaving directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/qrexec'
make -C qubes-rpc clean
make[2]: Entering directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/qubes-rpc'
rm -f qopen-in-vm qfile-agent qfile-unpacker tar2qfile vm-file-editor *.o *~
make[2]: Leaving directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux/qubes-rpc'
make[1]: Leaving directory
'/home/user/sourcesother/Qubes/qubes-core-agent-linux'
dh_clean
dpkg-source -b qubes-core-agent-linux
dpkg-source: info: using options from
qubes-core-agent-linux/debian/source/options:
--extend-diff-ignore=(^|/)(.git/.*)$ --extend-diff-ignore=(^|/)(deb/.*)$
--extend-diff-ignore=(^|/)(pkgs/.*)$ --extend-diff-ignore=(^|/)(rpm/.*)$
dpkg-source: error: can't build with source format '3.0 (quilt)': no
upstream tarball found at
../qubes-core-agent_3.0.16.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -b qubes-core-agent-linux gave
error exit status 255

Marek Marczykowski-Górecki

unread,
Sep 13, 2015, 6:17:06 AM9/13/15
to Patrick Schleizer, HW42, Patrick Schleizer, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sun, Sep 13, 2015 at 08:32:48AM +0000, Patrick Schleizer wrote:
> HW42:
> > Haven't verified if it works for every package but for me
> > BACKEND_VMM=xen dpkg-buildpackage
> > always worked.
>
> That works better. Getting an error about a missing upstream tarball. Is
> there a shortcut / canonical way to create one?

It is created by tar call in Makefile.builder. You can call it manually
(providing all the missing variables...), or simply skip the source package
(dpkg-buildpackage -b).

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJV9U0aAAoJENuP0xzK19csG7sH/2UnzjRiAxmDIxT+9hs/N765
1/DtE5x0twrgWYM+/J1aHRH/XaoNXS0jOYp4rtpa73oXHz26f+1SBSk0fvr2opjh
/EQeuGFzEHGQn0CSCWaCmF8CIiwx8D/k65qYEM0AknpF14lkZhFqLuzkUvzuEKDY
rV6lymeq+3sra4j5GzxGlkWo2q4UXlGCiHYRmmgo+yVpi6IdLbfYJCCp/9tx9BBk
3ZacA5qD87pSKiCODrrL0b0du1rrMuPxBcV/nsT4DVNWwesnFV11pjAON7UuNgBg
dMjmMMkR69DfVJtIXtYPCXcVNfKejObRorVpa/Joryz1Tp7G+W48ZVArOYoPR0U=
=Nne7
-----END PGP SIGNATURE-----

Patrick Schleizer

unread,
Sep 13, 2015, 12:35:01 PM9/13/15
to Marek Marczykowski-Górecki, HW42, Patrick Schleizer, qubes...@googlegroups.com
Marek Marczykowski-Górecki:
> On Sun, Sep 13, 2015 at 08:32:48AM +0000, Patrick Schleizer wrote:
>> HW42:
>>> Haven't verified if it works for every package but for me
>>> BACKEND_VMM=xen dpkg-buildpackage
>>> always worked.
>
>> That works better. Getting an error about a missing upstream tarball. Is
>> there a shortcut / canonical way to create one?
>
> It is created by tar call in Makefile.builder. You can call it manually
> (providing all the missing variables...), or simply skip the source package
> (dpkg-buildpackage -b).

BACKEND_VMM=xen dpkg-buildpackage -b

Works for me.

Thanks!

Patrick
Reply all
Reply to author
Forward
0 new messages