Some more queries on packaging with Git
martin f krafft
madduck at madduck.net
Mon Oct 22 07:59:41 UTC 2007
also sprach Kumar Appaiah <akumar at ee.iitm.ac.in> [2007.10.19.1252 +0200]:
> 1. He has not spoken on the .orig.tar.gz, where to put it etc.;
> that is not understood by default. I assume it is in the parent
*Every* Debian build tool puts or expects it in the parent
directory, so I don't see a need to mention this.
> Another thing is, if we wish to generate the orig.tar.gz prior to
> the build, would it be useful to check out the upstream branch and
> make the orig.tar.gz using git archive using the
> poor-mans-gitbuild script itself?
You are missing the point of poor-mans-gitbuild. It's not
git-buildpackage or unperish. It is designed to make a point.
Before you go out and try to script this all, have a look at
git-buildpackage or http://liw.iki.fi/liw/unperish/
> Also, all the debs end up in the parent directory. Isn't this
> a trifle clumsy? Shouldn't we be able to move the files to
> a separate `build-area' directory, like in svn-buildpackage?
svn-buildpackages builds in build-area/packagename-0.12 which is why
the files end up in build-area. I never understood why they do that
instead of using the -i/-I flags properly and generate the stuff
from the same tree.
> 2. I now have adapted Martin's poor-mans-gitbuild script to do one
> additional thing, which is a fakeroot ./debian/rules clean. IMO,
> that helps me because it cleans up the build, and it also helps me
> verify whether the upstream packaging is `distclean clean'.
I find it a bad idea to clean automatically after a build. If there
are problems, you may not immediately find them, if you want to
rebuild it takes ages, and so on. Using clean when you want to
clean, and then checking for distclean is all good, but there is no
reason to do this all the time.
Instead, build from Git, configure .gitignore properly and
git-status or git-ls-files will tell you what's unexpected.
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net at madduck
last year, out in california, at a pc users group, there was a demo of
smart speech recognition software. before the demonstrator could begin
his demo, a voice called out from the audience: "format c, return.
yes, return." a short demo it was.
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/vcs-pkg-discuss/attachments/20071022/5b8eab04/attachment.pgp
More information about the vcs-pkg-discuss