From: "Andrew Savchenko" <bircoph@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/bircoph:master commit in: net-proxy/tsocks/, net-proxy/tsocks/files/
Date: Fri, 9 Jan 2015 03:27:39 +0000 (UTC) [thread overview]
Message-ID: <1420773403.2dfef62156839f0e9bb959ae441ddf090d5fc980.bircoph@gentoo> (raw)
commit: 2dfef62156839f0e9bb959ae441ddf090d5fc980
Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
AuthorDate: Fri Jan 9 03:16:43 2015 +0000
Commit: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
CommitDate: Fri Jan 9 03:16:43 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=dev/bircoph.git;a=commit;h=2dfef621
tsocks: fix bug 316345
Fix support for applications usin poll()
---
net-proxy/tsocks/files/tsocks-1.8_beta5-poll.patch | 16 ++++++++++++++++
net-proxy/tsocks/tsocks-1.8_beta5-r7.ebuild | 3 ++-
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/net-proxy/tsocks/files/tsocks-1.8_beta5-poll.patch b/net-proxy/tsocks/files/tsocks-1.8_beta5-poll.patch
new file mode 100644
index 0000000..2335395
--- /dev/null
+++ b/net-proxy/tsocks/files/tsocks-1.8_beta5-poll.patch
@@ -0,0 +1,16 @@
+--- a/tsocks.c
++++ b/tsocks.c
+@@ -659,10 +659,11 @@
+ * be ready for writing), otherwise we'll just let the select loop
+ * come around again (since we can't flag it for read, we don't know
+ * if there is any data to be read and can't be bothered checking) */
+- if (conn->selectevents & WRITE) {
+- setevents |= POLLOUT;
++ if (conn->selectevents & POLLOUT) {
++ ufds[i].revents |= POLLOUT;
+ nevents++;
+ }
++ ufds[i].events = conn->selectevents;
+ }
+ }
+ } while (nevents == 0);
diff --git a/net-proxy/tsocks/tsocks-1.8_beta5-r7.ebuild b/net-proxy/tsocks/tsocks-1.8_beta5-r7.ebuild
index 8b2c2c1..949c1a0 100644
--- a/net-proxy/tsocks/tsocks-1.8_beta5-r7.ebuild
+++ b/net-proxy/tsocks/tsocks-1.8_beta5-r7.ebuild
@@ -23,7 +23,8 @@ src_prepare() {
"${FILESDIR}/${P}-flags.patch" \
"${FILESDIR}/${P}-ld_preload.patch" \
"${FILESDIR}/${P}-rename.patch" \
- "${FILESDIR}/${P}-bsd.patch"
+ "${FILESDIR}/${P}-bsd.patch" \
+ "${FILESDIR}/${P}-poll.patch"
use tordns && epatch "../${PN}-${PV/_beta/b}-tordns1-gentoo-r2.patch"
eautoreconf
}
next reply other threads:[~2015-01-09 3:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 3:27 Andrew Savchenko [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-01-09 5:24 [gentoo-commits] dev/bircoph:master commit in: net-proxy/tsocks/, net-proxy/tsocks/files/ Andrew Savchenko
2015-01-09 2:51 Andrew Savchenko
2015-01-09 2:51 Andrew Savchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1420773403.2dfef62156839f0e9bb959ae441ddf090d5fc980.bircoph@gentoo \
--to=bircoph@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox