Re: Creating patches
"Isak Savo" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
2008/3/7, Hylke Donker <[email protected]>: > > > On Fri, Mar 7, 2008 at 10:49 AM, Jan Niklas Hasse <[email protected]> wrote: > > Hi, > > > > Hm.. Maybe you could just use "bspatch" directly. Just create a patch for > every changed file (and import it), and install new files. > > I don't know how large your program is, but i think it would be easy to > write a script which helps you. > > The problem is that you will need bsdiff installed on the destination > system. > > How does autopackage handle binary patches for C++ programs? > > It replaces the current binary file with the one in the package and keeps a > backup of the old file, if I am not mistaken(correct me if I'm wrong). > I don't know the name of the tool we use, but inside the package, we keep one version of the binary plus a binary diff so that we can re-create the other version on demand. So, at installation, installExe does: 1) Check system what c++ abi it supports 2a) If c++ abi v1 => copy binary to install dir 2b) else, apply diff to the binary and install the created file to installdir. The binary diff is much smaller than the full binary, so we save quite some space for large binaries by using diff instead of having both binaries in the payload. -Isak -Isak --------------------------------------------------------------------- To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected] For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]