leaner and meaner www/firefox

Jeremy Messenger mezz7 at cox.net
Wed Aug 3 06:42:37 GMT 2005


On Tue, 02 Aug 2005 20:34:26 -0500, Adam Weinberger <adamw at magnesium.net>  
wrote:

> Jeremy Messenger wrote:
>> On Tue, 02 Aug 2005 20:14:20 -0500, Mikhail T. <mi at aldan.algebra.com>   
>> wrote:
>>
>>> Attached are the diffs to make www/firefox build without its own jpeg,
>>> zlib, dbm, nspr, and nss using respected ports or FreeBSD's main
>>> libraries (-lz for zlib and -lc for dbm) instead.
>>>
>>> I'm using it right now (on FreeBSD/amd64-5.4-stable). Anyone else cares
>>> to try?
>>>
>>> You'll need very recent versions of devel/nspr and security/nss ports.
>>> The earlier version of nspr (4.4.1) is too old and does not supply some
>>> of the functionality needed by firefox.
>>>
>>>     -mi
>>>
>>> cvs diff: Diffing .
>>> Index: Makefile
>>> ===================================================================
>>> RCS file: /home/pcvs/ports/www/firefox/Makefile,v
>>> retrieving revision 1.127
>>> diff -U2 -p -r1.127 Makefile
>>> --- Makefile    30 Jul 2005 04:36:55 -0000    1.127
>>> +++ Makefile    3 Aug 2005 01:11:40 -0000
>>> @@ -8,5 +8,5 @@
>>>  PORTNAME=    firefox
>>>  PORTVERSION=    1.0.6
>>> -PORTREVISION=    1
>>> +PORTREVISION=    2
>>>  PORTEPOCH=    1
>>>  CATEGORIES=    www
>>> @@ -18,6 +18,8 @@ MAINTAINER=    gnome at FreeBSD.org
>>>  COMMENT=    Web browser based on the browser portion of Mozilla
>>> -LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
>>> -        png.5:${PORTSDIR}/graphics/png
>>> +LIB_DEPENDS=    jpeg:${PORTSDIR}/graphics/jpeg    \
>>> +        nspr4:${PORTSDIR}/devel/nspr    \
>>> +        png:${PORTSDIR}/graphics/png    \
>>> +        nss3:${PORTSDIR}/security/nss
>>  I like it, but change those back to jpeg.9, png.5 and etc.
>>  Thanks,
>> Mezz
>
> Why?

http://lists.freebsd.org/pipermail/cvs-ports/2005-July/068900.html

and other one in freebsd-gnome in AbiWord topic. Tell exactly library  
version is a better solution than none with just PORTREVISION.

without library version:
==================================
1) User doesn't update dependenies as in his practice.
2) CVSup
3) Install new libraries and apps.
4) User have the problems in runtime, we end up have to chase to tell him  
where the problem is. Possible more than just a dependency. He never see  
the problem, because of PORTREVISION never tell you that need to updated  
dependencies.
==================================

with library version:
==================================
1) User doesn't update dependenies as in his practice.
2) CVSup
3) Install new libraries and apps.
4) Oops, the new libraries and apps tell him that they need the newer  
dependencies by can't find library error and old is already exist. Already  
tell what's wrong early. No chase and no messy.
==================================

Yes, I do know about the new feature (ability to depend on versioned  
installed package) in bsd.port.mk, but it's an experimental feature and  
new.

Cheers,
Mezz

> # Adam


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org


More information about the freebsd-ports mailing list