Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 412573

Summary: net-libs/libproxy-0.4.7 should use a pacrunner (webkit no longer crashes now)
Product: Gentoo Linux Reporter: Lucian Muresan <lucianm>
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=366791
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild patch to libproxy-0.4.7 to enable webkit

Description Lucian Muresan 2012-04-18 21:15:25 UTC
I guess the problem described in #366791 no longer occurs with current net-libs/webkit-gtk-1.8.0, and right now libproxy has no ability to really show its strength, to get the "right" proxy for a given URL from a PAC file...

Reproducible: Always

Steps to Reproduce:
1.emerge --oneshot libproxy

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-libs/libproxy-0.4.7-r1::googoo  USE="-gnome -kde -mono -networkmanager -perl -python -test -webkit"

2.  _PX_DEBUG=1 ftp_proxy=pac+ftp://server/path/to/proxy.pac proxy ftp://ftp.mozilla.org/pub/ls-lR.gz

Actual Results:  
Using config: 23envvar_config_extension
Using ignore:
Config is: pac+http://server/path/to/proxy.pac
PAC received!
Unable to find a required pacrunner!
direct://

Expected Results:  
Config is: pac+http://server/path/to/proxy.pac
PAC received!
Using pacrunner: 26webkit_pacrunner_extension
Pacrunner returned: PROXY proxy-server-you-should-use:port
http://proxy-server-you-should-use:port
Comment 1 Lucian Muresan 2012-04-18 21:17:28 UTC
Created attachment 309463 [details, diff]
ebuild patch to libproxy-0.4.7 to enable webkit

Now, with net-libs/webkit-gtk-1.8.0:2 or net-libs/webkit-gtk-1.8.0:3 this no longer crashes with USE="-kde webkit", even with nvidia drivers. See also #366791
Comment 2 Lucian Muresan 2012-04-18 21:23:12 UTC
In my description above, please ignore the fact that I'm emerging my already modified ebuild from my overlay, it's with USE="-webkit" anyway so actually does the same as the one from the official tree.
Also, I a little typo/copy/paste error, allowed "pac+  " scheme is only "pac+http", not "pac+ftp", but the result is the same. I had to edit the output texts used to show how to reproduce, that's the reason for the typo.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-10-16 08:06:57 UTC
Fixed in libproxy-0.4.10; sorry for the long wait!

>*libproxy-0.4.10 (16 Oct 2012)
>
>  16 Oct 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  libproxy-0.4.6-r3.ebuild, libproxy-0.4.7.ebuild, +libproxy-0.4.10.ebuild,
>  +files/libproxy-0.4.10-disable-pac-test.patch,
>  +files/libproxy-0.4.10-mozjs185.pc.patch, metadata.xml:
>  Version bump; fixes buffer overflow (bug #438146, CVE-2012-4504, thanks to
>  Agostino Sarubbo). Re-add USE=webkit since it now works correctly (bug
>  #412573, thanks to Lucian Muresan) and it enable by default to provide PAC
>  and WPAD support. Alternatively, spidermonkey could be used for PAC instead
>  (but might lead to firefox crashes, see bug #373397). Update license.