On 24/08/2011 08:47, Chow Loong Jin wrote: > On 24/08/2011 02:01, Guido Günther wrote: >> On Tue, Aug 23, 2011 at 04:03:19PM +0800, Chow Loong Jin wrote: >>> On 23/08/2011 15:32, Guido Günther wrote: >>>> Hi Jérémy, >>>> On Sun, Oct 25, 2009 at 12:12:09PM +0100, Jérémy Lal wrote: >>>>> I noticed bzr-buildpackage is able to get upstream tarball >>>>> with get-orig-source or uscan, if they exist. >>>>> Should git-buildpackage (and others) provide the same feature ? >>>> >>>> git-import-orig has --uscan. >>> >>> Maybe git import-orig should also get a --get-orig-source option. >> is get-orig-source really a good interface? Wouldn't it make more sense >> to fix uscan if needed? > > Well sometimes you need to do special things to get a DFSG clean tarball. > > On the other hand, I think many get-orig-source targets don't perform as > specified in [1]. More specifically, this part: >> This target may be invoked in any directory, and should take care to clean >> up any temporary files it may have left. > > From past experiences, many get-orig-source targets can't be invoked outside > of > the source directory, and even if they could, you'd have some debian/ > directory > detection hackery looking like.. > DEBIAN_DIR = $(dir $(firstword $(MAKEFILE_LIST)) > > which doesn't support paths with spaces in them. (who needs spaces in paths, > eh?) > > Some get-orig-source targets also prefer to get the current tarball, rather > than > the latest tarball as mentioned in [1]. > > Perhaps uscan should be fixed to get a --script option to mangle tarballs > after > downloading them. And possibly also to get VCS support for packages that don't > have upstream tarballs. > > How does bzr buildpackage do it anyway? > > [1] http://www.debian.org/doc/debian-policy/ch-source.html >
http://wiki.debian.org/SandroTosi/Svn_get-orig-source is a perfect example of what I just mentioned. It doesn't work outside of the source directory (dpkg-pasrechangelog won't find a debian/changelog), and it creates an orig tarball for the current revision (as parsed out of dpkg-parsechangelog) rather than the new revision. -- Kind regards, Loong Jin
signature.asc
Description: OpenPGP digital signature