网络推荐



本广告位招租!

推荐给好友 上一篇 | 下一篇

Removing Firefox 2

BSD爱好者乐园8{2PR2[y1n

Firefox is a pretty popular browser.BSD爱好者乐园8{q6`3S1P$Z$v&m3Xd ?

It runs quickly.BSD爱好者乐园.Tcc/Yr+czu

It has a lot of plugsin. I use Web Developer and Firebug myself.

1D6\9l-PX2eHowever. All software ages. Hah, even this website ages.

#@5ymz S|QuFirefox 2 has a number of unfixed (to my knowledge) bug.BSD爱好者乐园5kF [e5hN

Solution: use Firefox 3.BSD爱好者乐园i2CIW9h

Sometimes it is just time to move on.BSD爱好者乐园[+{%H_vD-F,aU

BSD爱好者乐园??y-x2y4K?

Case in point: have you seen this?

# portaudit
Affected package: firefox-2.0.0.20_9,1
Type of problem: mozilla -- multiple vulnerabilities.
Reference: <http://portaudit.FreeBSD.org/49e8f2ee-8147-11de-a994-0030843d3802.html>

1 problem(s) in your installed packages found.

You are advised to update or deinstall the affected package(s) immediately.

eP'Z,a IWK3KHow to fix: upgrade. However, it's not that easy. There are a few dependants. I found the solution in the Internet. ;)BSD爱好者乐园0~+QW;E[l

The failed attempt

K/e6KocwZHere is how I'd normally try fixing this:

# portupgrade firefox
** Port marked as IGNORE: www/firefox:
        is forbidden: too many security issueshttp://www.vuxml.org/freebsd/922d2398-9e2d-11de-a998-0030843d3802.htmlhttp://www.vuxml.org/freebsd/49e8f2ee-8147-11de-a994-0030843d3802.html** Listing the failed packages (-:ignored / *:skipped / !:failed)
        - www/firefox (marked as IGNORE)

h2P(] EBq vI also tried other things, such as replaying firefox2 with firefox35. That failed.

qGX(io/] N$B#a;|
The search results
BSD爱好者乐园jM3qr.b-P

I searched and found:

BSD爱好者乐园x8d$q#?`u L

Which led me to:

BSD爱好者乐园T*mM"aGn+ay"K]e"e

The key point being:

  • A FreeBSD port of libxul-1.9 has been added as an alternative Gecko provider to Firefox 2. This can be used by setting WITH_GECKO=libxul in /etc/make.conf.
BSD爱好者乐园 f@+wAr7}$N

It is that new library which will be used instead of Firefox 2.

L$Dy2b?[O
The fix
BSD爱好者乐园nQ*Z:Ll

Here is what I did:

  1. I added the following to /etc/make.conf:
    # see http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2009-08/msg01231.html
    # see http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2009-08/msg01228.html
    #
    WITH_GECKO=libxul
  2. Which ports depend upon Firefox 2?
    # pkg_info | grep firefox
    firefox-2.0.0.20_9,1 Web browser based on the browser portion of Mozilla
    firefox-3.5.3,1     Web browser based on the browser portion of Mozilla
    
    # pkg_info -R firefox-2.0.0.20_9,1
    Information for firefox-2.0.0.20_9,1:
    
    Required by:
    gegl-0.0.22_6
    gimp-app-2.6.6_2,1
    librsvg2-2.26.0_1
  3. I upgraded those three ports:
    # portupgrade -f gegl gimp-app librsvg2

    U$z$k6H{ mThe -f is vital. Without it, only those ports which are not up-to-date will be compiled. The -f forces all specified ports to be 'upgraded' (i.e. recompiled and installed). Which is what we want here. Effectively, we are just recompiling these applications to replace the Firefox 2 dependencies and use libxul instead.

    JJF%w'w$|s2?v`b \Now to finish it all off:

    # pkg_delete firefox-2.0.0.20_9,1

[版权声明]BSD爱好者乐园站内文章,如来源不是互联网,则均系原创或翻译之作,可随意转载,或以此为基础进行演译,但务必以链接形式注明原始出处和作者信息,否则属于侵权行为。另对本站转载他处文章,俱有说明,如有侵权请联系本人,本人将会在第一时间删除侵权文章。
TAG: firefox Firefox
 

评分:0

我来说两句

seccode