[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to mantain a package... easily



Quoting Jaime Robles <jaime@kde.org> (2003-03-12 08:53:37 GMT):
> How can i mantain a package without doing every time the same job... 
> ?Is there any way to avoid checking all the files in /debian and editing the 
> Makefiles and so on eeeeeeeeevery time the sources are updated?
> 
> I mean... could it be possible to execute any command with any parameter like:
> "update_from_sources new_sources.tar.gz" to generate the same debian package 
> in the easy way?

I think from your question, what you're doing at present when a new
release comes out is:

$ tar xvfz <source>.tgz
$ cp -par <oldpkgdir>/debian <source>/

Debian packages come as an orig.tar.gz/diff.gz pair. Since all you
want to do is update orig.tar.gz, just do the first stage as usual
then do

$ zcat <whatever>.diff.gz | patch -p0

Now check for rejections -- these will either happen if the source
has changed beyond patch's recognition or if your patch has been
applied by upstream. (In the case of the latter, it'll notice and may
offer to revert the patch -- say no.)

For a more automated way of doing this, look at uupdate.

-- 
Andrew Stribblehill <ads@debian.org>
Systems programmer, IT Service, University of Durham, England



Reply to: