On 12-09-11 05:06 PM, Dwight Engen wrote:
> On Tue, 11 Sep 2012 14:30:22 -0400
> Dwight Engen <dwight.en...@oracle.com> wrote:
> 
>> On Mon, 10 Sep 2012 13:53:50 -0400
>> Stéphane Graber <stgra...@ubuntu.com> wrote:
>>
>> [...]
>>>> The reason I changed them to expand was so the docs would be right
>>>> (they had SUBST paths with ${var} still in them) but obviously I
>>>> don't want to break code just to make the docs right :)
>>>
>>> I'm not actually expending breakage but I'm expecting some dead
>>> code. For example @LXCPATH@ is used in most scripts using some
>>> workarounds as the value wasn't expanded, like:
>>> libdir=@LIBDIR@
>>> libexecdir=@LIBEXECDIR@
>>> localstatedir=@LOCALSTATEDIR@
>>>
>>> Once we apply your change, we'd have to check for such dead code and
>>> clean it up.
> 
> fix expansion of LXCPATH,LXCROOTFSMOUNT,LXCTEMPLATEDIR
> 
> These variables are not expanded correctly in doc/lxc-create.sgml.in 
> and a workaround is in place to ensure ${localstatedir}, and ${datadir}
> are set in the various shell scripts that use it. There is no workaround
> to ensure ${datadir} is set in src/lxc/lxc-create.in, nor is
> ${localstatedir} set in templates/lxc-altlinux.in so I think that these
> are currently broken. 
> 
> Using AS_AC_EXPAND instead of AC_SUBST fixes these problems and removes
> the need for the workarounds. In addition the lxc-start-ephemeral.in
> script can be autoconf'ed instead of sed'ed by the makefile.
> 
> Signed-off-by: Dwight Engen <dwight.en...@oracle.com>
> ---
>  configure.ac           |    7 ++++---
>  src/lxc/Makefile.am    |    4 ----
>  src/lxc/lxc-clone.in   |    1 -
>  src/lxc/lxc-create.in  |    2 --
>  src/lxc/lxc-destroy.in |    1 -
>  src/lxc/lxc-ls.in      |    1 -
>  src/lxc/lxc-setcap.in  |    3 ---
>  src/lxc/lxc-setuid.in  |    3 ---
>  8 files changed, 4 insertions(+), 18 deletions(-)

Thanks.

Did a quick testbuild and checked a few files, the result looks good and
will simplify things quite a bit.

Pushed to the staging branch.


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to