All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] sudo: Add directory "/var/lib" during do_install_prepend
@ 2011-05-26  9:29 Xiaofeng Yan
  2011-05-26  9:29 ` [PATCH 1/1] sudo: Add directory "/var/lib" to sudo.inc in the stage of do_install_prepend Xiaofeng Yan
  0 siblings, 1 reply; 3+ messages in thread
From: Xiaofeng Yan @ 2011-05-26  9:29 UTC (permalink / raw)
  To: poky

From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

Hi Saul & Mark,

I submit this patch to fix [YOCTO #1092].
LSB Test Suite check access permission of directory "/var/lib". The current access permission is "0700".
This is because:

$(SHELL) $(srcdir)/mkinstalldirs -m 0700 $(DESTDIR)$(timedir) 

and the timedir=/var/lib/sudo

but if /var/lib doesn't exist, the mkinstalldirs would create it and set the
mode to 0700 recursively, so all of the /var, /var/lib and /var/lib/sudo would
be set to 0700, but what sudo needs is only set /var/lib/sudo to 0700.

So LSB Test Suite recognizes it as a bug. Other images including sudo could have no this problem because after installing sudo package other package operate on directory "/var/lib" but for lsb image sudo package is the last package which operate on directory "/var/lib" 


Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: xiaofeng/sudo
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/sudo

Thanks,
    Xiaofeng Yan <xiaofeng.yan@windriver.com>
---


Xiaofeng Yan (1):
  sudo: Add directory "/var/lib" to sudo.inc in the stage of
    do_install_prepend

 meta/recipes-extended/sudo/sudo.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] sudo: Add directory "/var/lib" to sudo.inc in the stage of do_install_prepend
  2011-05-26  9:29 [PATCH 0/1] sudo: Add directory "/var/lib" during do_install_prepend Xiaofeng Yan
@ 2011-05-26  9:29 ` Xiaofeng Yan
  2011-05-26  9:57   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Xiaofeng Yan @ 2011-05-26  9:29 UTC (permalink / raw)
  To: poky

From: Xiaofeng Yan <xiaofeng.yan@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@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
+}
+
 pkg_postinst_${PN} () {
 	if [ "x$D" != "x" ]; then
 		exit 1
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] sudo: Add directory "/var/lib" to sudo.inc in the stage of do_install_prepend
  2011-05-26  9:29 ` [PATCH 1/1] sudo: Add directory "/var/lib" to sudo.inc in the stage of do_install_prepend Xiaofeng Yan
@ 2011-05-26  9:57   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-05-26  9:57 UTC (permalink / raw)
  To: Xiaofeng Yan; +Cc: poky

On Thu, 2011-05-26 at 17:29 +0800, Xiaofeng Yan wrote:
> From: Xiaofeng Yan <xiaofeng.yan@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@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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-26  9:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26  9:29 [PATCH 0/1] sudo: Add directory "/var/lib" during do_install_prepend Xiaofeng Yan
2011-05-26  9:29 ` [PATCH 1/1] sudo: Add directory "/var/lib" to sudo.inc in the stage of do_install_prepend Xiaofeng Yan
2011-05-26  9:57   ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.