Control: retitle -1 pbuilder: Add --profiles flag Hi, > On 18 Nov 2016, at 08:22, Samuel Thibault <sthiba...@debian.org> wrote: > > Package: pbuilder > Version: 0.226.1 > Severity: wishlist > > Hello, > > When bootstrapping a package which depends on itself (directly or > through a loop), one uses e.g. > > dpkg-buildpackage -Pstage1 > > which disables the self-dependency in Build-Depends. > > However, using > > pdebuild --debbuildopts -Pstage1 > > tries to install the self-dependency, I have to explicitly remove the > dependency from debian/control. > > It would be nice if pdebuild had a way to specify a build profile, so > that it only tries to install what is needed for the bootstrap.
There's no flag that I know of (we should probably add one), but setting DEB_BUILD_PROFILES should work and be honoured by all the resolvers (except gdebi). --debbuildopts doesn't look inside its argument, hence why the resolvers don't know to use certain build profiles. Regards, James