git revert da5ee8fb0Quoting Unman <un...@thirdeyesecurity.org>:

On Sat, Dec 17, 2016 at 01:09:38PM -0600, j...@vfemail.net wrote:
hi.
i am trying to build an ubuntu14 template:

From the doc: 'Ubuntu 14.4 LTS (Trusty) can be built with little
effort.'
So i assume it should work.

When executing `make qubes-vm` i get following error:

Ign http://ppa.launchpad.net trusty/main Translation-en
Reading package lists...
# Parse debian/control for Build-Depends and install
/home/user/qubes-builder/qubes-src/builder-debian//scripts/debian-parser
control --build-depends

/home/user/qubes-builder/chroot-trusty//home/user/qubes-src/vmm-xen/debian-vm/debian/control
|\
    xargs sudo chroot /home/user/qubes-builder/chroot-trusty
apt-get 
install -y
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libsystemd-dev
E: Unable to locate package libsystemd-dev
/home/user/qubes-builder/qubes-src/builder-debian/Makefile.qubuntu:167:
recipe for target 'dist-build-dep' failed
make[2]: *** [dist-build-dep] Error 123
Makefile.generic:139: recipe for target 'packages' failed
make[1]: *** [packages] Error 1
Makefile:209: recipe for target 'vmm-xen-vm' failed
make: *** [vmm-xen-vm] Error 1

what can i do to fix this?

-joe
 

The error is in building vmm-xen.
I see there was a patch back in July that added libsystemd-dev under
Build-Depends. Clearly this isn't going to work under Trusty as that
package isn't available.
You could try removing those lines from debian/control and seeing if
vmm-xen-vm builds. I'm pretty sure it wont, but don't have time to test
that.
I'll have a look shortly to get Trusty working again.

It isn't yet in the docs but you could also try a 16.4 build. Feedback
would be useful.
unman

i can build ubuntu16, but need 14, since this sadly is the target platform
in one of the projects i am working in.
currently i use an ubuntu14 hvm and ssh -X, but this is annoying.

Some time ago the doc contained something about problems when building
ubuntu 14, but this section was removed.
Hence i assumed this problem was fixed.

i tried removing libsystemd.
i removed the lines :
 * qubes-src/vmm-xen/debian-vm/debian/control:28:    libsystemd-dev,
 * qubes-src/vmm-xen/debian-vm/debian/control:29:   
libsystemd-dev:amd64,

and executed:
 * make clean
 * make qubes-vm

this failed, since some commands used "--enable-systemd
--with-systemd=/lib/systemd/system".

then i tried reverting the commit:
 * git revert da5ee8fb0
and did some merging (mostly i had to guess, since i don't know what)
when building i got a different error:

-> Building core-qubesdb (debian) for trusty vm (logfile:
build-logs/core-qubesdb-vm-trusty.log)
--> build failed!
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd' found
Package libsystemd-daemon was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd-daemon.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd-daemon' found
cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -I../include -I. -g -Wall -Werror -pie -fPIC -O2
`pkg-config --cflags libsystemd || pkg-config --cflags libsystemd-daemon`
`pkg-config --cflags vchan-xen` -DBACKEND_VMM_xen   -c -o db-daemon.o
db-daemon.c
Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd' found
Package libsystemd-daemon was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd-daemon.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd-daemon' found
db-daemon.c:32:31: fatal error: systemd/sd-daemon.h: No such file or
directory
 #include <systemd/sd-daemon.h>
                               ^
compilation terminated.
make[3]: *** [db-daemon.o] Error 1
make[3]: Leaving directory `/home/user/qubes-src/core-qubesdb/daemon'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/user/qubes-src/core-qubesdb'
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/home/user/qubes-src/core-qubesdb'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
/home/user/qubes-builder/qubes-src/builder-debian/Makefile.qubuntu:192:
recipe for target 'dist-package' failed
make[2]: *** [dist-package] Error 2
Makefile.generic:139: recipe for target 'packages' failed
make[1]: *** [packages] Error 1
Makefile:209: recipe for target 'core-qubesdb-vm' failed
make: *** [core-qubesdb-vm] Error 1

i guess i did forget some stuff, or other commits also use systemd (i guess
this will be the case for some of the 31 commits)

when looking at the old issues from the ml (
https://groups.google.com/d/msg/qubes-users/w0uZNr8nno8/n1fe6dLtBQAJ ):
Achim Patzner wrote:
I tried that last Sunday but it didn't work; it really needs some
functions from libsystemd.

so it may be impossible to build the template without systemd.
maybe it is possible to build ubuntu 14 with systemd (get the sources and
build it/ use a package from a repo)


-------------------------------------------------

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!
--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20161218051914.Horde.JndqzxHjVtLpAVCsA88mIA4%40www.vfemail.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to