Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583730 - net-proxy/torsocks: emerge fails on hardened-musl test VM
Summary: net-proxy/torsocks: emerge fails on hardened-musl test VM
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-21 22:35 UTC by ng0
Modified: 2017-02-25 12:48 UTC (History)
0 users

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


Attachments
Patch for torsocks-2.1 (torsocks-2.1-musl.patch,2.80 KB, patch)
2016-05-22 00:26 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ng0 2016-05-21 22:35:32 UTC
I cloned a test VM from my functional 'amd64 musl hardened' blueprint VM, and emerging torsocks fails with both available versions of torsocks.

Reproducible: Always
Comment 1 ng0 2016-05-21 22:37:52 UTC
emerge --info: https://bpaste.net/show/c6bc405ac59d
Comment 2 ng0 2016-05-21 22:40:10 UTC
emerge torsocks (for 2.1.0): https://bpaste.net/show/d4c693b62d82
Comment 3 ng0 2016-05-21 22:42:01 UTC
emerge for torsocks 1.2-r2: https://bpaste.net/show/6ce0fb3007b2
Comment 4 Felix Janda 2016-05-22 00:26:16 UTC
Created attachment 434922 [details, diff]
Patch for torsocks-2.1

For archiving purposes, please post the build logs and emerge.info
directly as attachments to the bug (or post them as an inline comment
when very short).

Please try out the attached patch for torsocks-2.1. It should at least
build -- I am however not sure if it will work properly at runtime.
Comment 5 ng0 2016-05-22 12:47:28 UTC
(In reply to Felix Janda from comment #4)
> Created attachment 434922 [details, diff] [details, diff]
> Patch for torsocks-2.1
> 
> For archiving purposes, please post the build logs and emerge.info
> directly as attachments to the bug (or post them as an inline comment
> when very short).
> 
> Please try out the attached patch for torsocks-2.1. It should at least
> build -- I am however not sure if it will work properly at runtime.

Normally I would've done it as attachments, but at the time of testing I did not think of scp the logs out of the VM to the host. Next time I will copy it to the host and attach files.

Thanks for the patch, I will try and give feedback.
Comment 6 ng0 2016-05-22 13:15:16 UTC
With the patch applied, 2.1.0 builds for me on musl-hardened amd64, and at least the functionality with tor (built with openssl) cloning one of our git repositories on the .onion address works.
Comment 7 ng0 2016-05-23 10:49:21 UTC
For me it works, so with some testing on the current stable (<torsocks-2.1) version it could be added to the musl overlay?
I already integrated the 2.1 one in my public copy of the musl overlay.
Comment 8 Felix Janda 2016-05-24 10:32:06 UTC
I've sent the patch upstream: http://article.gmane.org/gmane.network.tor.devel/8735

It would be preferrable to have it in tree instead of the musl overlay.
Comment 9 Felix Janda 2016-10-12 00:01:20 UTC
I've submitted a pull request with the actual upstream patch:

https://github.com/gentoo/gentoo/pull/2540
Comment 10 Felix Janda 2017-01-14 19:14:27 UTC
By now there is only torsocks-2.2 in the tree, and that version seems
to build fine with musl.