[buildd-tools-devel] Bug#662785: Bug#662785: sbuild fails to build package when passed a directory

Yves-Alexis Perez corsac at debian.org
Tue Mar 6 19:16:16 UTC 2012


On mar., 2012-03-06 at 15:43 +0000, Roger Leigh wrote:
> On Tue, Mar 06, 2012 at 12:16:39PM +0100, Yves-Alexis Perez wrote:
> > I'm trying to replace my pbuilder/cowbuilder based build-setup by
> > sbuild. Right now I have an issue when I try to build a package from a
> > debian source folder.
> > 
> > Reading the manpage, it seems that theres are two ways to call sbuild:
> > 
> > - sbuild foo.dsc
> > - sbuild folder
> > 
> > with a third form beeing just sbuild, where it uses $PWD as the
> > argument. It seems that those don't work, because sbuild tries to call
> > dpkg-source -b $PWD, which fails because it expects the orig.tar.gz to
> > be in the *current* folder, while the tarballs are usually in the parent
> > folder. A way to circumvent this is to call dpkg-source -b . instead of
> > dpkg-source -b $PWD.
> > 
> > I'm not too sure how pdebuild handles that but it does support this
> > mode.
> 
> Maybe we just need to change the CWD prior to running dpkg-source?

I don't think that would work, dpkg-source needs to be run from the
source folder afaict.

> I'll take a closer look when I can--I'm moving house this week, so
> it might be a week or two before I have internet connectivity and
> free time.
> 
Ok.

-- 
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20120306/5a2fa408/attachment.pgp>


More information about the Buildd-tools-devel mailing list