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
emerge --info: https://bpaste.net/show/c6bc405ac59d
emerge torsocks (for 2.1.0): https://bpaste.net/show/d4c693b62d82
emerge for torsocks 1.2-r2: https://bpaste.net/show/6ce0fb3007b2
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.
(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.
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.
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.
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.
I've submitted a pull request with the actual upstream patch: https://github.com/gentoo/gentoo/pull/2540
By now there is only torsocks-2.2 in the tree, and that version seems to build fine with musl.