Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] util-linux: fix parallel build issure for PATHFILES
@ 2014-05-08  8:31 Chen Qi
  2014-05-08  8:31 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2014-05-08  8:31 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 337798fa5c0a1d1e745a143f6a9f398b07f0628f:

  python3/gcc/autoconf: Fix Upstream-Status in some patches I authored (2014-05-07 15:14:29 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib ChenQi/util-linux-PATHFILES
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/util-linux-PATHFILES

Chen Qi (1):
  util-linux: fix parallel build issure for PATHFILES

 ...ensure-the-existence-of-directory-for-PAT.patch |   34 ++++++++++++++++++++
 meta/recipes-core/util-linux/util-linux_2.24.2.bb  |    1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-core/util-linux/util-linux/util-linux-ensure-the-existence-of-directory-for-PAT.patch

-- 
1.7.9.5



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

* [PATCH 1/1] util-linux: fix parallel build issure for PATHFILES
  2014-05-08  8:31 [PATCH 0/1] util-linux: fix parallel build issure for PATHFILES Chen Qi
@ 2014-05-08  8:31 ` Chen Qi
  0 siblings, 0 replies; 2+ messages in thread
From: Chen Qi @ 2014-05-08  8:31 UTC (permalink / raw)
  To: openembedded-core

When compiling util-linux, it's possible to encounter the following error.

     /bin/sh: line 2:: misc-utils/uuidd.8.tmp: No such file or directory

This is because that the misc-utils directory doesn't exist when trying to
write to misc-utils/uuidd.8.tmp.

When generating misc-utils/uuidd.8 (or anything in PATHFILES), its directory
may not have been created yet. So we need to ensure the existence of the
directory to avoid the compilation error.

[YOCTO #6292]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 ...ensure-the-existence-of-directory-for-PAT.patch |   34 ++++++++++++++++++++
 meta/recipes-core/util-linux/util-linux_2.24.2.bb  |    1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-core/util-linux/util-linux/util-linux-ensure-the-existence-of-directory-for-PAT.patch

diff --git a/meta/recipes-core/util-linux/util-linux/util-linux-ensure-the-existence-of-directory-for-PAT.patch b/meta/recipes-core/util-linux/util-linux/util-linux-ensure-the-existence-of-directory-for-PAT.patch
new file mode 100644
index 0000000..8f26451
--- /dev/null
+++ b/meta/recipes-core/util-linux/util-linux/util-linux-ensure-the-existence-of-directory-for-PAT.patch
@@ -0,0 +1,34 @@
+Upstream-Status: Pending
+
+util-linux: ensure the existence of directory for PATHFILES
+
+When compiling util-linux, it's possible to encounter the following error.
+     /bin/sh: line 2:: misc-utils/uuidd.8.tmp: No such file or directory
+
+This is because that the misc-utils directory doesn't exist when trying to write to
+misc-utils/uuidd.8.tmp.
+
+When generating misc-utils/uuidd.8 (or anything in PATHFILES), its directory
+may not have been created yet. So we need to ensure the existence of the directory
+to avoid the compilation error.
+
+Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
+---
+ Makefile.am |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index 17f4c33..ca3dc0f 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -123,6 +123,7 @@ EXTRA_DIST += $(PATHFILES:=.in)
+ 
+ $(PATHFILES): Makefile
+ 	@ rm -f $@ $@.tmp
++	@ mkdir -p `dirname $@`
+ 	$(AM_V_GEN) srcdir=''; \
+ 		test -f ./$@.in || srcdir=$(srcdir)/; \
+ 		$(edit_cmd) $${srcdir}$@.in >$@.tmp
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-core/util-linux/util-linux_2.24.2.bb b/meta/recipes-core/util-linux/util-linux_2.24.2.bb
index a2d7430..ed753e4 100644
--- a/meta/recipes-core/util-linux/util-linux_2.24.2.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.24.2.bb
@@ -15,6 +15,7 @@ SRC_URI += "file://util-linux-ng-replace-siginterrupt.patch \
             file://configure-sbindir.patch \
             file://fix-configure.patch \
             file://fix-parallel-build.patch \
+            file://util-linux-ensure-the-existence-of-directory-for-PAT.patch \
             ${OLDHOST} \
 "
 
-- 
1.7.9.5



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

end of thread, other threads:[~2014-05-08  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-08  8:31 [PATCH 0/1] util-linux: fix parallel build issure for PATHFILES Chen Qi
2014-05-08  8:31 ` [PATCH 1/1] " Chen Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox