Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415753 - www-client/firefox-10.0.4 USE=pgo does not set http_proxy
Summary: www-client/firefox-10.0.4 USE=pgo does not set http_proxy
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 14:37 UTC by Florian Steinel
Modified: 2012-12-15 19:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Steinel 2012-05-13 14:37:44 UTC
USE Flag pgo enabled.

if http_proxy is set firefox can't connecting to the URL http://localhost:8888/index.html ( obj-x86_64-unknown-linux-gnu/_profile/pgo/profileserver.py ).
unset the env in the ebuild:
--- /usr/portage/www-client/firefox/firefox-10.0.4.ebuild.orig  2012-05-13 13:10:25.000000000 +0200
+++ /usr/portage/www-client/firefox/firefox-10.0.4.ebuild       2012-05-13 16:34:52.000000000 +0200
@@ -103,7 +103,10 @@ pkg_setup() {
                ORBIT_SOCKETDIR \
                SESSION_MANAGER \
                XDG_SESSION_COOKIE \
-               XAUTHORITY
+               XAUTHORITY \
+               http_proxy \
+               HTTP_proxy \
+               HTTP_PROXY

        if ! use bindist; then
                einfo
Comment 1 Florian Steinel 2012-05-13 18:49:09 UTC
http_proxy must be unset in the pkg_compile function, not in pkg_setup.
I compiled Firefox with useflag pgo and this patch:
--- firefox-10.0.4.ebuild?revision=1.5  2012-05-13 19:59:08.000000000 +0200
+++ firefox-10.0.4.ebuild    2012-05-13 20:00:51.000000000 +0200
@@ -228,6 +228,10 @@ src_compile() {
        if use pgo; then
                addpredict /root
                addpredict /etc/gconf
+
+               # unset http_proxy - bug 415753
+               unset http_proxy
+
                # Reset and cleanup environment variables used by GNOME/XDG
                gnome2_environment_reset
Comment 2 Michael Mol 2012-07-08 23:16:28 UTC
I just encountered this myself, with www-client/firefox-10.0.5. My symptom? A Firefox window in my running X session, showing an error emitted by my proxy server about connecting to localhost:8888.
Comment 3 Jory A. Pratt gentoo-dev 2012-12-15 19:16:59 UTC
PGO useflag has been masked until such a time we can properly support it in gentoo. Soon as we can we will unmask and support pgo builds for all users. At this time even upstream is having problems supporting pgo builds in Linux. I will continue to track there upstream to determine when best we can come back and review all pgo build failures. Please ignore resolution we no longer have an option for later.