diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-02-25 17:44:03 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-25 17:53:59 +0000 |
commit | f66f4b0c8e9ad080b280240b818d6d0518de6637 (patch) | |
tree | 85dec1ac64c307dc044103a0defb8892dc2a6c49 | |
parent | 9a2717faad7fa1593234683b5c80228f4a10f82b (diff) | |
download | poky-f66f4b0c8e9ad080b280240b818d6d0518de6637.tar.gz |
grub: exclude .pc from POTFILES.in (fix build on CentOS 5.8)
Exclude the .pc from po/POTFILES.in since quilt uses "patch --backup",
which will create the backup file under .pc, this may cause unexpected
errors, for example, on CentOS 5.x, if the backup file is null
(newfile), it's mode will be 000, then we will get errors when xgettext
try to read it.
(From OE-Core rev: fe037904ce8a90f428645c19587913c7b90652ef)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-bsp/grub/grub/autogen.sh-exclude-pc.patch | 34 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/grub_git.bb | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/grub/autogen.sh-exclude-pc.patch b/meta/recipes-bsp/grub/grub/autogen.sh-exclude-pc.patch new file mode 100644 index 0000000000..fc5aa4e313 --- /dev/null +++ b/meta/recipes-bsp/grub/grub/autogen.sh-exclude-pc.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From ff8f68cc48fd3c30d55e1d570d51f2e0952c968e Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Sat, 25 Jan 2014 23:49:44 -0500 | ||
4 | Subject: [PATCH] autogen.sh: exclude .pc from po/POTFILES.in | ||
5 | |||
6 | Exclude the .pc from po/POTFILES.in since quilt uses "patch --backup", | ||
7 | which will create the backup file under .pc, this may cause unexpected | ||
8 | errors, for example, on CentOS 5.x, if the backup file is null | ||
9 | (newfile), it's mode will be 000, then we will get errors when xgettext | ||
10 | try to read it. | ||
11 | |||
12 | Upstream-Status: Inappropriate [OE specific] | ||
13 | |||
14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
15 | --- | ||
16 | autogen.sh | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/autogen.sh b/autogen.sh | ||
20 | index 7424428..843619e 100755 | ||
21 | --- a/autogen.sh | ||
22 | +++ b/autogen.sh | ||
23 | @@ -5,7 +5,7 @@ set -e | ||
24 | export LC_COLLATE=C | ||
25 | unset LC_ALL | ||
26 | |||
27 | -find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' ! -ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c' ! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath './grub-core/lib/libgcrypt/src/secmem.c' ! -ipath './util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' |sort > po/POTFILES.in | ||
28 | +find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' ! -ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c' ! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath './grub-core/lib/libgcrypt/src/secmem.c' ! -ipath './util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' ! -path './.pc/*' | sort > po/POTFILES.in | ||
29 | find util -iname '*.in' ! -name Makefile.in |sort > po/POTFILES-shell.in | ||
30 | |||
31 | echo "Importing unicode..." | ||
32 | -- | ||
33 | 1.7.10.4 | ||
34 | |||
diff --git a/meta/recipes-bsp/grub/grub_git.bb b/meta/recipes-bsp/grub/grub_git.bb index 1796e7f660..82a25c9a8d 100644 --- a/meta/recipes-bsp/grub/grub_git.bb +++ b/meta/recipes-bsp/grub/grub_git.bb | |||
@@ -20,6 +20,7 @@ PV = "2.00+${SRCPV}" | |||
20 | SRCREV = "0776112c5311196889a15058a3b1be4c81ba5e05" | 20 | SRCREV = "0776112c5311196889a15058a3b1be4c81ba5e05" |
21 | SRC_URI = "git://git.savannah.gnu.org/grub.git \ | 21 | SRC_URI = "git://git.savannah.gnu.org/grub.git \ |
22 | file://40_custom \ | 22 | file://40_custom \ |
23 | file://autogen.sh-exclude-pc.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | S = "${WORKDIR}/git" | 26 | S = "${WORKDIR}/git" |