Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2007 19:47:47 +0100 (CET)
From:      Wojciech Puchar <wojtek@tensor.gdynia.pl>
To:        Gary Kline <kline@tao.thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: binary patches?
Message-ID:  <20070314194527.W13133@chylonia.3miasto.net>
In-Reply-To: <20070314155326.GA23363@thought.org>
References:  <20070314155326.GA23363@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 	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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070314194527.W13133>