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

Re: Build packages with Dependencies



I'm testing this on a freshtestbox but for an example I get this as output:

# dh-make-perl make --build --recursive --cpan PDF::OCR2
== dh-make-perl 0.89 ==
Reading '/root/.cpan/Metadata'
  Database was generated on Thu, 27 Apr 2017 18:53:47 GMT
CPAN: Digest::SHA loaded ok (v5.95)
Checksum for /root/.cpan/sources/authors/id/L/LE/LEOCHARRE/PDF-OCR2-1.21.tar.gz
ok
PDF-OCR2-1.21/
PDF-OCR2-1.21/t/
PDF-OCR2-1.21/t/99_cleanup.t
PDF-OCR2-1.21/t/ignmoreme_simple_text_doc.txt
PDF-OCR2-1.21/t/88_PDF-OCR2-Page.t
PDF-OCR2-1.21/t/93_badxref.t
PDF-OCR2-1.21/t/leodocs/
PDF-OCR2-1.21/t/leodocs/led.pdf
PDF-OCR2-1.21/t/leodocs/SFX6D.pdf
PDF-OCR2-1.21/t/leodocs/blackhawk-receipt.pdf
PDF-OCR2-1.21/t/leodocs/magscans.pdf
PDF-OCR2-1.21/t/leodocs/frakemmet.pdf
PDF-OCR2-1.21/t/leodocs/paycheck.pdf
PDF-OCR2-1.21/t/leodocs/hdreceipt.pdf
PDF-OCR2-1.21/t/leodocs/file1.pdf
PDF-OCR2-1.21/t/94_hdreceipt.t
PDF-OCR2-1.21/t/imgs/
PDF-OCR2-1.21/t/imgs/image.tif
PDF-OCR2-1.21/t/92_PDF-OCR2-Base-Image.t
PDF-OCR2-1.21/t/empty_example.pdf
PDF-OCR2-1.21/t/89_PDF-OCR2.t
PDF-OCR2-1.21/bin/
PDF-OCR2-1.21/bin/pdfcheck
PDF-OCR2-1.21/MANIFEST
PDF-OCR2-1.21/lib/
PDF-OCR2-1.21/lib/PDF/
PDF-OCR2-1.21/lib/PDF/OCR2/
PDF-OCR2-1.21/lib/PDF/OCR2/Page.pm
PDF-OCR2-1.21/lib/PDF/OCR2/Page.pod
PDF-OCR2-1.21/lib/PDF/OCR2/Base.pm
PDF-OCR2-1.21/lib/PDF/OCR2/Base/
PDF-OCR2-1.21/lib/PDF/OCR2/Base/Image.pm
PDF-OCR2-1.21/lib/PDF/OCR2.pod
PDF-OCR2-1.21/lib/PDF/OCR2.pm
PDF-OCR2-1.21/Makefile.PL
PDF-OCR2-1.21/META.yml
PDF-OCR2-1.21/README
PDF-OCR2-1.21/Changes
PDF-OCR2-1.21/INSTALL
CPAN: File::Temp loaded ok (v0.2304)
======================================================================
Unpacked tarball already existed, directory renamed to //PDF-OCR2-1.21.24278
======================================================================
Using META.yml
Found: PDF-OCR2 1.21 (libpdf-ocr2-perl arch=all)
cat: /etc/mailname: No such file or directory
Switched to a new branch 'master'
No APT contents can be loaded but apt-file seems installed.
Please run 'apt-file update' as root.
(If that doesn't help, please report a bug against dh-make-perl.)
Dependencies not updated.
Using maintainer: root <root@>
Found docs:
cat: /etc/mailname: No such file or directory
Using rules: /usr/share/dh-make-perl/rules.dh.tiny
cat: /etc/mailname: No such file or directory
pristine-tar: committed libpdf-ocr2-perl_1.21.orig.tar.gz.delta to
branch pristine-tar
make: Entering directory '/PDF-OCR2-1.21'
dh clean
   dh_testdir
   dh_auto_clean
   dh_clean
make: Leaving directory '/PDF-OCR2-1.21'
make: Entering directory '/PDF-OCR2-1.21'
dh build
   dh_testdir
   dh_update_autotools_config
   dh_auto_configure
        perl Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2
-fstack-protector-strong -Wformat -Werror=format-security
-Wl,-Bsymbolic-functions -Wl,-z,relro"
Checking if your kit is complete...
Looks good
Warning: prerequisite CAM::PDF 1.52 not found.
Warning: prerequisite File::PathInfo::Ext 1.27 not found.
Warning: prerequisite Image::OCR::Tesseract 1.20 not found.
Warning: prerequisite LEOCHARRE::CLI2 1.07 not found.
Warning: prerequisite LEOCHARRE::Class2 1.19 not found.
Warning: prerequisite LEOCHARRE::Debug 1.02 not found.
Warning: prerequisite LEOCHARRE::Dir 1.07 not found.
Warning: prerequisite PDF::API2 2.015 not found.
Warning: prerequisite PDF::Burst 1.19 not found.
Warning: prerequisite PDF::GetImages 1.17 not found.
Generating a Unix-style Makefile
Writing Makefile for PDF::OCR2
Writing MYMETA.yml and MYMETA.json
   dh_auto_build
        make -j1
make[1]: Entering directory '/PDF-OCR2-1.21'
cp lib/PDF/OCR2/Base.pm blib/lib/PDF/OCR2/Base.pm
cp lib/PDF/OCR2/Page.pod blib/lib/PDF/OCR2/Page.pod
cp lib/PDF/OCR2.pod blib/lib/PDF/OCR2.pod
cp lib/PDF/OCR2/Page.pm blib/lib/PDF/OCR2/Page.pm
cp lib/PDF/OCR2.pm blib/lib/PDF/OCR2.pm
cp lib/PDF/OCR2/Base/Image.pm blib/lib/PDF/OCR2/Base/Image.pm
cp bin/pdfcheck blib/script/pdfcheck
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pdfcheck
Manifying 1 pod document
Manifying 4 pod documents
make[1]: Leaving directory '/PDF-OCR2-1.21'
   dh_auto_test
        make -j1 test TEST_VERBOSE=1
make[1]: Entering directory '/PDF-OCR2-1.21'
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM"
"-MTest::Harness" "-e" "undef *Test::Harness::Switches;
test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/88_PDF-OCR2-Page.t ........ Can't locate LEOCHARRE/Class2.pm in @INC
(you may need to install the LEOCHARRE::Class2 module) (@INC contains:
./lib /PDF-OCR2-1.21/blib/lib /PDF-OCR2-1.21/blib/arch /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 lib/PDF/OCR2/Page.pm line 4.
BEGIN failed--compilation aborted at lib/PDF/OCR2/Page.pm line 4.
Compilation failed in require at t/88_PDF-OCR2-Page.t line 4.
BEGIN failed--compilation aborted at t/88_PDF-OCR2-Page.t line 4.
# Looks like your test exited with 2 before it could output anything.
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/89_PDF-OCR2.t ............. Can't locate LEOCHARRE/Class2.pm in @INC
(you may need to install the LEOCHARRE::Class2 module) (@INC contains:
./lib /PDF-OCR2-1.21/blib/lib /PDF-OCR2-1.21/blib/arch /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 lib/PDF/OCR2/Page.pm line 4.
BEGIN failed--compilation aborted at lib/PDF/OCR2/Page.pm line 4.
Compilation failed in require at lib/PDF/OCR2.pm line 3.
BEGIN failed--compilation aborted at lib/PDF/OCR2.pm line 3.
Compilation failed in require at t/89_PDF-OCR2.t line 4.
BEGIN failed--compilation aborted at t/89_PDF-OCR2.t line 4.
# Looks like your test exited with 2 before it could output anything.
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/92_PDF-OCR2-Base-Image.t .. Can't locate LEOCHARRE/Class2.pm in @INC
(you may need to install the LEOCHARRE::Class2 module) (@INC contains:
./lib /PDF-OCR2-1.21/blib/lib /PDF-OCR2-1.21/blib/arch /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 lib/PDF/OCR2/Base/Image.pm
line 3.
BEGIN failed--compilation aborted at lib/PDF/OCR2/Base/Image.pm line 3.
Compilation failed in require at t/92_PDF-OCR2-Base-Image.t line 7.
BEGIN failed--compilation aborted at t/92_PDF-OCR2-Base-Image.t line 7.
# Looks like your test exited with 2 before it could output anything.
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/93_badxref.t .............. Can't locate LEOCHARRE/Debug.pm in @INC
(you may need to install the LEOCHARRE::Debug module) (@INC contains:
./lib /PDF-OCR2-1.21/blib/lib /PDF-OCR2-1.21/blib/arch /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 lib/PDF/OCR2/Base.pm line
10.
BEGIN failed--compilation aborted at lib/PDF/OCR2/Base.pm line 10.
Compilation failed in require at t/93_badxref.t line 4.
BEGIN failed--compilation aborted at t/93_badxref.t line 4.
# Looks like your test exited with 2 before it could output anything.
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/94_hdreceipt.t ............ Can't locate LEOCHARRE/Class2.pm in @INC
(you may need to install the LEOCHARRE::Class2 module) (@INC contains:
./lib /PDF-OCR2-1.21/blib/lib /PDF-OCR2-1.21/blib/arch /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 lib/PDF/OCR2/Page.pm line 4.
BEGIN failed--compilation aborted at lib/PDF/OCR2/Page.pm line 4.
Compilation failed in require at lib/PDF/OCR2.pm line 3.
BEGIN failed--compilation aborted at lib/PDF/OCR2.pm line 3.
Compilation failed in require at t/94_hdreceipt.t line 3.
BEGIN failed--compilation aborted at t/94_hdreceipt.t line 3.
# Looks like your test exited with 2 before it could output anything.
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/99_cleanup.t ..............
ok 1 - cleaned
1..1
ok

Test Summary Report
-------------------
t/88_PDF-OCR2-Page.t      (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/89_PDF-OCR2.t           (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/92_PDF-OCR2-Base-Image.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/93_badxref.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/94_hdreceipt.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=6, Tests=1,  0 wallclock secs ( 0.10 usr  0.02 sys +  0.20 cusr
0.10 csys =  0.42 CPU)
Result: FAIL
Failed 5/6 test programs. 0/1 subtests failed.
Makefile:889: recipe for target 'test_dynamic' failed
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory '/PDF-OCR2-1.21'
dh_auto_test: make -j1 test TEST_VERBOSE=1 returned exit code 2
debian/rules:4: recipe for target 'build' failed
make: *** [build] Error 2
make: Leaving directory '/PDF-OCR2-1.21'
Cannot create deb package: 'debian/rules build' failed.


So I wonder why it doesn't see the dependencies as buildable.


2017-04-27 13:26 GMT+02:00 Matt . <yamakasi.014@gmail.com>:
> Hi Nick,
>
> Thanks! I found out and thanks for confirming. It seems it doesn't
> create the packages when they are already installed so you need to
> start fresh.
>
> Thanks!
>
> Matt
>
> 2017-04-27 13:25 GMT+02:00 Nick Morrott <knowledgejunkie@gmail.com>:
>> On 27 April 2017 at 03:17, Matt . <yamakasi.014@gmail.com> wrote:
>>> I have successfully build some packages using dh-make-perl but now I'm
>>> wondering how I can build the dependencies for a package I create at
>>> the same time for that perl module I build ?
>>
>> Matt,
>>
>> If the dependencies are missing from the Debian archive, try something like:
>>
>> $ dh-make-perl --cpan Foo::Bar --recursive
>>
>>
>> Thanks,
>> Nick


Reply to: