Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592652 - net-proxy/shadowsocks-libev-2.5.0 version bump
Summary: net-proxy/shadowsocks-libev-2.5.0 version bump
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2016-09-01 09:19 UTC by aihuxiaoxiongmao
Modified: 2016-09-07 01:44 UTC (History)
1 user (show)

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


Attachments
usable shadowsocks-libev.ebuild of version 2.5.0 (shadowsocks-libev-2.5.0-r1.ebuild,1.72 KB, text/plain)
2016-09-01 09:19 UTC, aihuxiaoxiongmao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aihuxiaoxiongmao 2016-09-01 09:19:27 UTC
Created attachment 444710 [details]
usable shadowsocks-libev.ebuild of version 2.5.0

Hi!

Recently shadowsocks-libev introduced crypto_stream_chacha20_ietf_xor_ic() function and asciidoc dependency, and its code base includes a copy of libsodium for this. 

However the existing ebuild uses polarssl and openssl as --with-crypto-library args.

I fixed these and and upgraded version to latest one, hope it can be accepted :)
Comment 1 Yixun Lan archtester gentoo-dev 2016-09-05 07:49:09 UTC
hey, thanks for reporting this!
I've pushed 2.5.0 with few modifications

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdd013bd721d8997ea9dabe24d376f3417b805a4
Comment 2 aihuxiaoxiongmao 2016-09-05 10:02:06 UTC
I tried and can't compile, the error message is:

encrypt.c: In function 'crypto_stream_xor_ic':
encrypt.c:290:9: error: implicit declaration of function 'crypto_stream_chacha20_ietf_xor_ic' [-Werror=implicit-function-declaration]


This is the problem I reported.. 
The version of dev-libs/libsodium in Gentoo portage is 1.0.2 as of now, from 1.0.8 on it would have definition of crypto_stream_chacha20_ietf_xor_ic() function.

Requiring user to add higher version of libsodium in package.accept_keywords and wait newer version to be stable needs some time, I think compile without system-libs(then econf uses libsodium inside shadowsocks-libev) would be a quick solution for now..
Comment 3 Yixun Lan archtester gentoo-dev 2016-09-07 01:44:26 UTC
(In reply to aihuxiaoxiongmao from comment #2)

in this case, I would simply add >=dev-libs/libsodium-1.0.8 restriction - best way of reflecting idea of upstream.

besides, all versions of net-proxy/shadowsocks-libev are in testing state (~keywords), we won't guarantee it work with the stable version of dev-libs/libsodium