[oe-commits] Khem Raj : cvs-1.12.9: uclibc does not export __mempcpy so use mempcpy

git version control git at git.openembedded.org
Sat Jun 5 13:53:40 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 55b15cba4bb1615ff195a0c7332319de953802f2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=55b15cba4bb1615ff195a0c7332319de953802f2

Author: Khem Raj <raj.khem at gmail.com>
Date:   Wed Jun  2 19:45:13 2010 -0700

cvs-1.12.9: uclibc does not export __mempcpy so use mempcpy

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/cvs/cvs-1.12.9/fix-__mempcpy.patch |   16 ++++++++++++++++
 recipes/cvs/cvs_1.12.9.bb                  |    5 ++++-
 2 files changed, 20 insertions(+), 1 deletions(-)

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 0000000..83a6915
--- /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 b345a9c..5ce3ecf 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
 





More information about the Openembedded-commits mailing list