[buildd-tools-devel] Bug#700317: sbuild -s fails if package has Build-Depends-Indep

Johannes Schauer josch at debian.org
Sun Jan 10 18:22:45 UTC 2016


Hi,

Quoting Ian Campbell (2016-01-10 18:22:43)
> > > Actually, a second thing I'm not sure of, given that -s says it will run
> > > dpkg-buildpackage without -B, asking therefore for a .dsc as well as arch and
> > > indep binaries to be built, shouldn't sbuild therefore be installing all the
> > > build-deps, both -dep and -indep?
> > 
> > Yes it should and in my tests it does. Can you show me a situation in which it
> > does not? I see your original report was against sbuild 0.63.2-1.1 so maybe
> > this problem is fixed by now?
> 
> Using 0.67.0 I tried:
> 
> dget http://httpredir.debian.org/debian/pool/main/x/xen/xen_4.6.0-1.dsc
> sbuild -d sid -s xen_4.6.0-1.dsc
> cd xen-4.6.0 && sbuild -d sid -s
> 
> But both sbuild invocations were blocked before this issue could arise
> with:
> 
>     Check architectures
>     -------------------
> 
>     Can't locate Dpkg/Arch.pm in @INC (you may need to install the Dpkg::Arch module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at -e line 3.
>     BEGIN failed--compilation aborted at -e line 3.
>     Can't locate Dpkg/Arch.pm in @INC (you may need to install the Dpkg::Arch module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at -e line 3.
>     BEGIN failed--compilation aborted at -e line 3.
>     Can't locate Dpkg/Arch.pm in @INC (you may need to install the Dpkg::Arch module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at -e line 3.
>     BEGIN failed--compilation aborted at -e line 3.
>     Can't locate Dpkg/Arch.pm in @INC (you may need to install the Dpkg::Arch module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at -e line 3.
>     BEGIN failed--compilation aborted at -e line 3.
>     Can't locate Dpkg/Arch.pm in @INC (you may need to install the Dpkg::Arch module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at -e line 3.
>     BEGIN failed--compilation aborted at -e line 3.
>     xen_4.6.0-1.dsc: amd64 not in arch list or does not match any arch wildcards: amd64 arm64 armhf i386 all -- skipping
> 
> Which happens even without the -s.
> 
> I'm not sure if this bit is run inside or outside the chroot. I have
> libdpkg-perl 1.18.4 installed on the host, but not in the schroot's and
> the logs (attached) don't show it being installed.

libdpkg-perl is a dependency of dpkg-dev which is a dependency of
build-essential.

So it seems that your chroot doesn't have the build-essential package
installed?

How did you create your chroot?

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160110/11ee857d/attachment.sig>


More information about the Buildd-tools-devel mailing list