[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg-buildpackage test suite failure



On 2016-10-30 10:12 +0100, Sven Joachim wrote:

> I'm getting the following error when running the test suite:
>
> ,----
> | dpkg_buildpackage.t: error:
> | /usr/local/src/dpkg/build-tree/scripts/../../scripts/dpkg-buildpackage.pl
> | --host-arch=amd64 --build=source --check-command= gave error exit
> | status 25
> | # Looks like your test exited with 25 before it could output anything.
> | ../../scripts/t/dpkg_buildpackage.t ........ 
> | Dubious, test returned 25 (wstat 6400, 0x1900)
> | Failed 7/7 subtests 
> `----
>
> After redirecting dpkg-buildpackage's error messages to a real file
> instead of /dev/null in the test_build function the problem seems to be
> clear:
>
> ,----
> | dpkg-architecture: warning: specified GNU system type
> | x86_64-linux-gnu does not match CC system type i686-linux-gnu, try
> | setting a correct CC environment variable
> |  dpkg-source --before-build test-source-0
> |  fakeroot debian/rules clean
> |  dpkg-source -b test-source-0
> | dpkg-source: warning: missing information for output field Standards-Version
> |  dpkg-genchanges --build=source >../test-source_0_source.changes
> | dpkg-genchanges: info: including full source code in upload
> |  dpkg-source --after-build test-source-0
> |  signfile test-source_0.dsc
> | gpg: skipped "Dpkg Developers <debian-dpkg@lists.debian.org>": No secret key
> | gpg: dpkg-sign.dsbr2X3M/test-source_0.dsc: clearsign failed: No secret key
> | dpkg-buildpackage.pl: error: failed to sign .dsc and .changes file
> `----

Here is a patch for this.

Cheers,
       Sven

>From 5cdb5015e45f71251357bfc754e6b6cd2c3f09cd Mon Sep 17 00:00:00 2001
From: Sven Joachim <svenjoac@gmx.de>
Date: Sun, 30 Oct 2016 10:53:50 +0100
Subject: [PATCH] scripts/t: Do not try to sign test packages

If gpg is available in the build environment, dpkg-source will use it
to sign the .dsc and .changes files which fails because there is no
secret key for "Dpkg Developers <debian-dpkg@lists.debian.org>".
---
 scripts/t/dpkg_buildpackage.t | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/t/dpkg_buildpackage.t b/scripts/t/dpkg_buildpackage.t
index a369665..e1ec178 100644
--- a/scripts/t/dpkg_buildpackage.t
+++ b/scripts/t/dpkg_buildpackage.t
@@ -179,6 +179,7 @@ sub test_build
 
     chdir $dirname;
     spawn(exec => [ "$srcdir/dpkg-buildpackage.pl", '--host-arch=amd64',
+		    "--unsigned-source", "--unsigned-changes",
                     "--build=$typename", '--check-command=' ],
           error_to_file => '/dev/null',
           wait_child => 1);
-- 
2.10.1


Reply to: