[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent
 thread


Re: How to use xdelta?
by sponix2ipfw on Monday 05/Sep/2005, @16:25
Here goes nothing.. I don't have my box right in front of me to check against, but I am going to do my best to give a working example of what I did to upgrade from kde-3.4.0 to kde-3.4.1 with xdelta files

The tricky part (what took me forever to figure out) was it was looking to apply the *.xdelta patches against the tarBalls (.tar files) not the source dir's, or the tar.bz2 files... (found this out by actually doing a vim (edit) on the xdelta file itself and it shows the name of the file it expects to patch against)

So, something like this...
for i in *.tar.bz2;do bunzip2 -v $i;done
will take the bz2 off and leave you with a bunch of tarBalls
doing an ls on the dir should give you filenames like:
kdebase-3.4.0.tar
kdelibs-3.4.0.tar
and so on

and then for i in *.xdelta;do xdelta patch $i;done
will apply all the xdelta files

one by one it would be:
xdelta patch kdebase-3.4.0-3.4.1.xdelta
and it should patch against your kdebase-3.4.0.tar file
and the file it will spit out should be named kdebase-3.4.1.tar

One more thing.. I've you've played with the sources already (built them and then repacked them) the odds are its checksum will fail (mine did). So try to work with tarBalls you haven't tinkered with yet.

I've never seen such crazy stuff before, so I ended up logging a couple hours a day, for close to a week tinkering before I stumbled on it. When the man page says it patches from one file to another you just never expect it to be a plain .tar file with no compression *Grin*.

If this helps you, or you still need help, feel free to spam me at sponix2ipfw@hotmail.com I get plenty of viagra mail there anyway, a little Linux question might brighten my day...
  Related Links
 ·   Articles on KDE Official News
 ·   Also by sponix2ipfw
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: How to use xdelta?
by Nicolas Goutte on Tuesday 06/Sep/2005, @07:59
The answer why not .tar.bz2 is simple: try to xdelta a bzi2-ed file. You will see that the xdelta file is huge. (The problem, which is not xdelta specific) is that already for a (uncompressed) changed bit, you can have very different compression streams.)

So you can use xdelta only on uncompressed tar files.

Have a nice day!
[ Reply To This | View ]
  • Re: How to use xdelta?
    by Josh MacDonald on Thursday 28/Sep/2006, @01:23
    Actually, xdelta3 implements specific "external compression" routines, so that it recognizes compressed inputs and decompresses them to temporary files. This appears somewhere in the code:

    { "xdelta3", "-cfq", "xdelta3", "-dcfq", "X", "\xd6\xc3\xc4", 3, RD_NONEXTERNAL },
    { XDELTA1PATH,"delta", XDELTA1PATH, "patch", "1", "%XD", 3, 0 },
    { "bzip2", "-cf", "bzip2", "-dcf", "B", "BZh", 3, 0 },
    { "gzip", "-cf", "gzip", "-dcf", "G", "\037\213", 2, 0 },
    { "compress", "-cf", "uncompress", "-cf", "Z", "\037\235", 2, 0 },
    [ Reply To This | View ]

 
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "coffee? kde developers drink tea ;)" -- Dirk Mueller
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]