diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/util-linux/files/0001-build-sys-create-parent-directory-for-PATHFILES.patch b/sdk_container/src/third_party/coreos-overlay/sys-apps/util-linux/files/0001-build-sys-create-parent-directory-for-PATHFILES.patch new file mode 100644 index 0000000000..b5249aa008 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/util-linux/files/0001-build-sys-create-parent-directory-for-PATHFILES.patch @@ -0,0 +1,36 @@ +From 652e0379c181b3e7a477f9a67e1ada0988421513 Mon Sep 17 00:00:00 2001 +From: Michael Marineau +Date: Tue, 2 Sep 2014 20:25:39 -0700 +Subject: [PATCH] build-sys: create parent directory for $(PATHFILES) + +When building outside the source tree there is nothing to guarantee the +target directory exists before writing to it. Most of the time this just +happens to work because something else creates the directory but not +always. For example: + + $ mkdir build + $ cd build + $ ../configure --disable-dependency-tracking + $ make libuuid/uuid.pc + GEN libuuid/uuid.pc + /bin/sh: line 2: libuuid/uuid.pc.tmp: No such file or directory + make: *** [libuuid/uuid.pc] Error 1 +--- + Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile.am b/Makefile.am +index 79b5aea..08269e2 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -128,6 +128,7 @@ EXTRA_DIST += $(PATHFILES:=.in) + + $(PATHFILES): Makefile + @ rm -f $@ $@.tmp ++ $(AM_V_at) test -d $(dir $@) || mkdir -p $(dir $@) + $(AM_V_GEN) srcdir=''; \ + test -f ./$@.in || srcdir=$(srcdir)/; \ + $(edit_cmd) $${srcdir}$@.in >$@.tmp +-- +1.8.5.5 + diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/util-linux/util-linux-2.24.2.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-apps/util-linux/util-linux-2.24.2.ebuild index 50d767042c..c5b6db5706 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-apps/util-linux/util-linux-2.24.2.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/util-linux/util-linux-2.24.2.ebuild @@ -61,6 +61,7 @@ pkg_setup() { } src_prepare() { + epatch "${FILESDIR}/0001-build-sys-create-parent-directory-for-PATHFILES.patch" epatch "${FILESDIR}/0002-lsblk-add-PARTTYPE-tag.patch" if [[ ${PV} == 9999 ]] ; then