[pkg-lxc-devel] syncing lxcfs from Debian to Ubuntu

Stéphane Graber stgraber at ubuntu.com
Thu Oct 27 16:17:52 UTC 2016


On Thu, Oct 27, 2016 at 09:20:59AM -0500, Serge E. Hallyn wrote:
> Quoting Evgeni Golov (evgeni at debian.org):
> > Ohai,
> > 
> > On Sun, Oct 23, 2016 at 01:51:20PM -0500, Serge E. Hallyn wrote:
> > > > > That being said, we may be able to convince our Debian friends to turn
> > > > > this into:
> > > > > 
> > > > >  systemd | cgroupfs-mount | cgroup-lite
> > > > > 
> > > > > Which should then work fine everywhere and avoid us having to carry that
> > > > > delta for another 3 years.
> > > > 
> > > > But that only would work, if Debian had cgroup-lite, which it does not.
> > > 
> > > Hm?  I thought that '| cgroup-lite' was fine if cgroup-lite did not
> > > exist?
> > > 
> > > (I'm showing my naivité I'm sure)
> > 
> > Not in Debian, at least [1].
> > But jamessan in #debian-devel had a good idea.
> > We could use ${lxcfs:Depends} in the control file and generate that var
> > dynamically in d/rules, checking whether we build for Ubuntu or Debian
> > (using dpkg-vendor / /usr/share/dpkg/vendor.mk).
> > 
> > How does that sound to you?
> 
> It's fine with me (we do that sort of thing in qemu), but when Stéphane
> objected I thought it was about another problem he had with the synced
> packaging.  Stéphane, do you have a problem with just dropping |
> cgroup-lite from the dependencies for lxcfs?  I see we'd have to add
> cgroupfs-mount to trusty-backports, but other than that it should be ok.

So with the ${lxcfs:Depends} trick, we could have:

Debian:

  systemd | cgroupfs-mount

Ubuntu:

  systemd | cgroup-lite | cgroupfs-mount


That will make sure things don't regress on our side.

I will look at killing cgroup-lite in favor of cgroupfs-mount in Ubuntu,
but I'm reasonably sure that we have a few extra bits in our version of
the script so want to make sure we favor it when it exists just so we
don't regress.


My plan is to basically do a diff of cgroup-lite and cgroupfs-mount,
look for whatever extra bits we have, send those to Debian, once Debian
has everything we need, I'll sync the package and turn cgroup-lite into
a transitional package.

Then probably wait for the next Ubuntu release and kill cgroup-lite entirely.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lxc-devel/attachments/20161027/a56fd58d/attachment.sig>


More information about the Pkg-lxc-devel mailing list