Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381181 - net-misc/tor can benefit from a new package, net-proxy/torsocks
Summary: net-misc/tor can benefit from a new package, net-proxy/torsocks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 14:54 UTC by Toralf Förster
Modified: 2011-09-27 16:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2011-08-30 14:54:34 UTC
pls see this comment : https://bugs.gentoo.org/show_bug.cgi?id=347656#c3 for details

Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2011-09-13 23:03:33 UTC
Okay I just added net-proxy/torsocks-1.1a to the tree.  The torsocks code was not and still is not in the best shape, but I've tested it and its working.  "Working: here means its wrapping ssh connectiond in tor and not leaking dns.  Here's what it still needs:

1) Upsteam really needs to add three patches.  See issues 25, 26 and 27 at

    http://code.google.com/p/torsocks/issues/list

2) I need to add IUSE="test" and getting the test code working.

3) I need to fix the following messages which are really warnings and not errors:

   The symbol res_init() was not found in any shared library.

Similarly res_query(), res_search(), res_querydomain().

Also, I am not going to have tor DEPEND on torsocks or vice versa.  Here's why:

1) Many users will install tor without every wanting torsocks.  Also tor is mature code and torsocks is not.

2) torsocks can make use of tor running on a different server, so just like many LAMP applications don't depend on mysql (because it can run on a different server) neither will I have torsocks depend on tor.  In fact, torsocks doesn't need anything beyond @system for DEPEND or RDEPEND.

Please test and report back to this bug.  I'm going to change the summary from

   >=net-misc/tor-0.2.x should use torsocks

to better reflect the relationship between torsocks and tor.
Comment 2 Toralf Förster gentoo-dev 2011-09-14 09:44:24 UTC
I installed net-misc/tor-0.2.3.3_alpha-r1, net-proxy/torsocks-1.1a and updated dev-libs/libevent from 2.0.12 to 2.0.14. In the tor ebuild I removed this before : "net-proxy/tsocks[tordns]"

Firefox plays well with tor AFAICS. What I'm wondering is, that "lsof | grep torsock" doesn't show any entry.
Comment 3 Anthony Basile gentoo-dev 2011-09-14 10:14:02 UTC
(In reply to comment #2)
> I installed net-misc/tor-0.2.3.3_alpha-r1, net-proxy/torsocks-1.1a and updated
> dev-libs/libevent from 2.0.12 to 2.0.14. In the tor ebuild I removed this
> before : "net-proxy/tsocks[tordns]"
> 
> Firefox plays well with tor AFAICS. What I'm wondering is, that "lsof | grep
> torsock" doesn't show any entry.

How are you using torsocks?  I've only used it as follows:

    usewithtor ssh blueness@dev.gentoo.org

For a surfing, I use firefox -> privoxy -> tor.  AFAIK torsocks doesn't run as a daemon, its just a wrapper on socks friendly apps to proxy them through tor.
Comment 4 Toralf Förster gentoo-dev 2011-09-14 12:13:06 UTC
(In reply to comment #3)
> For a surfing, I use firefox -> privoxy -> tor.
That's exactly my use case.
Therefore it could be sufficant enough for me to just remove the dep on tsocks[+tordns] from the original ebuild ? (and let torsocks being emerged)
Comment 5 Anthony Basile gentoo-dev 2011-09-14 20:18:26 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > For a surfing, I use firefox -> privoxy -> tor.
> That's exactly my use case.
> Therefore it could be sufficant enough for me to just remove the dep on
> tsocks[+tordns] from the original ebuild ? (and let torsocks being emerged)

Yes.  I removed the dep already from the newer ebuilds.  Only the last stable one still has it.  When that is removed, there will be no more dep on tsocks.
Comment 6 Anthony Basile gentoo-dev 2011-09-27 15:43:27 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > For a surfing, I use firefox -> privoxy -> tor.
> That's exactly my use case.
> Therefore it could be sufficant enough for me to just remove the dep on
> tsocks[+tordns] from the original ebuild ? (and let torsocks being emerged)

Has the new net-proxy/torsocks addressed your needs?  If so I'll close this and any other issue you might have with the new package should be opened in new bugs.
Comment 7 Toralf Förster gentoo-dev 2011-09-27 16:30:47 UTC
(In reply to comment #6)
> 
> Has the new net-proxy/torsocks addressed your needs?  If so I'll close this and
> any other issue you might have with the new package should be opened in new
> bugs.
yes - thx.