summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-01-18 12:48:44 +0000
committerAnthony G. Basile <blueness@gentoo.org>2011-01-18 12:48:44 +0000
commitf0ab37652d97e200e3299fd9f1c2a273fb353f9e (patch)
tree152f40a724147e663b0f604705952d738b7bf0d6 /app-misc
parentVersion bump. Drop older. (diff)
downloadhistorical-f0ab37652d97e200e3299fd9f1c2a273fb353f9e.tar.gz
historical-f0ab37652d97e200e3299fd9f1c2a273fb353f9e.tar.bz2
historical-f0ab37652d97e200e3299fd9f1c2a273fb353f9e.zip
Added patch to compile against libevent-2, bug #333091
Package-Manager: portage-2.1.9.25/cvs/Linux x86_64
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/beanstalkd/ChangeLog10
-rw-r--r--app-misc/beanstalkd/Manifest4
-rw-r--r--app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild50
-rw-r--r--app-misc/beanstalkd/files/beanstalkd-dbgprintf.patch110
4 files changed, 171 insertions, 3 deletions
diff --git a/app-misc/beanstalkd/ChangeLog b/app-misc/beanstalkd/ChangeLog
index 9a0b6528acbf..f1557ed7d4fd 100644
--- a/app-misc/beanstalkd/ChangeLog
+++ b/app-misc/beanstalkd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/beanstalkd
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/ChangeLog,v 1.21 2010/11/02 18:41:53 patrick Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/ChangeLog,v 1.22 2011/01/18 12:48:43 blueness Exp $
+
+*beanstalkd-1.4.6-r1 (18 Jan 2011)
+
+ 18 Jan 2011; Anthony G. Basile <blueness@gentoo.org>
+ +beanstalkd-1.4.6-r1.ebuild, +files/beanstalkd-dbgprintf.patch:
+ Added patch to compile against libevent-2, bug #333091
02 Nov 2010; Patrick Lauer <patrick@gentoo.org> -files/init-1.4.2,
-files/Makefile.install.patch, -files/beanstalkd-werror.patch:
diff --git a/app-misc/beanstalkd/Manifest b/app-misc/beanstalkd/Manifest
index 273e005f355f..c7a493a762a4 100644
--- a/app-misc/beanstalkd/Manifest
+++ b/app-misc/beanstalkd/Manifest
@@ -1,3 +1,4 @@
+AUX beanstalkd-dbgprintf.patch 4221 RMD160 96ef0e879c0a98ab84fddc0787a68b295824b3b2 SHA1 14f881b8551384e67c5c1820bd41b57f94062892 SHA256 578a7ea43b08f00cb973c0db21ad6a57ddb566ba01d159ee74f9ff86d70c48fb
AUX beanstalkd-werror-v2.patch 302 RMD160 6513616bc84b7c1fcd2bca985d5551378b951b39 SHA1 3916bc3fea29ec60cc229c47dbe1196a751de72f SHA256 e3fea94ce676bef8748ff1842e1c6d6e574b18db58b383ee5ab0870ba5a245a2
AUX conf 396 RMD160 5abf034297cb7473ff93edf2eefe04b14c8d9fdf SHA1 ce5346dd8632da7693b332059378469c74dbbb5e SHA256 d9876b8b6f123c070376e1e405ec5f8f46d70ab1d70667a3987a90d8c0b0653b
AUX conf-1.4.2 468 RMD160 2e5f505d5c66a9fc3a44141722a397dade88c9f1 SHA1 b7ac0f0e09408ba2b1695c8df40b2d3e50cf8375 SHA256 73787211b4e1f7215e5bf2effa77a5ec80f63fa08933f22ba7ca0cd11969b816
@@ -6,6 +7,7 @@ AUX init-1.4.6 637 RMD160 db21a8a19bac382b58611874fe13e92cd3692d54 SHA1 1e72a04c
DIST beanstalkd-1.3.tar.gz 116114 RMD160 a1fa4c6aae530beeecfbe49a4e09903a58e1cc38 SHA1 ce85375605459458e0a357d9ecaeb9baeb3b9c9a SHA256 3d3eb36bf2932e6f3c4e6851420e8e579b2c4ae19f0297d8fd384c7461b4d885
DIST beanstalkd-1.4.6.tar.gz 140858 RMD160 f1641f15b32731f19a39721d8b37da940a145672 SHA1 1ee0d731e22aa45fb22e816f6e364913595f6e65 SHA256 a03aca5ccd87c2a1bb6cdaf38d3463c9f987090f4eb6cd9c7f6e03d3d54d3ac9
EBUILD beanstalkd-1.3.ebuild 814 RMD160 f8c8ffc9eb6bcbbbb83384b9a6ddceea23a4b9b0 SHA1 22cf706c87158b8d6c5ec23d463058f3879bb571 SHA256 8143735b319ebce4d498bda3b0621feb4a7e9e3e76c569edb9f45ba23303d949
+EBUILD beanstalkd-1.4.6-r1.ebuild 1243 RMD160 845f5067e629f050b48848b1cc3d3ca16e647fb4 SHA1 53d22b172c3d6f49a5d470587ab39bf0dab03d50 SHA256 0349d644ad4ecf203665ee6ab272bb894b2d2264dd77e28ace96aea2398e3ce4
EBUILD beanstalkd-1.4.6.ebuild 1190 RMD160 7d5e818d351d181b6ae704e9367f59d23d63cf9f SHA1 dc90774cb80f12aa7cf7ac555e7565892cb4d024 SHA256 4cfd271df042dfd055a2c9737afa9cf38a8a1d45003a8b55792b6213979b1f50
-MISC ChangeLog 3262 RMD160 62cfe61cd8ea26f6b4c329efdae8e4c6847d9449 SHA1 3f4a30e12b88669f9f2a2f7b4bc232f3e82f6ccc SHA256 bf2d73691c72c1b321c0dc444218612b08a5336f0692765de6d11db7bcd02fb0
+MISC ChangeLog 3478 RMD160 8bc4ae901a3652602e59ba28e5586f830e10a783 SHA1 80b94377209ea7fc7337dc1b12a6cc000e3bbb53 SHA256 94829c47b445b64c2b02d0cbe2c27b42a9e11d1a328df2d715d25f521213bee0
MISC metadata.xml 447 RMD160 a150166e60db0a2841f01b54b2f35523213ed5f7 SHA1 ac06fee6a699f84dea729e502dd5d5e5026ebf5a SHA256 8ea2feb0dfc19411ac55cbcf25888cb3afd7c4c7ac61a4e8cd25e0ef574f9b51
diff --git a/app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild b/app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild
new file mode 100644
index 000000000000..64e7e2d6c506
--- /dev/null
+++ b/app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild,v 1.1 2011/01/18 12:48:44 blueness Exp $
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="A fast, distributed, in-memory workqueue service"
+HOMEPAGE="http://xph.us/software/beanstalkd/"
+SRC_URI="http://xph.us/dist/beanstalkd/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~x86-macos"
+
+RDEPEND="dev-libs/libevent"
+DEPEND="${RDEPEND}
+ test? ( dev-lang/python )"
+
+IUSE="debug test"
+
+pkg_setup() {
+ enewuser beanstalk -1 -1 /var/lib/beanstalkd daemon
+}
+
+src_prepare() {
+ epatch "$FILESDIR/beanstalkd-werror-v2.patch"
+ epatch "$FILESDIR/beanstalkd-dbgprintf.patch"
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}"/usr/share/${PF} \
+ --with-event="${EPREFIX}"/usr \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+
+ DATADIR=/var/lib/${PN}
+ dodir ${DATADIR} || die "Install failed"
+ fowners beanstalk:daemon ${DATADIR}
+
+ dodoc README TODO doc/*.txt
+
+ newconfd "${FILESDIR}/conf-1.4.2" beanstalkd
+ newinitd "${FILESDIR}/init-${PV}" beanstalkd
+}
diff --git a/app-misc/beanstalkd/files/beanstalkd-dbgprintf.patch b/app-misc/beanstalkd/files/beanstalkd-dbgprintf.patch
new file mode 100644
index 000000000000..91d418e5f1ba
--- /dev/null
+++ b/app-misc/beanstalkd/files/beanstalkd-dbgprintf.patch
@@ -0,0 +1,110 @@
+diff -Naur beanstalkd-1.4.6.orig/prot.c beanstalkd-1.4.6/prot.c
+--- beanstalkd-1.4.6.orig/prot.c 2010-05-23 03:37:28.000000000 -0400
++++ beanstalkd-1.4.6/prot.c 2011-01-10 19:44:05.000000000 -0500
+@@ -305,7 +305,7 @@
+ c->reply_len = len;
+ c->reply_sent = 0;
+ c->state = state;
+- dprintf("sending reply: %.*s", len, line);
++ dbgprintf("sending reply: %.*s", len, line);
+ }
+
+ #define reply_msg(c,m) reply((c),(m),CONSTSTRLEN(m),STATE_SENDWORD)
+@@ -382,10 +382,10 @@
+ size_t i;
+ job j = NULL, candidate;
+
+- dprintf("tubes.used = %zu\n", tubes.used);
++ dbgprintf("tubes.used = %zu\n", tubes.used);
+ for (i = 0; i < tubes.used; i++) {
+ t = tubes.items[i];
+- dprintf("for %s t->waiting.used=%zu t->ready.used=%d t->pause=%" PRIu64 "\n",
++ dbgprintf("for %s t->waiting.used=%zu t->ready.used=%d t->pause=%" PRIu64 "\n",
+ t->name, t->waiting.used, t->ready.used, t->pause);
+ if (t->pause) {
+ if (t->deadline_at > now) continue;
+@@ -395,7 +395,7 @@
+ candidate = pq_peek(&t->ready);
+ if (!j || job_pri_cmp(candidate, j) < 0) j = candidate;
+ }
+- dprintf("i = %zu, tubes.used = %zu\n", i, tubes.used);
++ dbgprintf("i = %zu, tubes.used = %zu\n", i, tubes.used);
+ }
+
+ return j;
+@@ -407,9 +407,9 @@
+ job j;
+ usec now = now_usec();
+
+- dprintf("processing queue\n");
++ dbgprintf("processing queue\n");
+ while ((j = next_eligible_job(now))) {
+- dprintf("got eligible job %llu in %s\n", j->id, j->tube->name);
++ dbgprintf("got eligible job %llu in %s\n", j->id, j->tube->name);
+ j = pq_take(&j->tube->ready);
+ ready_ct--;
+ if (j->pri < URGENT_THRESHOLD) {
+@@ -462,7 +462,7 @@
+
+ if (j && (!deadline_at || j->deadline_at < deadline_at)) deadline_at = j->deadline_at;
+
+- dprintf("deadline_at=%" PRIu64 "\n", deadline_at);
++ dbgprintf("deadline_at=%" PRIu64 "\n", deadline_at);
+ set_main_timeout(deadline_at);
+ }
+
+@@ -1178,7 +1178,7 @@
+ }
+
+ type = which_cmd(c);
+- dprintf("got %s command: \"%s\"\n", op_names[(int) type], c->cmd);
++ dbgprintf("got %s command: \"%s\"\n", op_names[(int) type], c->cmd);
+
+ switch (type) {
+ case OP_PUT:
+@@ -1578,10 +1578,10 @@
+ }
+
+ if (should_timeout) {
+- dprintf("conn_waiting(%p) = %d\n", c, conn_waiting(c));
++ dbgprintf("conn_waiting(%p) = %d\n", c, conn_waiting(c));
+ return reply_msg(remove_waiting_conn(c), MSG_DEADLINE_SOON);
+ } else if (conn_waiting(c) && c->pending_timeout >= 0) {
+- dprintf("conn_waiting(%p) = %d\n", c, conn_waiting(c));
++ dbgprintf("conn_waiting(%p) = %d\n", c, conn_waiting(c));
+ c->pending_timeout = -1;
+ return reply_msg(remove_waiting_conn(c), MSG_TIMED_OUT);
+ }
+@@ -1773,7 +1773,7 @@
+ for (i = 0; i < tubes.used; i++) {
+ t = tubes.items[i];
+
+- dprintf("h_delay for %s t->waiting.used=%zu t->ready.used=%d t->pause=%" PRIu64 "\n",
++ dbgprintf("h_delay for %s t->waiting.used=%zu t->ready.used=%d t->pause=%" PRIu64 "\n",
+ t->name, t->waiting.used, t->ready.used, t->pause);
+ if (t->pause && t->deadline_at <= now) {
+ t->pause = 0;
+@@ -1811,7 +1811,7 @@
+ c = make_conn(cfd, STATE_WANTCOMMAND, default_tube, default_tube);
+ if (!c) return twarnx("make_conn() failed"), close(cfd), brake();
+
+- dprintf("accepted conn, fd=%d\n", cfd);
++ dbgprintf("accepted conn, fd=%d\n", cfd);
+ r = conn_set_evq(c, EV_READ | EV_PERSIST, (evh) h_conn);
+ if (r == -1) return twarnx("conn_set_evq() failed"), close(cfd), brake();
+ }
+diff -Naur beanstalkd-1.4.6.orig/util.h beanstalkd-1.4.6/util.h
+--- beanstalkd-1.4.6.orig/util.h 2010-05-22 17:23:16.000000000 -0400
++++ beanstalkd-1.4.6/util.h 2011-01-10 19:43:44.000000000 -0500
+@@ -43,9 +43,9 @@
+ __FILE__, __LINE__, __func__, ##args)
+
+ #ifdef DEBUG
+-#define dprintf(fmt, args...) ((void) fprintf(stderr, fmt, ##args))
++#define dbgprintf(fmt, args...) ((void) fprintf(stderr, fmt, ##args))
+ #else
+-#define dprintf(fmt, ...) ((void) 0)
++#define dbgprintf(fmt, ...) ((void) 0)
+ #endif
+
+ typedef uint64_t usec;