Bug#1017287: libpandoc-elements-perl: FTBFS: dh_auto_test: error: /usr/bin/perl Build test --verbose 1 returned exit code 1

Lucas Nussbaum lucas at debian.org
Sun Aug 14 08:46:25 BST 2022


Source: libpandoc-elements-perl
Version: 0.38-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220813 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure
> 	/usr/bin/perl Build.PL --installdirs vendor --config "optimize=-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" --config "ld=x86_64-linux-gnu-gcc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro"
> Creating new 'Build' script for 'Pandoc-Elements' version '0.38'
>    dh_auto_build
> 	/usr/bin/perl Build
> cp lib/Pandoc/Elements.pm blib/lib/Pandoc/Elements.pm
> cp lib/Pandoc/Filter/Multifilter.pm blib/lib/Pandoc/Filter/Multifilter.pm
> cp lib/Pandoc/Metadata.pm blib/lib/Pandoc/Metadata.pm
> cp lib/Pandoc/Filter/ImagesFromCode.pm blib/lib/Pandoc/Filter/ImagesFromCode.pm
> cp lib/Pandoc/Filter/HeaderIdentifiers.pm blib/lib/Pandoc/Filter/HeaderIdentifiers.pm
> cp lib/Pandoc/Selector.pm blib/lib/Pandoc/Selector.pm
> cp script/multifilter blib/script/multifilter
> cp lib/Pandoc/Document/Element.pm blib/lib/Pandoc/Document/Element.pm
> cp lib/Pandoc/Walker.pm blib/lib/Pandoc/Walker.pm
> cp lib/Pandoc/Filter.pm blib/lib/Pandoc/Filter.pm
>    dh_auto_test
> 	/usr/bin/perl Build test --verbose 1
> t/Filter-ImagesFromCode.t ..... 
> ok 1 - created input file
> ok 2 - written input file
> ok 3 - created output file
> ok 4 - written output file
> ok 5 - transformed document
> 1..5
> ok
> t/accessors.t ................. 
> ok 1 - CodeBlock->attr
> ok 2 - AttributeRole->id
> ok 3 - AttributeRole->class
> ok 4 - CodeBlock->content
> ok 5 - setter
> ok 6 - setter
> ok 7 - Quoted
> ok 8 - BulletList: items
> ok 9 - BulletList: content(...)
> ok 10 - BulletList: items set
> ok 11 - Span: attr
> ok 12 - Span: attr(...)
> ok 13 - Span: attr set
> ok 14 - Span: content
> ok 15 - Span: content(...)
> ok 16 - Span: content set
> ok 17 - DefinitionList: items=content
> ok 18 - DefinitionList->items
> ok 19 - ...->term
> ok 20 - ...->definitions
> # {"blocks":[],"meta":{"foo":{"c":"1","t":"MetaString"}},"pandoc-api-version":[1,21]}
> ok 21 - Document: meta
> ok 22 - Document: meta(...)
> 1..22
> ok
> t/ast.t ....................... 
> ok 1 - is_document
> ok 2 - name
> ok 3
> ok 4 - is_block
> ok 5 - is_inline
> ok 6 - is_meta
> ok 7 - ->meta
> ok 8 - is_meta
> ok 9 - name
> ok 10 - name
> ok 11
> ok 12 - is_block
> ok 13 - !is_document
> ok 14 - null
> 1..14
> ok
> t/attributes.t ................ 
> ok 1 - empty attributes
> ok 2 - empty attributes (undef)
> ok 3 - classes and id
> ok 4 - empty attributes
> ok 5 - keyvals
> ok 6 - keyvals
> ok 7 - attributes via Hash::MultiValue
> ok 8 - keyvals as setter
> ok 9 - keyvals as setter (no class)
> ok 10 - keyvals to remove id and classes
> ok 11 - id setter
> ok 12 - class setter
> ok 13 - keyvals as setter
> ok 14 - class(es) attributes
> ok 15 - class(es) attributes
> ok 16 - class(es) attributes
> ok 17 - class match
> ok 18 - class match
> ok 19 - class match
> ok 20 - class selector
> 1..20
> ok
> t/citation.t .................. 
> ok 1 - An object of class 'Pandoc::Document::Citation' isa 'Pandoc::Document::Citation'
> ok 2 - Pandoc::Document::Citation->can(...)
> ok 3 - structure
> # Subtest: accessors
>     ok 1 - hash
>     ok 2 - citationHash
>     ok 3 - citationHash/hash
>     ok 4 - id
>     ok 5 - citationId
>     ok 6 - citationId/id
>     ok 7 - mode
>     ok 8 - citationMode
>     ok 9 - citationMode/mode
>     ok 10 - num
>     ok 11 - citationNoteNum
>     ok 12 - citationNoteNum/num
>     ok 13 - prefix
>     ok 14 - citationPrefix
>     ok 15 - citationPrefix/prefix
>     ok 16 - suffix
>     ok 17 - citationSuffix
>     ok 18 - citationSuffix/suffix
>     1..18
> ok 4 - accessors
> # Subtest: id
>     ok 1 - 'test object' isa 'Pandoc::Document::Citation::Test::Stringlike'
>     ok 2 - initial value
>     ok 3 - coercion through constructor
>     ok 4 - changed value
>     ok 5 - coercion through setter
>     1..5
> ok 5 - id
> # Subtest: blessed by document constructor
>     ok 1 - An object of class 'Pandoc::Document::Citation' isa 'Pandoc::Document::Citation'
>     1..1
> ok 6 - blessed by document constructor
> 1..6
> ok
> t/document-pandoc-version.t ... 
> ok 1 - pandoc_version 1.9 => error
> ok 2 - pandoc_version 1.15.1 => api 1.12.4
> ok 3 - pandoc_version 1.15.1 => pandoc 1.13
> ok 4 - pandoc_version 1.16.0.2 => api 1.16
> ok 5 - pandoc_version 1.16.0.2 => pandoc 1.16
> ok 6 - pandoc_version 1.17 => api 1.16
> ok 7 - pandoc_version 1.17 => pandoc 1.16
> ok 8 - pandoc_version 1.18 => api 1.17
> ok 9 - pandoc_version 1.18 => pandoc 1.18
> ok 10 - pandoc_version 1.18.1 => api 1.17
> ok 11 - pandoc_version 1.18.1 => pandoc 1.18
> ok 12 - pandoc_version 1.19 => api 1.17
> ok 13 - pandoc_version 1.19 => pandoc 1.18
> ok 14 - pandoc_version 1.99 => api 1.12.3
> ok 15 - pandoc_version 1.99 => pandoc 1.12.1
> ok 16 - pandoc_version 1.0 => error
> ok 17 - api_version 1.17 => api 1.17
> ok 18 - api_version 1.17 => pandoc 1.18
> 1..18
> ok
> t/document.t .................. 
> # Subtest: 1.16
>     ok 1 - api_version
>     # Subtest: meta, blocks, api_version
>         ok 1 - '$doc' isa 'Pandoc::Document'
>         ok 2 - expected
>         ok 3 - to_json
>         1..3
>     ok 2 - meta, blocks, api_version
>     # Subtest: [ { unMeta => meta }, blocks
>         ok 1 - '$doc' isa 'Pandoc::Document'
>         ok 2 - expected
>         ok 3 - to_json
>         1..3
>     ok 3 - [ { unMeta => meta }, blocks
>     # Subtest: { meta =>, blocks =>, pandoc-api-version }
>         ok 1 - '$doc' isa 'Pandoc::Document'
>         ok 2 - expected
>         ok 3 - to_json
>         1..3
>     ok 4 - { meta =>, blocks =>, pandoc-api-version }
>     1..4
> ok 1 - 1.16
> # Subtest: 1.21
>     ok 1 - api_version
>     # Subtest: meta, blocks
>         ok 1 - '$doc' isa 'Pandoc::Document'
>         ok 2 - expected
>         ok 3 - to_json
>         1..3
>     ok 2 - meta, blocks
>     # Subtest: meta, blocks, api_version =>
>         ok 1 - '$doc' isa 'Pandoc::Document'
>         ok 2 - expected
>         ok 3 - to_json
>         1..3
>     ok 3 - meta, blocks, api_version =>
>     # Subtest: { meta =>, blocks => }
>         ok 1 - '$doc' isa 'Pandoc::Document'
>         ok 2 - expected
>         ok 3 - to_json
>         1..3
>     ok 4 - { meta =>, blocks => }
>     # Subtest: { meta =>, blocks =>, pandoc-api-version => }
>         ok 1 - '$doc' isa 'Pandoc::Document'
>         ok 2 - expected
>         ok 3 - to_json
>         1..3
>     ok 5 - { meta =>, blocks =>, pandoc-api-version => }
>     1..5
> ok 2 - 1.21
> # Subtest: 1.12.3
>     # Subtest: api_version = 1.12.3
>         ok 1 - '$doc' isa 'Pandoc::Document'
>         ok 2 - expected
>         ok 3 - to_json
>         1..3
>     ok 1 - api_version = 1.12.3
>     1..1
> ok 3 - 1.12.3
> ok 4 - minimum api_version
> ok 5 - invalid arguments
> ok 6 - invalid arguments
> 1..6
> ok
> t/elements.t .................. 
> ok 1 - Emph
> ok 2 - Emph
> ok 3 - Emph
> ok 4 - element
> ok 5 - is_inline
> ok 6 - content
> ok 7 - unknown element
> ok 8 - wrong number of arguments
> ok 9 - method to_json
> ok 10 - stringify numbers
> ok 11 - :block->as_block
> ok 12 - :inline->as_block
> 1..12
> ok
> t/filter.t .................... 
> ok 1 - action
> ok 2 - action
> ok 3 - apply
> ok 4 - format and metadata
> ok 5 - don't filter injected elements
> 1..5
> ok
> t/header-identifiers.t ........ 
> ok 1 - header_identifier
> ok 2 - header_identifier strips characters
> ok 3 - header_identifier fallback
> ok 4 - header_identifier with numbering
> ok 5 - identifier counts
> ok 6 - avoid too many hyphens
> ok 7 - avoid too many hyphens
> ok 8 - but not more then allowed
> ok 9 - header_identifier without footnotes
> ok 10 - InPandocHeaderIdentifier
> ok 11 - InPandocHeaderIdentifier
> ok 12 - apply
> ok 13 - identifiers added
> 1..13
> ok
> t/invalid-version-from-env.t .. 
> ok 1
> ok 2 - ignore invalid PANDOC_VERSION from ENV
> 1..2
> ok
> t/lineblock.t ................. 
> ok 1 - is_block
> ok 2 - PANDOC_VERSION < 1.18
> ok 3 - PANDOC_VERSION >= 1.18
> 1..3
> ok
> t/lineblocks-empty-lines.t .... 
> ok 1 - uninitialized
> ok 2 - parse json
> 1..2
> ok
> t/link-image-attributes.t ..... 
> ok 1 - parse old and new (Pandoc >= 1.16) format
> ok 2 - encode new format
> ok 3 - encode old format
> 1..3
> ok
> t/linkage-setters.t ........... 
> # Subtest: Link
>     ok 1 - Pandoc::Document::Link->can('name')
>     ok 2 - name
>     ok 3 - Pandoc::Document::Link->can('url')
>     ok 4 - url unset
>     ok 5 - set url
>     ok 6 - url set
>     ok 7 - Pandoc::Document::Link->can('title')
>     ok 8 - title unset
>     ok 9 - set title
>     ok 10 - title set
>     1..10
> ok 1 - Link
> # Subtest: Image
>     ok 1 - Pandoc::Document::Image->can('name')
>     ok 2 - name
>     ok 3 - Pandoc::Document::Image->can('url')
>     ok 4 - url unset
>     ok 5 - set url
>     ok 6 - url set
>     ok 7 - Pandoc::Document::Image->can('title')
>     ok 8 - title unset
>     ok 9 - set title
>     ok 10 - title set
>     1..10
> ok 2 - Image
> 1..2
> ok
> t/meta-blessing.t ............. 
> ok 1 - 'it's a document' isa 'Pandoc::Document'
> ok 2 - no unblessed metadata objects
> ok 3 - no undef values
> 1..3
> ok
> t/meta-filter.t ............... 
> ok 1 - transform with metadata element
> ok 2 - apply document content only
> ok 3 - pandoc_walk document content only
> 1..3
> ok
> t/metadata.t .................. 
> ok 1 - true
> ok 2 - false
> ok 3
> ok 4 - true: 1
> ok 5
> ok 6 - true: 1
> ok 7
> ok 8 - true: true
> ok 9
> ok 10 - true: TRUE
> ok 11
> ok 12 - true: 42
> ok 13
> ok 14 - true: wtf
> ok 15
> ok 16 - false: 0
> ok 17
> ok 18 - false: 
> ok 19
> ok 20 - false: false
> ok 21
> ok 22 - false: FALSE
> ok 23
> ok 24 - false: 
> ok 25 - JSON::PP::true
> ok 26 - JSON::PP::false
> ok 27
> ok 28
> ok 29 - MetaInlines
> ok 30 - MetaInlines->string
> ok 31 - MetaBlocks->string
> ok 32 - value
> ok 33 - value("false")
> ok 34 - value("/false")
> ok 35 - value("true")
> ok 36 - value("/true")
> ok 37 - value("/map/string")
> ok 38 - value("/map/list/0")
> ok 39 - value("/map/list/2")
> ok 40 - value("string")
> ok 41 - value("/string")
> ok 42 - value("/map/~1~0")
> ok 43 - value("string", elements => keep)
> ok 44 - value("/string", elements => keep)
> ok 45 - value("blocks")
> ok 46 - value("/blocks")
> ok 47 - value("blocks", elements => keep)
> ok 48 - value("/blocks", elements => keep)
> ok 49 - value('x')
> ok 50 - value('/x')
> ok 51 - value('map/x')
> ok 52 - value('/map/x')
> ok 53 - value('true/x')
> ok 54 - value('/true/x')
> ok 55 - value('blocks/x')
> ok 56 - value('/blocks/x')
> ok 57 - value('map/list/x')
> ok 58 - value('/map/list/x')
> ok 59 - value('map/list/3')
> ok 60 - value('/map/list/3')
> ok 61 - Document->metavalue
> 1..61
> ok
> t/multifilter.t ............... 
> ok 1 - find_filter: absolute path
> ok 2 - find_filter: known extension
> ok 3 - find_filter: executable in $PATH
> ok 4 - threw Regexp ((?^:^filter not found: 0c9703d020ded30c97682e812636c9ef))
> # Skipping detailed testing of Pandoc::Filter::Multifilter
> 1..4
> ok
> Can't locate object method "match" via package "Pandoc::Document::ColWidth" at /<<PKGBUILDDIR>>/blib/lib/Pandoc/Walker.pm line 69.
> t/outline.t ................... 
> Dubious, test returned 25 (wstat 6400, 0x1900)
> No subtests run 
> t/pandoc-metadata.t ........... 
> ok 1
> ok 2
> ok 3
> ok 4
> ok 5
> ok 6
> ok 7
> ok 8
> ok 9
> ok 10
> ok 11
> 1..11
> ok
> t/pandoc-version.t ............ 
> ok 1 - pandoc_version from ENV
> ok 2 - set pandoc_version via variable
> ok 3 - maximum supported version
> ok 4 - localize PANDOC_VERSION
> 1..4
> ok
> t/pandoc_filter.t ............. 
> ok 1 - JSON with Unicode
> ok 2 - identity filter
> ok 3 - applied filter
> ok 4 - pandoc_filter (sub)
> ok 5 - pandoc_filter (hash)
> 1..5
> ok
> t/pointer.t ................... 
> # Subtest: RFC 6901
>     ok 1 - ''
>     ok 2 - '' strict
>     ok 3 - '/foo'
>     ok 4 - '/foo' strict
>     ok 5 - '/foo/0'
>     ok 6 - '/foo/0' strict
>     ok 7 - '/'
>     ok 8 - '/' strict
>     ok 9 - '/a~1b'
>     ok 10 - '/a~1b' strict
>     ok 11 - '/c%d'
>     ok 12 - '/c%d' strict
>     ok 13 - '/e^f'
>     ok 14 - '/e^f' strict
>     ok 15 - '/g|h'
>     ok 16 - '/g|h' strict
>     ok 17 - '/i\j'
>     ok 18 - '/i\j' strict
>     ok 19 - '/k"l'
>     ok 20 - '/k"l' strict
>     ok 21 - '/ '
>     ok 22 - '/ ' strict
>     ok 23 - '/m~0n'
>     ok 24 - '/m~0n' strict
>     1..24
> ok 1 - RFC 6901
> # Subtest: plain-key
>     ok 1 - 'foo'
>     ok 2 - 'foo' strict
>     ok 3 - 'foo/0'
>     ok 4 - 'a/b'
>     ok 5 - 'a/b' strict
>     ok 6 - 'c%d'
>     ok 7 - 'c%d' strict
>     ok 8 - 'e^f'
>     ok 9 - 'e^f' strict
>     ok 10 - 'g|h'
>     ok 11 - 'g|h' strict
>     ok 12 - 'i\j'
>     ok 13 - 'i\j' strict
>     ok 14 - 'k"l'
>     ok 15 - 'k"l' strict
>     ok 16 - ' '
>     ok 17 - ' ' strict
>     ok 18 - 'm~n'
>     ok 19 - 'm~n' strict
>     1..19
> ok 2 - plain-key
> # Subtest: strict
>     ok 1 - '/foo/2' throws
>     ok 2 - '/foo/bar' throws
>     ok 3 - '/quux' throws
>     ok 4 - 'quux' throws
>     ok 5 - '/e^f/g/h' throws
>     1..5
> ok 3 - strict
> # Subtest: indices
>     ok 1 - return list length
>     ok 2 - correct return values
>     1..2
> ok 4 - indices
> 1..4
> ok
> t/release-pod-syntax.t ........ skipped: these tests are for release candidate testing
> t/scalar-types.t .............. 
> ok 1 - no error reading "bad" JSON
> ok 2 - An object of class 'Pandoc::Document' isa 'Pandoc::Document'
> ok 3 - fixed JSON
> 1..3
> ok
> t/selector.t .................. 
> ok 1 - match name
> ok 2 - no match
> ok 3 - case-insensitive
> ok 4 - type match
> ok 5 - type not match
> ok 6 - multiple match
> ok 7 - | match
> ok 8 - no id match
> ok 9 - id match
> ok 10 - id no match
> ok 11 - id no match
> ok 12 - class match
> ok 13 - classes match
> ok 14 - class no match
> ok 15 - multiple match
> ok 16 - :inline match without keywords
> 1..16
> ok
> t/softbreak.t ................. 
> ok 1 - replaced SoftBreak with spaces
> ok 2 - keep SoftBreak by default
> ok 3 - no SoftBreak in modified ast
> 1..3
> ok
> t/stringify.t ................. 
> ok 1 - stringify MetaInlines
> ok 2 - stringify MetaString
> ok 3 - stringify MetaMap>MetaList>MetaInlines
> ok 4 - stringify Document with metadata
> ok 5 - LineBreak to space
> ok 6 - RawBlock has no string
> ok 7 - RawInline has no string
> ok 8 - Code has string
> ok 9 - CodeBlock has string
> 1..9
> ok
> t/synopsis.t .................. 
> ok 1
> ok 2 - encode/decode JSON
> ok 3 - pandoc_json
> ok 4 - to_json
> ok 5 - error in pandoc_json
> 1..5
> ok
> Use of uninitialized value $_ in string at /<<PKGBUILDDIR>>/blib/lib/Pandoc/Elements.pm line 594.
> 
> #   Failed test 'to_pandoc'
> #   at t/to_pandoc.t line 15.
> #                   ''
> #     doesn't match '(?^:^<p>test document</p>)'
> Use of uninitialized value $_ in string at /<<PKGBUILDDIR>>/blib/lib/Pandoc/Elements.pm line 594.
> 
> #   Failed test 'to_pandoc with options'
> #   at t/to_pandoc.t line 20.
> #                   ''
> #     doesn't match '(?^:^<!DOCTYPE)'
> Use of uninitialized value $_ in string at /<<PKGBUILDDIR>>/blib/lib/Pandoc/Elements.pm line 594.
> Use of uninitialized value $_ in string at /<<PKGBUILDDIR>>/blib/lib/Pandoc/Elements.pm line 594.
> Use of uninitialized value $_ in string at /<<PKGBUILDDIR>>/blib/lib/Pandoc/Elements.pm line 594.
> Use of uninitialized value $_ in string at /<<PKGBUILDDIR>>/blib/lib/Pandoc/Elements.pm line 594.
> # Looks like you failed 2 tests of 5.
> t/to_pandoc.t ................. 
> not ok 1 - to_pandoc
> not ok 2 - to_pandoc with options
> ok 3 - to_markdown
> ok 4 - 'to-latex-object' isa 'Pandoc'
> ok 5 - to latex with custom Pandoc
> 1..5
> Dubious, test returned 2 (wstat 512, 0x200)
> Failed 2/5 subtests 
> t/walker.t .................... 
> ok 1 - query( action )
> ok 2 - ->query
> ok 3 - query( name => action )
> ok 4 - walk(sub)
> ok 5 - ->walk
> ok 6 - walk(Filter)
> ok 7 - transform, remove elements
> ok 8 - transform, escaped links
> ok 9 - ->transform, escaped links
> ok 10 - transform, multiple elements
> ok 11 - nested transformation
> 1..11
> ok
> 
> Test Summary Report
> -------------------
> t/outline.t                 (Wstat: 6400 Tests: 0 Failed: 0)
>   Non-zero exit status: 25
>   Parse errors: No plan found in TAP output
> t/to_pandoc.t               (Wstat: 512 Tests: 5 Failed: 2)
>   Failed tests:  1-2
>   Non-zero exit status: 2
> Files=32, Tests=280,  6 wallclock secs ( 0.19 usr  0.06 sys +  5.41 cusr  0.85 csys =  6.51 CPU)
> Result: FAIL
> dh_auto_test: error: /usr/bin/perl Build test --verbose 1 returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2022/08/13/libpandoc-elements-perl_0.38-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220813;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-perl-maintainers mailing list