All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe/meta-webserver] apache2: fix the race issue of parallel installation
@ 2013-01-25 10:10 Zhenhua Luo
  2013-01-25 18:23 ` Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Zhenhua Luo @ 2013-01-25 10:10 UTC (permalink / raw)
  To: openembedded-devel; +Cc: B29882, b28405, Zhenhua Luo

fix following race issue when do parallel install
| mkdir: cannot create directory `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_networking-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists
...
| mkdir: cannot create directory `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_networking-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists
| make[1]: *** [install-man] Error 1
| make[1]: *** Waiting for unfinished jobs....

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 .../recipes-httpd/apache2/apache2_2.4.3.bb         |    3 ++-
 ...httpd-2.4.3-fix-race-issue-of-dir-install.patch |   21 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 meta-webserver/recipes-httpd/apache2/files/httpd-2.4.3-fix-race-issue-of-dir-install.patch

diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.3.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.3.bb
index 9179bca..a221e1d 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.3.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.3.bb
@@ -5,7 +5,7 @@ HOMEPAGE = "http://httpd.apache.org/"
 DEPENDS = "libtool-native apache2-native openssl expat pcre apr apr-util"
 SECTION = "net"
 LICENSE = "Apache-2.0"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2 \
            file://server-makefile.patch \
@@ -16,6 +16,7 @@ SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2 \
            file://apache-configure_perlbin.patch \
            file://replace-lynx-to-curl-in-apachectl-script.patch \
            file://apache-ssl-ltmain-rpath.patch \
+           file://httpd-2.4.3-fix-race-issue-of-dir-install.patch \
            file://init"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=eff226ae95d0516d6210ed77dfdf2dcc"
diff --git a/meta-webserver/recipes-httpd/apache2/files/httpd-2.4.3-fix-race-issue-of-dir-install.patch b/meta-webserver/recipes-httpd/apache2/files/httpd-2.4.3-fix-race-issue-of-dir-install.patch
new file mode 100644
index 0000000..b948753
--- /dev/null
+++ b/meta-webserver/recipes-httpd/apache2/files/httpd-2.4.3-fix-race-issue-of-dir-install.patch
@@ -0,0 +1,21 @@
+Upstream-Status: Pending
+
+fix following race issue when do parallel install
+| mkdir: cannot create directory `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_networking-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists
+...
+| mkdir: cannot create directory `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_networking-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists
+| make[1]: *** [install-man] Error 1
+| make[1]: *** Waiting for unfinished jobs....
+
+-Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
+--- httpd-2.4.3/build/mkdir.sh.orig	2013-01-25 03:47:21.565255420 -0600
++++ httpd-2.4.3/build/mkdir.sh	2013-01-25 03:46:17.833051230 -0600
+@@ -39,7 +39,7 @@
+         esac
+         if test ! -d "$pathcomp"; then
+             echo "mkdir $pathcomp" 1>&2
+-            mkdir "$pathcomp" || errstatus=$?
++            mkdir -p "$pathcomp" || errstatus=$?
+         fi
+         pathcomp="$pathcomp/"
+     done
-- 
1.7.9.7





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

* Re: [meta-oe/meta-webserver] apache2: fix the race issue of parallel installation
  2013-01-25 10:10 [meta-oe/meta-webserver] apache2: fix the race issue of parallel installation Zhenhua Luo
@ 2013-01-25 18:23 ` Paul Eggleton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2013-01-25 18:23 UTC (permalink / raw)
  To: openembedded-devel; +Cc: B29882, b28405, Zhenhua Luo

On Friday 25 January 2013 18:10:50 Zhenhua Luo wrote:
> fix following race issue when do parallel install
> 
> | mkdir: cannot create directory
> | `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_n
> | etworking-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists
> ...
> 
> | mkdir: cannot create directory
> | `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_n
> | etworking-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists
> | make[1]: *** [install-man] Error 1
> | make[1]: *** Waiting for unfinished jobs....
> 
> Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
> ---
>  .../recipes-httpd/apache2/apache2_2.4.3.bb         |    3 ++-
>  ...httpd-2.4.3-fix-race-issue-of-dir-install.patch |   21
> ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-)
>  create mode 100644
> meta-webserver/recipes-httpd/apache2/files/httpd-2.4.3-fix-race-issue-of-di
> r-install.patch
> 
> diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.3.bb
> b/meta-webserver/recipes-httpd/apache2/apache2_2.4.3.bb index
> 9179bca..a221e1d 100644
> --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.3.bb
> +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.3.bb
> @@ -5,7 +5,7 @@ HOMEPAGE = "http://httpd.apache.org/"
>  DEPENDS = "libtool-native apache2-native openssl expat pcre apr apr-util"
>  SECTION = "net"
>  LICENSE = "Apache-2.0"
> -PR = "r0"
> +PR = "r1"
> 
>  SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2 \
>             file://server-makefile.patch \
> @@ -16,6 +16,7 @@ SRC_URI =
> "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2 \
> file://apache-configure_perlbin.patch \
>             file://replace-lynx-to-curl-in-apachectl-script.patch \
>             file://apache-ssl-ltmain-rpath.patch \
> +           file://httpd-2.4.3-fix-race-issue-of-dir-install.patch \
>             file://init"
> 
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=eff226ae95d0516d6210ed77dfdf2dcc"
> diff --git
> a/meta-webserver/recipes-httpd/apache2/files/httpd-2.4.3-fix-race-issue-of-
> dir-install.patch
> b/meta-webserver/recipes-httpd/apache2/files/httpd-2.4.3-fix-race-issue-of-
> dir-install.patch new file mode 100644
> index 0000000..b948753
> --- /dev/null
> +++
> b/meta-webserver/recipes-httpd/apache2/files/httpd-2.4.3-fix-race-issue-of-
> dir-install.patch @@ -0,0 +1,21 @@
> +Upstream-Status: Pending
> +
> +fix following race issue when do parallel install
> +| mkdir: cannot create directory
> `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_net
> working-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists +...
> +| mkdir: cannot create directory
> `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_net
> working-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists +|
> make[1]: *** [install-man] Error 1
> +| make[1]: *** Waiting for unfinished jobs....
> +
> +-Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
> +--- httpd-2.4.3/build/mkdir.sh.orig	2013-01-25 03:47:21.565255420 -0600
> ++++ httpd-2.4.3/build/mkdir.sh	2013-01-25 03:46:17.833051230 -0600
> +@@ -39,7 +39,7 @@
> +         esac
> +         if test ! -d "$pathcomp"; then
> +             echo "mkdir $pathcomp" 1>&2
> +-            mkdir "$pathcomp" || errstatus=$?
> ++            mkdir -p "$pathcomp" || errstatus=$?
> +         fi
> +         pathcomp="$pathcomp/"
> +     done

Merged, thanks.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



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

end of thread, other threads:[~2013-01-25 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-25 10:10 [meta-oe/meta-webserver] apache2: fix the race issue of parallel installation Zhenhua Luo
2013-01-25 18:23 ` Paul Eggleton

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.