Comment 2 for bug 1217730

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1217730] [NEW] lxc-create help text error

Hi,

thanks for submitting this bug. lxc-create, upstream, has been
converted from a script to a c file (lxc_create.c). We will
shortly be merging upstream lxc back into saucy, however that
won't go into raring (which you're using) - so this means you have
a choice :)

You were right to look at lxc-create.in. I'll be happy to guide you
through the process, but I'm not sure what you mean by "don't know how
to go about making them". I suspect you're asking about how the
package is created from the source, and specifically how lxc-create
is created from lxc-create.in? lxc-create is generated by autoconf,
which processes lxc-create.in in order to expand a few configurable
variables (like @DATADIR@). One way to download the source for
saucy (not sure which way you did it) is

 pull-lp-source lxc
 cd lxc-0.9.0

The package is in 'quilt 3.0' format, which means changes to any
source need to be done using patches under debian/patches. The
easiest way for you to do this would be to first create the new
(empty) patch using

 quilt new 0015-fix-lxc-create-help-text

then edit lxc-create.in using the command

 quilt edit src/lxc/lxc-create.in

After making and saving your changes, you can update the patch
using

 quilt refresh

Now debian/patches/0015-fix-lxc-create-help-text contains your patch.
You can simply attach that file to this bug if you like. If you want
to build the package so as to test it, you can install all the lxc
build dependencies using

 sudo apt-get build-dep lxc

then build the package using

 debian/rules build && fakeroot debian/rules binary

This will generate .deb files which you can install to test the package.

  status: confirmed
  importance: low