net-proxy/privoxy: fix bug 579756
authorAndrew Savchenko <bircoph@gentoo.org>
Wed, 13 Apr 2016 11:01:28 +0000 (14:01 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Wed, 13 Apr 2016 11:01:46 +0000 (14:01 +0300)
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>
net-proxy/privoxy/privoxy-3.0.24.ebuild

index 3bbb1189810b32f89aea9796347224125c35ed6b..0f824fab10d2a8bd61f7d18c68b2cd53aa0030f0 100644 (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) \