Debian Developers - Binary patching .deb files

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > September 2004 > Binary patching .deb files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Binary patching .deb files
Pedro Côrte-Real

2004-09-04, 5:51 pm

Daniel Burrows

2004-09-04, 5:51 pm

Andrew Suffield

2004-09-04, 5:51 pm

On Sat, Sep 04, 2004 at 07:07:13PM -0400, Daniel Burrows wrote:
> On Saturday 04 September 2004 06:56 pm, Pedro Côrte-Real wrote:
>
> I did this back in 2000 or so and several other people have done this since
> then. You might want to look in the archives to read up on the practical
> problems with putting this on the archive (which is the real issue since,as
> you probably discovered, it takes about an afternoon or so to come up with
> debdiff/debpatch scripts based on xdelta).


Plus, even if you can get it into the archive, it's not all that
useful. The user would need a copy of the previous .deb file. They
might still have it, but there's a pretty good chance that they don't.

--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : http://www.debian.org/ |
`. `' |
`- -><- |

Daniel Burrows

2004-09-04, 8:47 pm

Milan Jurik

2004-09-05, 7:47 am

Hi,

On Sun, 5 Sep 2004, Andrew Suffield wrote:

> On Sat, Sep 04, 2004 at 07:07:13PM -0400, Daniel Burrows wrote:
t[vbcol=seagreen]
since[vbcol=seagreen]
al[vbcol=seagreen]
e, as[vbcol=seagreen]
ith[vbcol=seagreen]
>
> Plus, even if you can get it into the archive, it's not all that
> useful. The user would need a copy of the previous .deb file. They
> might still have it, but there's a pretty good chance that they don't.
>


Are you sure?

The situation:

1) I bought a release on CD-ROMs
2) At home I have only an analog modem line
3) A new revision -> update

Any other questions?

> --
> .''`. ** Debian GNU/Linux ** | Andrew Suffield
> : :' : http://www.debian.org/ |
> `. `' |
> `- -><- |
>


Best regards,

Milan Jurik
Andreas Barth

2004-09-05, 7:47 am

* Daniel Burrows (dburrows@debian.org) [040905 03:10]:
> On Saturday 04 September 2004 07:25 pm, Andrew Suffield wrote:
[vbcol=seagreen]
> Yeah, that's what I meant. Shoulda been clearer. Basically, there are a
> whole raft of practical problems in terms of which and how many diffs to keep
> around. You have the same problems with Packages files (I think people suggest
> distributing patches to Packages even more often).


I think partially debs are quite interessting for the stable security
updates (and I think, it's quite obvious to keep all diffs to the
offical stable version around, as there are not too many updates).
Also, I would like much more if the "partitiell deb" (pdeb) contains
not a "binary diff", but just the new files (and the control section,
and a list of removed files, if any; perhaps this list also as part of
the control section?). This has the further advantage that the pdeb
can be installed even if the old deb is not around any more - it's
enough if the old deb is unpackaged in the system. However,
disadvantage is that this needs changes in dpkg.


Cheers,
Andi
--
http://home.arcor.de/andreas-barth/
PGP 1024/89FB5CE5 DC F1 85 6D A6 45 9C 0F 3B BE F1 D0 C5 D1 D9 0C


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Pedro Côrte-Real

2004-09-05, 7:47 am

On Sat, 2004-09-04 at 21:09 -0400, Daniel Burrows wrote:
> On Saturday 04 September 2004 07:13 pm, you wrote:
>
> No, I think I didn't. I did the patching slightly differently: I unpacked
> the whole archive and diffed individual files. It's not clear that this is
> better or worse than your approach, but it does have the advantage that you
> could theoretically apply in-place (note that this is dangerous if the user's
> package is different from the official Debian version, though).


Makes sense.

> The major problem is simply that it's not practical to distribute patches to
> unstable (because you can't keep diffs for every pair of versions),


My idea was to only have the diff between the last two versions. This
way the people that do frequent updates would download much less (around
10%). The archive would then increase those same 10%. This would also
make security fixes much smaller.

Pedro.

Daniel Burrows

2004-09-05, 5:52 pm

Nikita V. Youshchenko

2004-09-07, 3:38 am



> On Saturday 04 September 2004 07:25 pm, Andrew Suffield wrote:
>
> Yeah, that's what I meant. Shoulda been clearer. Basically, there are
> a
> whole raft of practical problems in terms of which and how many diffs to
> keep
> around. You have the same problems with Packages files (I think people
> suggest distributing patches to Packages even more often).


I would love to use such tools to reduce traffic needed to keep local mirror
up-to-date.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com