From: | "Kacper Kowalik (xarthisius)" <xarthisius@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/libmemcache/files: libmemcache-1.4.0_rc2-ppc_ftbfs.patch |
Date: | Sun, 20 Nov 2011 09:39:23 |
Message-Id: | 20111120093909.328AE2004C@flycatcher.gentoo.org |
1 | xarthisius 11/11/20 09:39:09 |
2 | |
3 | Added: libmemcache-1.4.0_rc2-ppc_ftbfs.patch |
4 | Log: |
5 | Apply debian hack to fix build failure on ppc* wrt #365303. ppc/ppc64 stable wrt #327725 |
6 | |
7 | (Portage version: 2.2.0_alpha75/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-ppc_ftbfs.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-ppc_ftbfs.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-ppc_ftbfs.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: libmemcache-1.4.0_rc2-ppc_ftbfs.patch |
16 | =================================================================== |
17 | Debian patch: 10_ftbfs_fix_powerpc.patch |
18 | Fixing build on PowerPC |
19 | https://bugs.gentoo.org/show_bug.cgi?id=365303 |
20 | |
21 | --- a/include/memcache.h.in |
22 | +++ b/include/memcache.h.in |
23 | @@ -61,6 +61,11 @@ |
24 | #ifndef MEMCACHE_H |
25 | #define MEMCACHE_H |
26 | |
27 | +/* fix FTBFS on powerpc for Debian libmemcache */ |
28 | +#ifndef __USE_POSIX |
29 | +#define __USE_POSIX |
30 | +#endif |
31 | + |
32 | #include <netdb.h> |
33 | #include <sys/types.h> |
34 | #include <sys/time.h> |
35 | --- a/src/memcache.c |
36 | +++ b/src/memcache.c |
37 | @@ -39,12 +39,17 @@ |
38 | #include <sysexits.h> |
39 | #include <errno.h> |
40 | #include <sys/types.h> |
41 | -#ifdef __linux |
42 | + |
43 | +/* fix FTBFS on powerpc for Debian libmemcache. I personally think this |
44 | + * shouldnt be the case, as Debian Bug#345587 seems to show. */ |
45 | + |
46 | +/* #ifdef __linux */ |
47 | # ifndef __USE_POSIX |
48 | # define __USE_POSIX |
49 | #warning "Working around busted-ass Linux header include problems: use FreeBSD instead" |
50 | #warning "http://www.FreeBSD.org/ - you won't regret it" |
51 | -# endif |
52 | +/* #endif */ |
53 | + |
54 | #endif |
55 | #include <sys/time.h> |
56 | #include <sys/socket.h> |