tag 564237 + patch thanks On Fri, Jan 08, 2010 at 04:24:49PM +0100, Aurelien Jarno wrote: > Package: arcboot > Version: 0.3.12 > Severity: serious > Justification: fails to build from source > > arcboot fails to build from source due to changes in the e2fs library. > It looks like someone has to implement at least the memmove() and > strcat() functions, probably the kernel code.
I have tested this solution, it actually works. Please find a patch below: --- a/arclib/string.c +++ b/arclib/string.c @@ -124,3 +124,36 @@ { memset(p, 0, len); } + +char *strcat(char *dest, const char *src) +{ + char *tmp = dest; + + while (*dest) + dest++; + while ((*dest++ = *src++) != '\0') + ; + return tmp; +} + +void *memmove(void *dest, const void *src, size_t count) +{ + char *tmp; + const char *s; + + if (dest <= src) { + tmp = dest; + s = src; + while (count--) + *tmp++ = *s++; + } else { + tmp = dest; + tmp += count; + s = src; + s += count; + while (count--) + *--tmp = *--s; + } + return dest; +} + -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurel...@aurel32.net http://www.aurel32.net -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org