Control: severity 793060 minor Control: retitle 793060 Want dgit build to run dpkg-buildpackage only once
Richard Hartmann writes ("Bug#793060: dgit ignores build-opts"): > Quoth the manpage: > dgit [dgit-opts] build|sbuild|build-source [build-opts] > > Quoth the sourcecode: > Nervermore. > > Long story short, running e.g. > dgit build -d > > will not install dependencies. Patching in -d into @dpkgbuildpackage > works as intended. I think the bug here is more subtle. If I try dgit -D build -d (which shows the actual commands run by dgit), dgit runs dpkg-buildpackage twice: once to clean the tree, and once to do the build. The second gets -d, but the first does not. That's infelicitous. I think it would be better if `build' only ran dpkg-buildpackage once, if the cleanmode is `dpkg-source'. (And it should run dpkg-buildpackage with -nc otherwise, since it will have cleaned the tree some other way.) But, addressing the problem you are experiencing: > Long story short, running e.g. > dgit build -d > > will not install dependencies. Patching in -d into @dpkgbuildpackage > works as intended. Three points: 1. dpkg-buildpackage -d won't install dependencies. The -d just suppresses the check. So I think maybe you are confused ? 2. If you just use dgit -wdd build aka dgit --clean=dpkg-source-d build I think everything will work as it ought. If you don't use -wdd then you will find that push fails due to the lack of build dependencies. 3. When you say > Patching in -d into @dpkgbuildpackage do you mean actually editing the source code for dgit ? But --dpkg-buildpackage:-d can be used from the command line to the same effect. (Although it's not the best way to achieve this; see point 2.) Thanks, Ian. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org