general packaging question
Hi, I've package knetstats for Debian. Currently I ran dh_make and did the packaging. dh_make created the debian/ subfolder and I did the necessary changes to build the package. All is fine till here. My question is: Currently knentstats is at version 1.6.1. How would I repackage knetstats when version 1.6.2 is released ? If, then, I would re-run dh_make, my old settings would be gone because dh_make would create a new debian/ subfolder for knetstats 1.6.2. All my changelog details would be gone. How would I then add entry of the old changelog into the current knetstats package i.e. 1.6.2 ? I hope there is a proper way to tackle such situations. Thanks, Ritesh -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." "Stealing logic from one person is plagiarism, stealing from many is research." "The great are those who achieve the impossible, the petty are those who cannot - rrs" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: general packaging question
Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > Hi, > > I've package knetstats for Debian. > > Currently I ran dh_make and did the packaging. dh_make created the debian/ > subfolder and I did the necessary changes to build the package. All is fine > till here. > > My question is: > Currently knentstats is at version 1.6.1. > How would I repackage knetstats when version 1.6.2 is released ? If, then, I > would re-run dh_make, my old settings would be gone because dh_make would > create a new debian/ subfolder for knetstats 1.6.2. All my changelog details > would be gone. > > How would I then add entry of the old changelog into the current knetstats > package i.e. 1.6.2 ? If the diff.gz contains only files in the debian directory (i.e. your changes are organized in patches, or you don't have source changes), then you can simply copy the debian directory to the new source tree and add a new changelog entry the usual way. If you do have changes to the original source tree, I would apply the diff.gz to it: mv knetstats_1.6.2.tar.gz knetstats_1.6.2.orig.tar.gz tar -xzf knetstats_1.6.2.orig.tar.gz cd knetstats-1.6.1/ zcat ../knetstats_1.6.1-$rev.diff.gz | patch -p1 and then look at the hunks that were rejected. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive)
Re: general packaging question
On Tue, Nov 14, 2006 at 03:00:40PM +0530, Ritesh Raj Sarraf wrote: > Hi, Hello, > My question is: > Currently knentstats is at version 1.6.1. > How would I repackage knetstats when version 1.6.2 is released ? There are several ways. Personally, I just get the new upstream tarball, unpack it, rename things (the tarball and the unpacked directory), and copy over the debian/ directory from the previous version. Then I make changes again. That method only really works if you have no debian-specific patches outside debian/. If you do, you probably want to use uupdate. That does all the above for you, except adding the debian directory, plus it applies the previous version's diff.gz. So that adds all debian-specific things (including the debian/ directory). > If, then, I would re-run dh_make, my old settings would be gone because > dh_make would create a new debian/ subfolder for knetstats 1.6.2. If I understood it correctly, dh_make will actually keep your changes (if you had them in the tree when running it). I've never used it myself, though. Packages work fine without rerunning dh_make. > How would I then add entry of the old changelog into the current knetstats > package i.e. 1.6.2 ? When you have the new tree prepared, dch. The entry is already there, made by uupdate. > I hope there is a proper way to tackle such situations. If there wouldn't, I'm sure someone would have created one real soon. :-) Thanks, Bas -- I encourage people to send encrypted e-mail (see http://www.gnupg.org). If you have problems reading my e-mail, use a better reader. Please send the central message of e-mails as plain text in the message body, not as HTML and definitely not as MS Word. Please do not use the MS Word format for attachments either. For more information, see http://pcbcn10.phys.rug.nl/e-mail.html signature.asc Description: Digital signature
Re: general packaging question
On Tue, Nov 14, 2006, Frank Küster wrote: > > How would I then add entry of the old changelog into the current knetstats > > package i.e. 1.6.2 ? > If the diff.gz contains only files in the debian directory (i.e. your > changes are organized in patches, or you don't have source changes), > then you can simply copy the debian directory to the new source tree and > add a new changelog entry the usual way. Fortunately, uupdate takes care of this task in both cases. -- Loïc Minier <[EMAIL PROTECTED]> 10 SIN 20 GO TO ROBOT HELL -- Temple of Robotology -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: general packaging question
On 2006-11-14, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > How would I then add entry of the old changelog into the current knetstats > package i.e. 1.6.2 ? > > I hope there is a proper way to tackle such situations. apt-get install devscripts man uupdate it does exactly what you ask for. /Sune -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]