[poky] [PATCH 1/1] sudo: Add directory "/var/lib" to sudo.inc in the stage of do_install_prepend

Richard Purdie richard.purdie at linuxfoundation.org
Thu May 26 02:57:53 PDT 2011


On Thu, 2011-05-26 at 17:29 +0800, Xiaofeng Yan wrote:
> From: Xiaofeng Yan <xiaofeng.yan at windriver.com>
> 
> Fix bug [YOCTO #1092]
> Own a directory "/var/lib" before do_install because if there isn't this directory during installing, \
> then script "mkinstalldirs" from "sudo package" will create directory "/var/lib/sudo" by recursion with mode "0700" \
> which will cause bug [YOCTO #1092].
> 
> Signed-off-by: Xiaofeng Yan <xiaofeng.yan at windriver.com>
> ---
>  meta/recipes-extended/sudo/sudo.inc |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc
> index 6a04a9c..f2631f2 100644
> --- a/meta/recipes-extended/sudo/sudo.inc
> +++ b/meta/recipes-extended/sudo/sudo.inc
> @@ -23,6 +23,10 @@ do_configure_prepend () {
>  	fi
>  }
>  
> +do_install_prepend (){
> +	mkdir -p ${D}/${localstatedir}/lib
> +}
> +

Please put some comment in the recipe about why this is necessary as
someone could easily look at it and decide it wasn't needed.

Cheers,

Richard




More information about the poky mailing list