From: Khem Raj Date: Thu, 3 Jun 2010 02:45:13 +0000 (-0700) Subject: cvs-1.12.9: uclibc does not export __mempcpy so use mempcpy X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55b15cba4bb1615ff195a0c7332319de953802f2;p=openembedded.git cvs-1.12.9: uclibc does not export __mempcpy so use mempcpy Signed-off-by: Khem Raj --- diff --git a/recipes/cvs/cvs-1.12.9/fix-__mempcpy.patch b/recipes/cvs/cvs-1.12.9/fix-__mempcpy.patch new file mode 100644 index 0000000000..83a6915b50 --- /dev/null +++ b/recipes/cvs/cvs-1.12.9/fix-__mempcpy.patch @@ -0,0 +1,16 @@ +Index: cvs-1.12.9/lib/regex.c +=================================================================== +--- cvs-1.12.9.orig/lib/regex.c 2010-06-02 17:40:24.350340585 -0700 ++++ cvs-1.12.9/lib/regex.c 2010-06-02 17:42:54.460370216 -0700 +@@ -8182,7 +8182,11 @@ regerror (int errcode, const regex_t *pr + if (msg_size > errbuf_size) + { + #if defined HAVE_MEMPCPY || defined _LIBC ++#if defined __UCLIBC__ ++ *((char *) mempcpy (errbuf, msg, errbuf_size - 1)) = '\0'; ++#else + *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0'; ++#endif + #else + memcpy (errbuf, msg, errbuf_size - 1); + errbuf[errbuf_size - 1] = 0; diff --git a/recipes/cvs/cvs_1.12.9.bb b/recipes/cvs/cvs_1.12.9.bb index b345a9c73a..5ce3ecf794 100644 --- a/recipes/cvs/cvs_1.12.9.bb +++ b/recipes/cvs/cvs_1.12.9.bb @@ -3,9 +3,12 @@ SECTION = "console/network" PRIORITY = "optional" DEPENDS = "" LICENSE = "GPL" +PR = "r1" SRC_URI = "http://musthave.sunbase.org/progs/ccvs/cvs-${PV}/cvs-${PV}.tar.bz2 \ - file://m4.patch" + file://m4.patch \ + file://fix-__mempcpy.patch \ + " inherit autotools gettext