[buildd-tools-devel] Bug#519867: [Buildd-tools-devel] Bug#519867: sbuild: run edos-debcheck in case of build failure due to dependency installation

Johannes Schauer josch at debian.org
Fri Dec 25 18:44:09 UTC 2015


Control: tag -1 + moreinfo

Hi,

On Tue, 09 Nov 2010 10:40:30 +0100 =?ISO-8859-1?Q?St=E9phane_Glondu?= <steph at glondu.net> wrote:
> Le 08/11/2010 21:20, Roger Leigh a écrit :
> >> It would be nice if edos-debcheck output was part of build logs in
> >> case of failure to install dependencies.
> 
> Note that at that time, such failures were frequent, but they are less 
> frequent now that wanna-build uses edos-debcheck.
> 
> > One thing was that there may be multiple Packages files in
> > /var/lib/apt/lists; can they all the concatenated together or
> > can it read in all the different ones?
> 
> They can all be concatenated together.
> 
> > Do you have any examples of how best to do this?
> 
> Something like:
> 
> > cat /var/lib/apt/lists/*_binary-amd64_Packages | edos-debcheck -failures -explain -checkonly cyrus-replication-2.3,cyrus-pop3d-2.3
> 
> should do. Of the course, the architecture and package list should be 
> adapted...

While this will work in most cases, the files in /var/lib/apt/lists/ are not
supposed to be used by other programs directly as discussed in #752702. Instead
the "apt-get files" command should be used to retrieve the exact location of
files in /var/lib/apt/lists/.

But using cat here is also not necessary because what you want is already done
by the command "apt-cache dumpavail".

Also, edos-debcheck doesn't exist anymore. Edos got replaced by dose, so now
you should use dose-debcheck.

In summary, the following should work:

apt-cache dumpavail | dose-debcheck -v -f -e sbuild-build-depends-yourpackage-dummy

Together with --build-deps-failed-commands you can create a hook which does
exactly what this bug requests. Would this be sufficient to fix this bug?

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/20151225/89438a98/attachment-0001.sig>


More information about the Buildd-tools-devel mailing list