diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-06-02 12:51:36 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-06-05 06:52:40 -0700 |
commit | 387fc78ae86677b01052733b819860597f1fc6fb (patch) | |
tree | e8ca412df42918a29c712733dc65cef986108ca7 /recipes/grep/grep-2.6.3 | |
parent | c9f7d8d8f62e3c4b2e30332401f2c177a1436ad0 (diff) |
grep-2.6.3: Add recipe.
* Fix build for uclibc as well.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/grep/grep-2.6.3')
-rw-r--r-- | recipes/grep/grep-2.6.3/uclibc-fix.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes/grep/grep-2.6.3/uclibc-fix.patch b/recipes/grep/grep-2.6.3/uclibc-fix.patch new file mode 100644 index 0000000000..2e1c584e5a --- /dev/null +++ b/recipes/grep/grep-2.6.3/uclibc-fix.patch @@ -0,0 +1,50 @@ +Fix to use mempcpy instead of __mempcpy. This is needed for uclibc which +doesn't define __mempcpy only mempcpy. Since both uclibc and glibc have +mempcpy we'll just use that instead. + +Index: grep-2.6.3/lib/getopt.c +=================================================================== +--- grep-2.6.3.orig/lib/getopt.c 2010-03-21 00:34:02.000000000 -0700 ++++ grep-2.6.3/lib/getopt.c 2010-05-22 21:37:11.352740539 -0700 +@@ -41,6 +41,10 @@ + # include <wchar.h> + #endif + ++#ifdef __UCLIBC__ ++#define __mempcpy mempcpy ++#endif ++ + /* This version of `getopt' appears to the caller like standard Unix `getopt' + but it behaves differently for the user, since it allows the user + to intersperse the options with the other arguments. +Index: grep-2.6.3/gnulib-tests/setenv.c +=================================================================== +--- grep-2.6.3.orig/gnulib-tests/setenv.c 2010-05-22 21:37:53.655168151 -0700 ++++ grep-2.6.3/gnulib-tests/setenv.c 2010-05-22 21:38:42.792745476 -0700 +@@ -68,6 +68,10 @@ __libc_lock_define_initialized (static, + # define tsearch __tsearch + #endif + ++#ifdef __UCLIBC__ ++#define __mempcpy mempcpy ++#endif ++ + /* In the GNU C library implementation we try to be more clever and + allow arbitrarily many changes of the environment given that the used + values are from a small set. Outside glibc this will eat up all +Index: grep-2.6.3/lib/regexec.c +=================================================================== +--- grep-2.6.3.orig/lib/regexec.c 2010-05-22 21:36:02.655154671 -0700 ++++ grep-2.6.3/lib/regexec.c 2010-05-22 21:37:26.212743273 -0700 +@@ -22,6 +22,11 @@ + + #include "verify.h" + #include "intprops.h" ++ ++#ifdef __UCLIBC__ ++#define __mempcpy mempcpy ++#endif ++ + static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags, + Idx n) internal_function; + static void match_ctx_clean (re_match_context_t *mctx) internal_function; |