On Mon, Aug 15, 2005 at 02:01:14PM +0300, Mikko Rapeli wrote: > > > Nevertheless, maybe we should define the upstream version in an external > > file and add a target that upgrades the package to a user defined upstream > > version. This would include to cp the whole source tree to a directory names > > ${pkgname}-${version} (e.g. cp -r mozilla-thunderbird-1.0.2 to > > mozilla-thunderbird-1.0.6), upgrade the upstream tarball, remove the old > > upstream tarball (e.g. rm > > ${pkgname}-${oldversion}/archives/${sourcetarball-prefix}-${version}-${sourcetarball-postfix}. > > The final steps would be to produce a new orig.tar.gz (tar cvzf > > ${pkgname}_${uversion}.orig.tar.gz > > ${pkgname}-${version}/archives/) and prepend some boilerplate code to the > > debian/changelog file (e.g. a valid entry, with an initial comment: new > > upstream version ${version}). > > > > What do you think? > > It's a good idea. I've tried doing it manually bug so far I've failed. > One problem at least is that "clean" debian/rules target wants to do > "dounpatch", which of course fails if the whole build-dir is missing. > > (For the other issues, I must re-read the policy and other manuals as > I don't seem to grasp the differences between dpkg-source et al -- > a stupid developer error..) > > > > The makefile dependencies could be better (i.e. get-orig-source > > > provides dfsg source and build depends on dfsg source etc). > > > > > please no dependencies. The upgrade tarball is a manual operation and should > > not be done automatically ... in any case. > > With dependency I mean "if archives/*dfsg.tar.gz does not exists, create > it through get-orig-source". The end result -- upgrade to new upstream > -- is the same as your suggestion above which I suppose you like better. > :) >
Mikko, you want to update your patch to what we found? I think prepending the changelog is not a good idea. Instead one should be able to use update-orig target to get the upstream version that is currently on top in the changelog :). Maybe use the variable UPSTREAM_VERSION instead of VERSION in the rules file. Further, please consider to make the upstream version detection automatic. For instancce you could use: expr "$(cat debian/changelog | head -n1)" : '.*[(]\(.*\)-.*[)].*$' to get the upstream version as currently documented in changelog. Of course repackaging the orig.tar.gz would still be necessary. - Alexander p.s. please take care that the bug is listed as To: or CC: when replying to this mail (e.g. /reply-all/). -- GPG messages preferred. | .''`. ** Debian GNU/Linux ** Alexander Sack | : :' : The universal [EMAIL PROTECTED] | `. `' Operating System http://www.asoftsite.org | `- http://www.debian.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]