Create a gist now

Instantly share code, notes, and snippets.

developer@stridor:~/pl$ dh-make-perl --build --cpan CPANPLUS::Dist::Deb
Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig
CPAN: File::HomeDir loaded ok (v0.86)
CPAN::SQLite not installed, trying to work without
Going to read '/home/developer/.cpan/Metadata'
Database was generated on Tue, 15 Jun 2010 05:28:03 GMT
Going to read 34 yaml files from /home/developer/.cpan/build/
CPAN: Time::HiRes loaded ok (v1.9719)
....................................DONE
Restored the state of none (in 0.6628 secs)
CPAN: Digest::SHA loaded ok (v5.47)
Checksum was ok
CPAN: Archive::Tar loaded ok (v1.52)
CPANPLUS-Dist-Deb-0.12/
CPANPLUS-Dist-Deb-0.12/CHANGES
CPANPLUS-Dist-Deb-0.12/lib/
CPANPLUS-Dist-Deb-0.12/lib/CPANPLUS/
CPANPLUS-Dist-Deb-0.12/lib/CPANPLUS/Dist/
CPANPLUS-Dist-Deb-0.12/lib/CPANPLUS/Dist/Deb/
CPANPLUS-Dist-Deb-0.12/lib/CPANPLUS/Dist/Deb/Constants.pm
CPANPLUS-Dist-Deb-0.12/lib/CPANPLUS/Dist/Deb.pm
CPANPLUS-Dist-Deb-0.12/Makefile.PL
CPANPLUS-Dist-Deb-0.12/MANIFEST
CPANPLUS-Dist-Deb-0.12/MANIFEST.SKIP
CPANPLUS-Dist-Deb-0.12/META.yml
CPANPLUS-Dist-Deb-0.12/README
CPANPLUS-Dist-Deb-0.12/t/
CPANPLUS-Dist-Deb-0.12/t/00_constants.t
CPANPLUS-Dist-Deb-0.12/t/01_load.t
CPANPLUS-Dist-Deb-0.12/t/02_debs.t
CPANPLUS-Dist-Deb-0.12/t/dist/
CPANPLUS-Dist-Deb-0.12/t/dist/debian/
CPANPLUS-Dist-Deb-0.12/t/dist/debian/.hidden
CPANPLUS-Dist-Deb-0.12/t/inc/
CPANPLUS-Dist-Deb-0.12/t/inc/conf.pl
CPANPLUS-Dist-Deb-0.12/t/src/
CPANPLUS-Dist-Deb-0.12/t/src/Build/
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/bin/
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/bin/foobar.pl
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/Build.PL
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/CHANGES
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/Foo-Bar-0.01.tar.gz
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/lib/
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/lib/Foo/
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/lib/Foo/Bar.pm
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/MANIFEST
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/README
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar/test.pl
CPANPLUS-Dist-Deb-0.12/t/src/Build/noxs/Foo-Bar-0.01.tar.gz
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/bin/
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/bin/foobar.pl
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/Build.PL
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/CHANGES
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/lib/
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/lib/Foo/
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/lib/Foo/Bar.pm
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/lib/Foo/Bar.xs
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/MANIFEST
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/README
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar/test.pl
CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar-0.01.tar.gz
CPANPLUS-Dist-Deb-0.12/t/src/MM/
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/bin/
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/bin/foobar.pl
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/CHANGES
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/lib/
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/lib/Foo/
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/lib/Foo/Bar.pm
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/Makefile.PL
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/MANIFEST
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/README
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar/test.pl
CPANPLUS-Dist-Deb-0.12/t/src/MM/noxs/Foo-Bar-0.01.tar.gz
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/Bar.pm
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/Bar.xs
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/bin/
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/bin/foobar.pl
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/CHANGES
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/Makefile.PL
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/MANIFEST
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/README
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar/test.pl
CPANPLUS-Dist-Deb-0.12/t/src/MM/xs/Foo-Bar-0.01.tar.gz
CPAN: File::Temp loaded ok (v0.22)
======================================================================
Unpacked tarball already existed, directory renamed to /home/developer/pl/CPANPLUS-Dist-Deb-0.12.4172
======================================================================
Found: CPANPLUS-Dist-Deb 0.12 (libcpanplus-dist-deb-perl arch=any)
Using cached Contents from Tue Jun 15 20:31:54 2010
= Module::Pluggable is a core module
= Package::Constants is a core module
= Locale::Maketext::Simple is a core module
= Object::Accessor is a core module
= IPC::Cmd is a core module
= Params::Check is a core module
= Test::More is a core module
= CPANPLUS::Dist::Build is a core module
= Module::Load::Conditional is a core module
= CPANPLUS is a core module
+ YAML found in libyaml-perl
Needs the following debian packages: perl (>= 5.9.5), libyaml-perl
Using maintainer: developer <developer@stridor.lan>
Found changelog: CHANGES
Found docs: README t/src/Build/noxs/Foo-Bar/README t/src/Build/xs/Foo-Bar/README t/src/MM/noxs/Foo-Bar/README t/src/MM/xs/Foo-Bar/README
Using rules: /usr/share/dh-make-perl/rules.dh7.tiny
make: Entering directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12'
dh clean
dh_testdir
dh_auto_clean
dh_clean
make: Leaving directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12'
make: Entering directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12'
dh build
dh_testdir
dh_auto_configure
Note: To use this module, a few command line utlities are required.
They are provided by the following debian packages, which you
will need to install:
libc6-dev: /usr/bin/gencat
dpkg: /usr/bin/dpkg
debhelper: /usr/bin/dh_perl
gcc: /usr/bin/gcc
dpkg-dev: /usr/bin/dpkg-buildpackage
fakeroot: /usr/bin/fakeroot
findutils: /usr/bin/find, /usr/bin/xargs
To use the (optional) automatic creation of Sources.gz and
Packages.gz files, to use your locally created .debs as an
apt repository you need the following programs:
apt-utils: /usr/bin/apt-ftparchive
Checking if your kit is complete...
Looks good
'CREATE_PACKLIST' is not a known MakeMaker parameter name.
Writing Makefile for CPANPLUS::Dist::Deb
dh_auto_build
make[1]: Entering directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12'
cp lib/CPANPLUS/Dist/Deb.pm blib/lib/CPANPLUS/Dist/Deb.pm
cp lib/CPANPLUS/Dist/Deb/Constants.pm blib/lib/CPANPLUS/Dist/Deb/Constants.pm
Manifying blib/man3/CPANPLUS::Dist::Deb.3pm
make[1]: Leaving directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12'
dh_auto_test
make[1]: Entering directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_constants.t .. ok
t/01_load.t ....... ok
t/02_debs.t ....... 1/? # Taking care of Build / xs
t/02_debs.t ....... 4/? [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[2]: Entering directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12/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
dh_clean: Compatibility levels before 5 are deprecated.
rm -f build-stamp install-stamp
make[2]: Leaving directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar'
dpkg-source -i.s?[oa] -b Foo-Bar
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: 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: 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: use the '3.0 (quilt)' format to have separate and documented changes to upstream files, see dpkg-source(1)
dpkg-source: warning: the diff modifies the following upstream files:
Build
Build.PL
_build/prereqs
dpkg-source: info: building cpan-libfoo-bar-perl in cpan-libfoo-bar-perl_0.01-1.dsc
make[2]: Entering directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar'
dh_testdir
debian/rules build
touch build-stamp
make[2]: Leaving directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar'
fakeroot debian/rules binary
make[2]: Entering directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar'
dh_testdir
dh_testroot
dh_clean -d -k
dh_clean: Compatibility levels before 5 are deprecated.
# Add here commands to install the package into debian/tmp.
/usr/bin/perl ./Build install destdir=/home/developer/pl/CPANPLUS-Dist-Deb-0.12/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 -fstack-protector -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 -fstack-protector -o blib/arch/auto/Foo/Bar/Bar.so lib/Foo/Bar.o
make[2]: Leaving directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12/t/src/Build/xs/Foo-Bar'
Unexpected arguments for property 'install_sets'
make[2]: *** [install-stamp] Error 9
dpkg-buildpackage: error: 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.1/Foo/Bar.pm'
# at t/02_debs.t line 92.
# ''
# doesn't match '(?m-xis:./usr/local/lib/perl/5.10.1/Foo/Bar.pm$)'
# Failed test ' Contains /usr/local/lib/perl/5.10.1/auto/Foo/Bar/Bar.bs'
# at t/02_debs.t line 92.
# ''
# doesn't match '(?m-xis:./usr/local/lib/perl/5.10.1/auto/Foo/Bar/Bar.bs$)'
# Failed test ' Contains /usr/local/lib/perl/5.10.1/auto/Foo/Bar/Bar.so'
# at t/02_debs.t line 92.
# ''
# doesn't match '(?m-xis:./usr/local/lib/perl/5.10.1/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$)'
Use of uninitialized value $_ in length at /usr/share/perl/5.10/IPC/Cmd.pm line 351.
[sudo] password for developer:
t/02_debs.t ....... 23/? Use of uninitialized value $digit in concatenation (.) or string at /usr/share/perl/5.10/Locale/Maketext/Simple.pm line 225.
[ERROR] Unable to install '': dpkg: --install needs at least one package archive file argument
Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].
Options marked [*] produce a lot of output - pipe it through `less' or `more' !
# Failed test ' Dist installed'
# at t/02_debs.t line 109.
Package `cpan-libfoo-bar-perl' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
# Failed test ' Deb files retrieved'
# at t/02_debs.t line 112.
# Failed test ' File /usr/local/man/man3/Foo::Bar.3pm installed'
# at t/02_debs.t line 116.
# Failed test ' File /usr/local/lib/perl/5.10.1/Foo/Bar.pm installed'
# at t/02_debs.t line 116.
# Failed test ' File /usr/local/lib/perl/5.10.1/auto/Foo/Bar/Bar.bs installed'
# at t/02_debs.t line 116.
# Failed test ' File /usr/local/lib/perl/5.10.1/auto/Foo/Bar/Bar.so installed'
# at t/02_debs.t line 116.
# Failed test ' File /usr/local/bin/foobar.pl installed'
# at t/02_debs.t line 116.
# 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 24 tests of 36.
# Looks like your test exited with 2 just after 36.
t/02_debs.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 24/36 subtests
Test Summary Report
-------------------
t/02_debs.t (Wstat: 512 Tests: 36 Failed: 24)
Failed tests: 4, 7-13, 15-29, 36
Non-zero exit status: 2
Files=3, Tests=248, 141 wallclock secs ( 0.07 usr 0.02 sys + 77.37 cusr 3.20 csys = 80.66 CPU)
Result: FAIL
Failed 1/3 test programs. 24/248 subtests failed.
make[1]: *** [test_dynamic] Error 2
make[1]: Leaving directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12'
dh_auto_test: make -j1 test returned exit code 2
make: *** [build] Error 29
make: Leaving directory `/home/developer/pl/CPANPLUS-Dist-Deb-0.12'
Cannot create deb package: 'debian/rules build' failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment