diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-09-17 00:53:06 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-21 15:20:03 +0100 |
commit | 9bfec97d5051992d2be3cbeecf800efc87a415f3 (patch) | |
tree | 1067d5dc8724d517183a6aae4d696735b12a6470 | |
parent | effc519e5cdc43d6c9411d13ab236c67c74f0ef5 (diff) | |
download | openembedded-core-contrib-9bfec97d5051992d2be3cbeecf800efc87a415f3.tar.gz |
ccache: fix file name too long
The all_cppflags change paths to filename which cause file name too long
error when the path is longer than NAME_MAX (usually 255). Strip srcdir
to fix the problem.
[YOCTO #8313]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/recipes-devtools/ccache/ccache_3.2.3.bb | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch | 32 |
2 files changed, 35 insertions, 1 deletions
diff --git a/meta/recipes-devtools/ccache/ccache_3.2.3.bb b/meta/recipes-devtools/ccache/ccache_3.2.3.bb index 357df750b85..97f557a9b6c 100644 --- a/meta/recipes-devtools/ccache/ccache_3.2.3.bb +++ b/meta/recipes-devtools/ccache/ccache_3.2.3.bb @@ -5,4 +5,6 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b3c337e7664559a789d9f7a93e5283c1" SRCREV = "4cad46e8ee0053144bb00919f0dadd20c1f87013" -SRC_URI += "file://0001-Fix-regression-in-recent-change-related-to-zlib-in-n.patch" +SRC_URI += "file://0001-Fix-regression-in-recent-change-related-to-zlib-in-n.patch \ + file://0002-dev.mk.in-fix-file-name-too-long.patch \ +" diff --git a/meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch b/meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch new file mode 100644 index 00000000000..837cfadf6a6 --- /dev/null +++ b/meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch @@ -0,0 +1,32 @@ +From 71bd0082c6edcf73f054a8a4fa34bd8dd4de7cd7 Mon Sep 17 00:00:00 2001 +From: Robert Yang <liezhi.yang@windriver.com> +Date: Wed, 16 Sep 2015 19:45:40 -0700 +Subject: [PATCH] dev.mk.in: fix file name too long + +The all_cppflags change paths to filename which cause file name too long +error when the path is longer than NAME_MAX (usually 255). Strip srcdir +to fix the problem. + +Upstream-Status: Pending + +Signed-off-by: Robert Yang <liezhi.yang@windriver.com> +--- + dev.mk.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dev.mk.in b/dev.mk.in +index 1261ad3..ec55ac4 100644 +--- a/dev.mk.in ++++ b/dev.mk.in +@@ -1,7 +1,7 @@ + # GNU make syntax reigns in this file. + + all_cflags += -Werror +-all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$<)).d ++all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d + + ASCIIDOC = asciidoc + GPERF = gperf +-- +1.7.9.5 + |