net-proxy/privoxy: fix bug 579756

Warn if threads are disabled, as this mays slow down privoxy significantly.

Package-Manager: portage-2.2.28
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
This commit is contained in:
Andrew Savchenko
2016-04-13 14:01:28 +03:00
parent d5c405545e
commit 879e9d8dec

View File

@@ -30,6 +30,15 @@ REQUIRED_USE="toggle? ( editor )"
S="${WORKDIR}/${P%_*}-${PRIVOXY_STATUS}"
pkg_pretend() {
if ! use threads; then
ewarn
ewarn "Privoxy may be very slow without threads support, consider to enable them."
ewarn "See also http://www.privoxy.org/faq/trouble.html#GENTOO-RICERS"
ewarn
fi
}
pkg_setup() {
enewgroup privoxy
enewuser privoxy -1 -1 /etc/privoxy privoxy
@@ -43,7 +52,6 @@ src_prepare() {
}
src_configure() {
econf \
$(use_enable acl acl-support) \
$(use_enable editor) \