From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/libmemcache/Manifest | 8 +++++ .../libmemcache-1.4.0_rc2-implicit_pointer.patch | 12 +++++++ .../files/libmemcache-1.4.0_rc2-inline.patch | 33 ++++++++++++++++++ .../files/libmemcache-1.4.0_rc2-ppc_ftbfs.patch | 40 ++++++++++++++++++++++ .../libmemcache/libmemcache-1.4.0_rc2-r1.ebuild | 40 ++++++++++++++++++++++ dev-libs/libmemcache/metadata.xml | 10 ++++++ 6 files changed, 143 insertions(+) create mode 100644 dev-libs/libmemcache/Manifest create mode 100644 dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-implicit_pointer.patch create mode 100644 dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-inline.patch create mode 100644 dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-ppc_ftbfs.patch create mode 100644 dev-libs/libmemcache/libmemcache-1.4.0_rc2-r1.ebuild create mode 100644 dev-libs/libmemcache/metadata.xml (limited to 'dev-libs/libmemcache') diff --git a/dev-libs/libmemcache/Manifest b/dev-libs/libmemcache/Manifest new file mode 100644 index 000000000000..d891510a3721 --- /dev/null +++ b/dev-libs/libmemcache/Manifest @@ -0,0 +1,8 @@ +AUX libmemcache-1.4.0_rc2-implicit_pointer.patch 385 SHA256 244cb27b979e58a2814580e81f3eb75b2bdf1421397519cb9d15534f0b3d7d16 SHA512 be3f29a1ff78a7a676ae054754d5c3641d2d75f40365e2a55e9223b05ea53c8e1172e20fb64742cac23a7e386de15833a4de7d75f4937befc71a51fa9b9f5583 WHIRLPOOL dc470f0c875036687cb6b4f5407750d23922fe5abd034f2980df6f94458f7d3061595accf39f5a30ad5f7f1fe222a9adf6de2f9f84639d1b466a9f4e4cb0ce0f +AUX libmemcache-1.4.0_rc2-inline.patch 2051 SHA256 7e02de6171d80776c191f481ba0b30383ddd8e02c4b5f8247f5ddd0af666ec3b SHA512 f5f817ffffeaccd930e83f099c0786302748afd13946b408ca63fd89c5d77d0fe7a6190ef9db7ea9da3882c00ef6ebeeed109c527bbc1ebeadef193e193a0cc6 WHIRLPOOL 4ee798bac5696f5ecaaef7dff275d8a49cba31e6a9ec39ba25bbf3f4bc9e807c28ca660eb08127d11fae70c645f87ecdc653b3fe817499ac3168eb4b8715f0ec +AUX libmemcache-1.4.0_rc2-ppc_ftbfs.patch 983 SHA256 aeab1f03859bf4d88ef3f97bf40c1f342c4e23fb5b415e3d9c856175ebe855d7 SHA512 4ae7d6b99982934e7a28f7e0dd103341e9f4b7eb514e20cef3c02e428ee8c555c71c8bfdc06f0771ff0b73827251fa5eb4e7bce8014cd5cf2f5148d18b1f56b1 WHIRLPOOL f8e8ed323de95d468dddfbc9eba616912aed125c154b5b80be04c5ca130033b6274e2c2a836c0fdea59be667d851226334515c4c24d9e92048e01e8267aa0302 +DIST libmemcache-1.4.0.rc2.tar.bz2 301136 SHA256 f496d41092c697384a7180720689da6a85d7c6ea2283eca69c8aaff2b58bebbf SHA512 4b8c09c425d48d0ad040d3f01ec3c0d88babefb702b666d5cb3d10eac9993be88d00120b57b6224f7d55ae979d3136de10d5ddc793d9aa7f8b9531b5d79449d0 WHIRLPOOL 89cf5df9b87193ce25b3c76086e59c9879fadb6ba9343e6a97a3982fd50976e4ec69668360ceaf5183e73470a4c3841c19eaa65a38a69a472f15dccc9404b540 +EBUILD libmemcache-1.4.0_rc2-r1.ebuild 1042 SHA256 44798ca23b0d516c9829019c9969b3e530ccff4cfd46957e17de694542beeafd SHA512 232afae4296e1362764ea1ed0ce568eb0efd9396c921b99d0e8b71c8ea437b12f32ae677bc02a5b3d3bc7ba90d96af83087b1a4241f0705aa84928931ad5f4de WHIRLPOOL af5cc2aebd9788232da1684208aa4411f8951ffb37b0fb66690761a91fa3aff256a4534790f092f1b3e4615f08f2f91ef79575f912482017ec6296bcff6289b4 +MISC ChangeLog 2350 SHA256 fc9e3486b0866a73c7ef10fea5e9d0cb0f27a66458527fe187226c69b13f6dee SHA512 512a8e34ac9e5d5e783ec5a99097b294140b745aaa6fa003d5ee71143448ece56a61b8325c5961fada3056b431ca13b3f7d33a4478e443d8277dfcbb83bba8a1 WHIRLPOOL 488967d487ca2d40130704acfe60bb4503277e2b118d9e94eeef7fd00bdac0adf3b0193431c7cf9aa3096d745b30b7665eda99ebe559ce52f69b6b55fb33dbe5 +MISC ChangeLog-2015 4973 SHA256 d56fe4de428311812b353a54c34620a565f0b3ce18991154a41ee011e9b33680 SHA512 40bc67ecec9179676fc2dcaf32a097879a5085b3b205658a467b168234adfe4c056e9cf7f9720767080a302ce95891092323e09f139d7d6dccc0fb95ce2bc131 WHIRLPOOL 1e4033e82b28212c1c9e0ce398ff86e652d59ef72bcd8cd4bd64046b6e91e226318f5ef67f65fa030cf4eac23b5eb5cb63e41ff8b51458c03d12c7b7e3bb0f45 +MISC metadata.xml 304 SHA256 0afee101cadc39d1b7c9e9bb08c7f6856ed097dea1708dd571fdff2e687d9fed SHA512 de92a462028eebdb520fd2a745eeffd845615fbace7691bc954997113a2b0f273f5b9fdcaebc299ae510d3fafa611397ac468b8b13fd44c00488fbc210b3358c WHIRLPOOL e478d5e754d169e1a2c390f7e3b3d28d4dc09182632e2dec820ddab36f6a3bcb3b40503a3949188dd47f6939944d9f053cf84f980385d7741ddadf7426be49d0 diff --git a/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-implicit_pointer.patch b/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-implicit_pointer.patch new file mode 100644 index 000000000000..e944ce1725a9 --- /dev/null +++ b/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-implicit_pointer.patch @@ -0,0 +1,12 @@ +Index: libmemcache-1.4.0.rc2/test/benchmark/benchmark.c +=================================================================== +--- libmemcache-1.4.0.rc2.orig/test/benchmark/benchmark.c ++++ libmemcache-1.4.0.rc2/test/benchmark/benchmark.c +@@ -29,6 +29,7 @@ + + #include "memcache.h" + ++char *strdup(const char *s1); + double tt(const struct timeval *t1, const struct timeval *t2); + + double diff --git a/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-inline.patch b/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-inline.patch new file mode 100644 index 000000000000..6eba5dffd135 --- /dev/null +++ b/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-inline.patch @@ -0,0 +1,33 @@ +http://bugs.gentoo.org/276571 + +--- include/memcache.h.in ++++ include/memcache.h.in +@@ -923,7 +923,7 @@ int mcMemGet(mcFreeFunc *freeFunc, mcMallocFunc *mallocFunc, + mcMallocFunc *mallocAtomicFunc, mcReallocFunc *reallocFunc); + + /* Returns a pointer to the global context. */ +-inline struct memcache_ctxt *mc_global_ctxt(void); ++struct memcache_ctxt *mc_global_ctxt(void); + + /* The next two functions are used to setup an error handler. */ + int mcErrSetup(mcErrFunc errFunc); +--- include/memcache/buffer.h ++++ include/memcache/buffer.h +@@ -63,14 +63,14 @@ struct memcache_buf *mcm_buf_find_replace(struct memcache_ctxt *, struct memcach + struct memcache_buf *mcm_buf_find_replace2(struct memcache_ctxt *, struct memcache_buf *, + const char *, struct memcache_buf *); + int mcm_buf_free(struct memcache_ctxt *, struct memcache_buf **); +-inline u_int32_t mcm_buf_len(const struct memcache_ctxt *, const struct memcache_buf *); ++u_int32_t mcm_buf_len(const struct memcache_ctxt *, const struct memcache_buf *); + struct memcache_buf *mcm_buf_new(struct memcache_ctxt *); + struct memcache_buf *mcm_buf_new2(struct memcache_ctxt *, const char *, const u_int32_t); + struct memcache_buf *mcm_buf_new3(struct memcache_ctxt *, const char *); + size_t mcm_buf_read(struct memcache_ctxt *, struct memcache_buf *, int); + int mcm_buf_realloc(struct memcache_ctxt *, struct memcache_buf *, const u_int32_t); +-inline size_t mcm_buf_remain(const struct memcache_ctxt *, const struct memcache_buf *); +-inline size_t mcm_buf_remain_off(const struct memcache_ctxt *, const struct memcache_buf *); ++size_t mcm_buf_remain(const struct memcache_ctxt *, const struct memcache_buf *); ++size_t mcm_buf_remain_off(const struct memcache_ctxt *, const struct memcache_buf *); + int mcm_buf_replace(struct memcache_ctxt *, struct memcache_buf *, const char *, const u_int32_t); + int mcm_buf_replace2(struct memcache_ctxt *, struct memcache_buf *, const char *); + int mcm_buf_replace_buf(struct memcache_ctxt *, struct memcache_buf *, struct memcache_buf *); diff --git a/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-ppc_ftbfs.patch b/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-ppc_ftbfs.patch new file mode 100644 index 000000000000..dbeee57b1c6b --- /dev/null +++ b/dev-libs/libmemcache/files/libmemcache-1.4.0_rc2-ppc_ftbfs.patch @@ -0,0 +1,40 @@ +Debian patch: 10_ftbfs_fix_powerpc.patch +Fixing build on PowerPC +https://bugs.gentoo.org/show_bug.cgi?id=365303 + +--- a/include/memcache.h.in ++++ b/include/memcache.h.in +@@ -61,6 +61,11 @@ + #ifndef MEMCACHE_H + #define MEMCACHE_H + ++/* fix FTBFS on powerpc for Debian libmemcache */ ++#ifndef __USE_POSIX ++#define __USE_POSIX ++#endif ++ + #include + #include + #include +--- a/src/memcache.c ++++ b/src/memcache.c +@@ -39,12 +39,17 @@ + #include + #include + #include +-#ifdef __linux ++ ++/* fix FTBFS on powerpc for Debian libmemcache. I personally think this ++ * shouldnt be the case, as Debian Bug#345587 seems to show. */ ++ ++/* #ifdef __linux */ + # ifndef __USE_POSIX + # define __USE_POSIX + #warning "Working around busted-ass Linux header include problems: use FreeBSD instead" + #warning "http://www.FreeBSD.org/ - you won't regret it" +-# endif ++/* #endif */ ++ + #endif + #include + #include diff --git a/dev-libs/libmemcache/libmemcache-1.4.0_rc2-r1.ebuild b/dev-libs/libmemcache/libmemcache-1.4.0_rc2-r1.ebuild new file mode 100644 index 000000000000..cef85c7e1c23 --- /dev/null +++ b/dev-libs/libmemcache/libmemcache-1.4.0_rc2-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=3 +inherit autotools eutils toolchain-funcs + +MY_P=${PN}-${PV/_/.} + +DESCRIPTION="C API for memcached" +HOMEPAGE="http://people.freebsd.org/~seanc/libmemcache/" +SRC_URI="http://people.freebsd.org/~seanc/libmemcache/${MY_P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~sparc-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-inline.patch + epatch "${FILESDIR}"/${P}-implicit_pointer.patch + [[ $(tc-arch) == ppc* ]] && epatch "${FILESDIR}"/${P}-ppc_ftbfs.patch + + rm -rf test/unit || die + sed -i -e '/DIR/s,unit,,g' test/Makefile.am || die + sed -i \ + -e 's,test/unit/Makefile,,g' \ + -e '/^CFLAGS=.*Wall.*pipe/s,-Wall,${CFLAGS} -Wall,g' \ + -e '/^OPTIMIZE=/d' \ + -e '/^PROFILE=/d' \ + configure.ac || die + + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc ChangeLog +} diff --git a/dev-libs/libmemcache/metadata.xml b/dev-libs/libmemcache/metadata.xml new file mode 100644 index 000000000000..58bfe2058b7a --- /dev/null +++ b/dev-libs/libmemcache/metadata.xml @@ -0,0 +1,10 @@ + + + + + robbat2@gentoo.org + + + prometheanfire@gentoo.org + + -- cgit v1.2.3