From owner-freebsd-ports@FreeBSD.ORG Wed Aug 3 06:42:37 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 582EB16A41F; Wed, 3 Aug 2005 06:42:37 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from eastrmmtai07.cox.net (eastrmmtai07.cox.net [68.230.240.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CE7043D45; Wed, 3 Aug 2005 06:42:36 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by centrmmtao03.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050803015439.KUPE9652.centrmmtao03.cox.net@mezz.mezzweb.com>; Tue, 2 Aug 2005 21:54:39 -0400 Date: Tue, 02 Aug 2005 20:56:05 -0500 To: "Adam Weinberger" References: <200508030114.j731EKZQ067861@blue.virtual-estates.net> <42F01F22.3000401@magnesium.net> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <42F01F22.3000401@magnesium.net> User-Agent: Opera M2/8.02 (Linux, build 1272) Cc: ports@freebsd.org, gnome@freebsd.org, mi@aldan.algebra.com Subject: Re: leaner and meaner www/firefox X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 06:42:37 -0000 On Tue, 02 Aug 2005 20:34:26 -0500, Adam Weinberger wrote: > Jeremy Messenger wrote: >> On Tue, 02 Aug 2005 20:14:20 -0500, Mikhail T. >> 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@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@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org