From owner-freebsd-questions@FreeBSD.ORG Wed Mar 14 18:47:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 88C1916A400 for ; Wed, 14 Mar 2007 18:47:51 +0000 (UTC) (envelope-from wojtek@tensor.gdynia.pl) Received: from chylonia.3miasto.net (chylonia.3miasto.net [83.12.228.78]) by mx1.freebsd.org (Postfix) with ESMTP id DCFE813C487 for ; Wed, 14 Mar 2007 18:47:50 +0000 (UTC) (envelope-from wojtek@tensor.gdynia.pl) Received: from chylonia.3miasto.net (localhost [127.0.0.1]) by chylonia.3miasto.net (8.13.8/8.13.4) with ESMTP id l2EIloTT014452; Wed, 14 Mar 2007 19:47:50 +0100 (CET) (envelope-from wojtek@tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by chylonia.3miasto.net (8.13.8/8.13.4/Submit) with ESMTP id l2EIll1f014447; Wed, 14 Mar 2007 19:47:50 +0100 (CET) (envelope-from wojtek@tensor.gdynia.pl) X-Authentication-Warning: chylonia.3miasto.net: wojtek owned process doing -bs Date: Wed, 14 Mar 2007 19:47:47 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@chylonia.3miasto.net To: Gary Kline In-Reply-To: <20070314155326.GA23363@thought.org> Message-ID: <20070314194527.W13133@chylonia.3miasto.net> References: <20070314155326.GA23363@thought.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Mailing List Subject: Re: binary patches? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 18:47:51 -0000 > Regarding most (or many) of the port changes--say, upgrading > foo-2.1.9_5 to foo-2.1.9_6, if the upgrade could be done by > downloading a binary diff file, could the resulting > /usr/local/bin/foo-2.1.9_6 be achieved by downloading a > relatively small binary patch? Seems to me that smaller scale > upgrades could be done this way in preference to re-compiling > ports or downloading entire pacakes. --Same would go for any > dependencies. > > Why is this a bad idea! > because if you change say 5 lines in program source of 1MB binary program, resulting new 1MB binary will be MUCH different byte-by-byte mostly because of address shifting so lots of pointers to code (or data, rodata) will change. so diff will be big. recompiling is OK anyway, because you always recompile to your machine (assuming you set CPUTYPE in make.conf)