Package: lxc
Version: 0.8.0~rc1-8+deb7u2
Severity: wishlist
Dear Maintainer,
LXC 1.0 is required to properly support Jessie containers with systemd
on Wheezy hosts. (It alone is not sufficient, but without it it will
definitely not work.) I've attached the patch required to make the
package compile with just wheezy and wheezy-backports in sources.list
(wheezy-backports is required for libseccomp-dev, which is not part of
wheezy). Please consider uploading that applied to the version in
testing to wheezy-backports as 1.0.6-6~bpo70+1.
The changes against testing are:
- drop native systemd service file on the host (systemd in wheezy is
not well-integrated that it's best to just stick with the init
script); also drop dh_systemd (not available in wheezy) at the same
time
- drop libselinux-dev build-dependency (LXC in wheezy wasn't compiled
with support for that and I couldn't manage to compile LXC 1.0
against wheezy's libselinux-dev)
I've tested this locally on a Wheezy box for quite some time and it
works quite well (better than LXC 0.8 in fact).
Thank you for considering this!
Christian
diff -Nru lxc-1.0.6/debian/control lxc-1.0.6/debian/control
--- lxc-1.0.6/debian/control 2015-01-05 19:25:03.000000000 +0100
+++ lxc-1.0.6/debian/control 2015-04-11 18:02:50.000000000 +0200
@@ -5,7 +5,6 @@
Build-Depends:
debhelper (>= 9),
dh-autoreconf,
- dh-systemd,
doxygen,
autotools-dev,
docbook2x,
@@ -14,7 +13,6 @@
liblua5.2-dev,
libcap-dev,
libseccomp-dev [amd64 armhf i386],
- libselinux-dev,
linux-libc-dev,
pkg-config,
python3-dev,
diff -Nru lxc-1.0.6/debian/lxc.install lxc-1.0.6/debian/lxc.install
--- lxc-1.0.6/debian/lxc.install 2015-01-05 19:25:03.000000000 +0100
+++ lxc-1.0.6/debian/lxc.install 2015-04-11 18:02:50.000000000 +0200
@@ -1,5 +1,4 @@
etc
-lib
usr/bin
usr/lib/*/*.so.*
usr/lib/*/lua
diff -Nru lxc-1.0.6/debian/rules lxc-1.0.6/debian/rules
--- lxc-1.0.6/debian/rules 2015-01-05 19:25:03.000000000 +0100
+++ lxc-1.0.6/debian/rules 2015-04-11 18:02:50.000000000 +0200
@@ -5,7 +5,7 @@
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
- dh ${@} --parallel --with autoreconf,autotools_dev,python3,systemd
+ dh ${@} --parallel --with autoreconf,autotools_dev,python3
override_dh_auto_configure:
dh_auto_configure -- \
@@ -13,7 +13,7 @@
--enable-doc \
--enable-api-docs \
--enable-apparmor \
- --enable-selinux \
+ --disable-selinux \
--disable-cgmanager \
--enable-capabilities \
--enable-examples \
@@ -24,10 +24,10 @@
--enable-tests \
--enable-configpath-log \
--with-distro=debian \
- --with-init-script=sysvinit,systemd
+ --with-init-script=sysvinit
override_dh_auto_install:
- dh_auto_install -- SYSTEMD_UNIT_DIR=/lib/systemd/system
+ dh_auto_install
# removing unused files
rm -rf debian/tmp/usr/include