Skip Menu |

This queue is for tickets about the CPANPLUS-Dist-Deb CPAN distribution.

Report information
The Basics
Id: 44964
Status: rejected
Priority: 0/
Queue: CPANPLUS-Dist-Deb

People
Owner: kane [...] cpan.org
Requestors: hdp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: t/02debs fails on fresh intrepid install
I don't even know how to start debugging this. It's a fresh install of Ubuntu Intrepid, so perl 5.10, and I'm installing into a local::lib dir here, but I get the same effect as root. t/02_debs.........# Taking care of Build / xs WARNING: the following files are missing in your kit: META.yml Please inform the author. [ERROR] Failed to create debian package for 'Foo::Bar': 'dpkg-buildpackage: set CFLAGS to default value: -g -O2 dpkg-buildpackage: set CPPFLAGS to default value: dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions dpkg-buildpackage: set FFLAGS to default value: -g -O2 dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 dpkg-buildpackage: source package cpan-libfoo-bar-perl dpkg-buildpackage: source version 0.01-1 dpkg-buildpackage: source changed by CPANPLUS::Dist::Deb <cpanplus@example.com> dpkg-buildpackage: host architecture i386 fakeroot debian/rules clean make[1]: Entering directory `/home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar' dh_testdir dh_testroot # Delete any .o files explicitly *just* to be safe find . -name \*.o -print0 | xargs -r0 rm -f dh_clean -d rm -f build-stamp install-stamp make[1]: Leaving directory `/home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar' dpkg-source -i.s?[oa] -b Foo-Bar dpkg-source: warning: source directory 'Foo-Bar' is not <sourcepackage>-<upstreamversion> 'cpan-libfoo-bar-perl-0.01' dpkg-source: warning: .orig directory name Foo-Bar.orig is not <package>-<upstreamversion> (wanted cpan-libfoo-bar-perl-0.01.orig) dpkg-source: info: using source format `1.0' dpkg-source: info: building cpan-libfoo-bar-perl using existing cpan-libfoo-bar-perl_0.01.orig.tar.gz dpkg-source: info: building cpan-libfoo-bar-perl in cpan-libfoo-bar-perl_0.01-1.diff.gz dpkg-source: warning: executable mode 0755 of 'Build' will not be represented in diff dpkg-source: warning: file Foo-Bar/_build/prereqs has no final newline (either original or modified version) dpkg-source: warning: ignoring deletion of file META.yml dpkg-source: info: building cpan-libfoo-bar-perl in cpan-libfoo-bar-perl_0.01-1.dsc debian/rules build make[1]: Entering directory `/home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar' dh_testdir touch build-stamp make[1]: Leaving directory `/home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar' fakeroot debian/rules binary make[1]: Entering directory `/home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar' dh_testdir dh_testroot dh_clean -d -k # Add here commands to install the package into debian/tmp. /usr/bin/perl ./Build install destdir=/home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar/debian/tmp cc -I/usr/lib/perl/5.10/CORE -DXS_VERSION="0.01" -DVERSION="0.01" -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o lib/Foo/Bar.o lib/Foo/Bar.c cc -shared -O2 -g -L/usr/local/lib -o blib/arch/auto/Foo/Bar/Bar.so lib/Foo/Bar.o Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar/debian/tmp/home/hdp/perl5/lib/perl5/i486-linux-gnu-thread-multi/auto/Foo/Bar/Bar.bs Installing /home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar/debian/tmp/home/hdp/perl5/lib/perl5/i486-linux-gnu-thread-multi/auto/Foo/Bar/Bar.so Installing /home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar/debian/tmp/home/hdp/perl5/lib/perl5/i486-linux-gnu-thread-multi/Foo/Bar.pm Installing /home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar/debian/tmp/home/hdp/perl5/man/man3/Foo::Bar.3pm Installing /home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar/debian/tmp/home/hdp/perl5/bin/foobar.pl Writing /home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar/debian/tmp/home/hdp/perl5/lib/perl5/i486-linux-gnu-thread-multi/auto/Foo/Bar/.packlist find . -type f | grep '/perllocal.pod$' | xargs rm -f # due to a bug in M::B, the .packlist file is written to # the wrong directory, causing file conflicts: # http://rt.cpan.org/Ticket/Display.html?id=18162 # remove it for now find . -type f | grep '/.packlist$' | xargs rm -f dh_movefiles /usr dh_movefiles: debian/tmp//usr not found (supposed to put it in cpan-libfoo-bar-perl) tar: /home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar/debian/movelist: Cannot stat: No such file or directory tar: Error is not recoverable: exiting now tar: This does not look like a tar archive tar: Error exit delayed from previous errors make[1]: Leaving directory `/home/hdp/.cpan/build/CPANPLUS-Dist-Deb-0.10-4tw65W/t/src/Build/xs/Foo-Bar' dh_movefiles: command returned error code make[1]: *** [install-stamp] Error 1 dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2 ' [ERROR] Unable to create a new distribution object for 'Foo::Bar' -- cannot continue # Failed test 'CPANPLUS::Dist::Deb package created' # at t/02_debs.t line 55. Use of uninitialized value $deb in concatenation (.) or string at t/02_debs.t line 63. # Failed test ' Deb written to ''' # at t/02_debs.t line 63. Use of uninitialized value $deb in -e at t/02_debs.t line 64. # Failed test ' File exists ' # at t/02_debs.t line 64. Use of uninitialized value $deb in -s at t/02_debs.t line 65. # Failed test ' File has size' # at t/02_debs.t line 65. Use of uninitialized value $deb in concatenation (.) or string at t/02_debs.t line 68. dpkg-deb: --info needs a .deb filename argument Type dpkg-deb --help for help about manipulating *.deb files; Type dpkg --help for help about installing and deinstalling packages. # Failed test ' Deb --info retrieved' # at t/02_debs.t line 69. # Failed test ' Package: ok' # at t/02_debs.t line 70. # '' # doesn't match '(?-xism:Package: cpan-libfoo-bar-perl)' # Failed test ' Section: ok' # at t/02_debs.t line 72. # '' # doesn't match '(?-xism:Section: perl)' # Failed test ' Provides: ok' # at t/02_debs.t line 74. # '' # doesn't match '(?-xism:Provides: libfoo-bar-perl)' # Failed test ' Description: ok' # at t/02_debs.t line 78. # '' # doesn't match '(?-xism:Description: Foo::Bar)' # Failed test ' Maintainer: ok' # at t/02_debs.t line 80. # '' # doesn't match '(?-xism:Maintainer: \S+)' Use of uninitialized value $deb in concatenation (.) or string at t/02_debs.t line 85. dpkg-deb: --contents takes exactly one argument Type dpkg-deb --help for help about manipulating *.deb files; Type dpkg --help for help about installing and deinstalling packages. # Failed test ' Deb --contents retrieved' # at t/02_debs.t line 88. # Failed test ' Contains /usr/local/man/man3/Foo::Bar.3pm' # at t/02_debs.t line 92. # '' # doesn't match '(?m-xis:./usr/local/man/man3/Foo::Bar.3pm$)' # Failed test ' Contains /usr/local/lib/perl/5.10.0/Foo/Bar.pm' # at t/02_debs.t line 92. # '' # doesn't match '(?m-xis:./usr/local/lib/perl/5.10.0/Foo/Bar.pm$)' # Failed test ' Contains /usr/local/lib/perl/5.10.0/auto/Foo/Bar/Bar.bs' # at t/02_debs.t line 92. # '' # doesn't match '(?m-xis:./usr/local/lib/perl/5.10.0/auto/Foo/Bar/Bar.bs$)' # Failed test ' Contains /usr/local/lib/perl/5.10.0/auto/Foo/Bar/Bar.so' # at t/02_debs.t line 92. # '' # doesn't match '(?m-xis:./usr/local/lib/perl/5.10.0/auto/Foo/Bar/Bar.so$)' # Failed test ' Contains /usr/local/bin/foobar.pl' # at t/02_debs.t line 92. # '' # doesn't match '(?m-xis:./usr/local/bin/foobar.pl$)' # Failed test ' Files for this package' # at t/02_debs.t line 129. Can't use an undefined value as an ARRAY reference at t/02_debs.t line 130. # Looks like you failed 17 tests of 36. # Looks like your test died just after 36. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4, 7-13, 15-22, 36 Failed 17/36 tests, 52.78% okay (less 13 skipped tests: 6 okay, 16.67%) Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/02_debs.t 255 65280 36 17 4 7-13 15-22 36 15 subtests skipped. Failed 1/3 test scripts. 17/240 subtests failed. Files=3, Tests=240, 7 wallclock secs ( 5.91 cusr + 0.82 csys = 6.73 CPU) Failed 1/3 test programs. 17/240 subtests failed.
possibly relevant versions: debhelper 7.0.13ubuntu1 dpkg-dev 1.14.20ubuntu6.2
This is because I was using local::lib and its settings were spilling through; the tests (and code) fail on anything not installing under /usr, as per #37879.