diff options
Diffstat (limited to 'recipes-support/gnupg/gnupg-1.4.7/fix-ustar-check-issue.patch')
-rw-r--r-- | recipes-support/gnupg/gnupg-1.4.7/fix-ustar-check-issue.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-support/gnupg/gnupg-1.4.7/fix-ustar-check-issue.patch b/recipes-support/gnupg/gnupg-1.4.7/fix-ustar-check-issue.patch new file mode 100644 index 0000000..eb4cc9f --- /dev/null +++ b/recipes-support/gnupg/gnupg-1.4.7/fix-ustar-check-issue.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Remove the code for ustar format detection because it is not applicable | ||
2 | for cross-complie platform. | ||
3 | |||
4 | Upstream Status: Inappropriate [embedded specific] | ||
5 | |||
6 | Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> | ||
7 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
8 | --- | ||
9 | m4/tar-ustar.m4 | 13 +++++++++---- | ||
10 | 1 file changed, 9 insertions(+), 4 deletions(-) | ||
11 | |||
12 | diff --git a/m4/tar-ustar.m4 b/m4/tar-ustar.m4 | ||
13 | index 4ae9e63..f6e57c2 100644 | ||
14 | --- a/m4/tar-ustar.m4 | ||
15 | +++ b/m4/tar-ustar.m4 | ||
16 | @@ -26,10 +26,15 @@ AC_DEFUN([GNUPG_CHECK_USTAR], | ||
17 | |||
18 | if test x$_mytar != x ; then | ||
19 | AC_MSG_CHECKING([whether $_mytar speaks USTAR]) | ||
20 | - echo hithere > conftest.txt | ||
21 | - $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null | ||
22 | - _tar_bad=$? | ||
23 | - rm conftest.txt | ||
24 | + | ||
25 | + # Here, we ignore the check code, because it isn't indeed applicable for | ||
26 | + # cross-compile platform. | ||
27 | + # Now our tar support ustar, so we say directly yes, but once the tar is changed, | ||
28 | + # you should check whether it suppport ustar, and please reference the follow command: | ||
29 | + # echo hithere > conftest.txt | ||
30 | + # tar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null | ||
31 | + | ||
32 | + _tar_bad=0 | ||
33 | |||
34 | if test x$_tar_bad = x0 ; then | ||
35 | AC_MSG_RESULT([yes]) | ||
36 | -- | ||
37 | 1.9.1 | ||
38 | |||