From 57ba11d1058bfde60994f465d8df95bb3479ef0b Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Fri, 15 Aug 2014 22:15:02 -0700 Subject: [PATCH] syslinux: fix race issue Fixed do_install failed: cp -r syslinux-6.01/com32/libupload/*.h image/usr/share/syslinux/com32/include/ [snip] rm -rf image/usr/share/syslinux/com32/include [snip] cp: cannot create regular file `image/usr/share/syslinux/com32/include/serial.h': No such file or directory The cp is happened in the "libupload" dir, while "rm -fr" is happend in "lib" dir, let "libupload" depend "lib" will fix the problem. (From OE-Core rev: 7df3b098278b6d5eb418af9dfe7fd2d3b3ea607c) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- .../files/syslinux-libupload-depend-lib.patch | 34 ++++++++++++++++++++++ meta/recipes-devtools/syslinux/syslinux_6.01.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-devtools/syslinux/files/syslinux-libupload-depend-lib.patch diff --git a/meta/recipes-devtools/syslinux/files/syslinux-libupload-depend-lib.patch b/meta/recipes-devtools/syslinux/files/syslinux-libupload-depend-lib.patch new file mode 100644 index 0000000..c0714b5 --- /dev/null +++ b/meta/recipes-devtools/syslinux/files/syslinux-libupload-depend-lib.patch @@ -0,0 +1,34 @@ +From 490fc3bbd65c2c252c1fdf3da0fac9898aa9eea6 Mon Sep 17 00:00:00 2001 +From: Robert Yang +Date: Fri, 15 Aug 2014 21:09:16 -0700 +Subject: [PATCH] com32/Makefile: fix parallel issue + +Fixed: +cp -r syslinux-6.01/com32/libupload/*.h image/usr/share/syslinux/com32/include/ +[snip] +rm -rf image/usr/share/syslinux/com32/include +[snip] +cp: cannot create regular file `image/usr/share/syslinux/com32/include/serial.h': No such file or directory + +The cp is happened in the "libupload" dir, while "rm -fr" is happend in +"lib" dir, let "libupload" depend "lib" will fix the problem. + +Upstream-Status: Pending + +Signed-off-by: Robert Yang +--- + com32/Makefile | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/com32/Makefile b/com32/Makefile +index 9a1721b..f172db2 100644 +--- a/com32/Makefile ++++ b/com32/Makefile +@@ -21,3 +21,4 @@ rosh: lib libutil + samples: libutil elflink/ldlinux + sysdump: libupload gpllib + gpllib: lib ++libupload: lib +-- +1.7.9.5 + diff --git a/meta/recipes-devtools/syslinux/syslinux_6.01.bb b/meta/recipes-devtools/syslinux/syslinux_6.01.bb index 2377cc0..7885390 100644 --- a/meta/recipes-devtools/syslinux/syslinux_6.01.bb +++ b/meta/recipes-devtools/syslinux/syslinux_6.01.bb @@ -15,6 +15,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/boot/syslinux/6.xx/syslinux-${PV}.tar file://0004-pxe-use-bios_fbm-and-real_base_mem-to-calculate-free.patch \ file://syslinux-fix-parallel-building-issue.patch \ file://isohybrid-fix-overflow-on-32-bit-system.patch \ + file://syslinux-libupload-depend-lib.patch \ " SRC_URI[md5sum] = "6945ee89e29119d459baed4937bbc534" -- 2.7.4