Package: src:guile-commonmark
Version: 0.1.2+20240812-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --no-parallel
   dh_update_autotools_config -O--no-parallel
   dh_autoreconf -O--no-parallel
   dh_auto_configure -O--no-parallel
        ./configure --build=x86_64-linux-gnu --prefix=/usr 
--includedir=\${prefix}/include --mandir=\${prefix}/share/man 
--infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var 
--disable-option-checking --disable-silent-rules 
--libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run 
--disable-maintainer-mode --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for pkg-config... /usr/bin/pkg-config

[... snipped ...]

+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "bar"))
+             ('text text-data "foo] ")
+             ('text text-data "[")))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, full reference link no whitespace is allowed between 
the link text
and the link label
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:756
source:
+ (test-assert
+   "parse-inlines, full reference link no whitespace is allowed between the link 
text\nand the link label"
+   (match (parse-inlines
+            (make-document
+              "[foo]\n[bar]"
+              '(("bar" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "bar"))
+             ('softbreak break-data)
+             ('text text-data "foo]")
+             ('text text-data "[")))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, full reference link when there are multiple matching 
link
reference definitions, the first is used
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:771
source:
+ (test-assert
+   "parse-inlines, full reference link when there are multiple matching 
link\nreference definitions, the first is used"
+   (match (parse-inlines
+            (make-document
+              "[bar][foo]"
+              '(("foo" "/url1" #f) ("foo" "/url2" #f))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "bar"))))
+           (destination=? link-data "/url1"))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, full reference link matching is performed on 
normalized strings,
not parsed inline content
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:783
source:
+ (test-assert
+   "parse-inlines, full reference link matching is performed on normalized 
strings,\nnot parsed inline content"
+   (match (parse-inlines
+            (make-document
+              "[bar][foo\\!]"
+              '(("foo!" "/url" #f))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('text text-data "]")
+             ('text text-data "!")
+             ('text text-data "foo")
+             ('text text-data "[")
+             ('text text-data "bar]")
+             ('text text-data "[")))
+           #t)
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, full reference link labels cannot contain brackets, 
unless
they are backslash-escaped
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:798
source:
+ (test-assert
+   "parse-inlines, full reference link labels cannot contain brackets, unless\nthey 
are backslash-escaped"
+   (match (parse-inlines
+            (make-document
+              "[foo][ref\\[]"
+              '(("ref\\[" "/uri" #f))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "foo"))))
+           (destination=? link-data "/uri"))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, simple collapsed reference link
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:811
source:
+ (test-assert
+   "parse-inlines, simple collapsed reference link"
+   (match (parse-inlines
+            (make-document
+              "[foo][]"
+              '(("foo" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "foo"))))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, simple collapsed reference link
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:822
source:
+ (test-assert
+   "parse-inlines, simple collapsed reference link"
+   (match (parse-inlines
+            (make-document
+              "[*foo* bar][]"
+              '(("*foo* bar" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link
+              link-data
+              ('text text-data " bar")
+              ('emphasis em-data ('text text-data "foo")))))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")
+                (em? em-data)))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, collapsed reference link labels are case-insensitive
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:836
source:
+ (test-assert
+   "parse-inlines, collapsed reference link labels are case-insensitive"
+   (match (parse-inlines
+            (make-document
+              "[Foo][]"
+              '(("foo" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "Foo"))))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, collapsed reference link, whitespace is not allowed 
between
the two sets of brackets
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:847
source:
+ (test-assert
+   "parse-inlines, collapsed reference link, whitespace is not allowed between\nthe 
two sets of brackets"
+   (match (parse-inlines
+            (make-document
+              "[foo] \n[]"
+              '(("foo" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('text text-data "]")
+             ('text text-data "[")
+             ('softbreak break-data)
+             ('link link-data ('text text-data "foo"))))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link simple
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:864
source:
+ (test-assert
+   "parse-inlines, shortcut reference link simple"
+   (match (parse-inlines
+            (make-document
+              "[foo]"
+              '(("foo" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "foo"))))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link simple
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:875
source:
+ (test-assert
+   "parse-inlines, shortcut reference link simple"
+   (match (parse-inlines
+            (make-document
+              "[*foo* bar]"
+              '(("*foo* bar" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link
+              link-data
+              ('text text-data " bar")
+              ('emphasis em-data ('text text-data "foo")))))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")
+                (em? em-data)))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link simple
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:889
source:
+ (test-assert
+   "parse-inlines, shortcut reference link simple"
+   (match (parse-inlines
+            (make-document
+              "[[*foo* bar]]"
+              '(("*foo* bar" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('text text-data "]")
+             ('link
+              link-data
+              ('text text-data " bar")
+              ('emphasis em-data ('text text-data "foo")))
+             ('text text-data "[")))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")
+                (em? em-data)))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link simple
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:905
source:
+ (test-assert
+   "parse-inlines, shortcut reference link simple"
+   (match (parse-inlines
+            (make-document
+              "[[bar [foo]"
+              '(("foo" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "foo"))
+             ('text text-data "bar ")
+             ('text text-data "[")
+             ('text text-data "[")))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link labels are case-insensitive
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:919
source:
+ (test-assert
+   "parse-inlines, shortcut reference link labels are case-insensitive"
+   (match (parse-inlines
+            (make-document
+              "[Foo]"
+              '(("foo" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "Foo"))))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link a space after the link text 
should
be preserved
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:930
source:
+ (test-assert
+   "parse-inlines, shortcut reference link a space after the link text should\nbe 
preserved"
+   (match (parse-inlines
+            (make-document
+              "[foo] bar"
+              '(("foo" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('text text-data " bar")
+             ('link link-data ('text text-data "foo"))))
+           (and (destination=? link-data "/url")
+                (title=? link-data "title")))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link backslash-escape the opening 
bracket
to avoid links
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:943
source:
+ (test-assert
+   "parse-inlines, shortcut reference link backslash-escape the opening bracket\nto 
avoid links"
+   (match (parse-inlines
+            (make-document
+              "\\[foo]"
+              '(("foo" "/url" "\"title\""))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('text text-data "foo]")
+             ('text text-data "[")))
+           #t)
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link note that this is a link,
because a link label ends with the first following closing bracket
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:954
source:
+ (test-assert
+   "parse-inlines, shortcut reference link note that this is a link,\nbecause a 
link label ends with the first following closing bracket"
+   (match (parse-inlines
+            (make-document "*[foo*]" '(("foo*" "/url" #f))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link
+              link-data
+              ('text text-data "*")
+              ('text text-data "foo"))
+             ('text text-data "*")))
+           (and (destination=? link-data "/url")
+                (title=? link-data #f)))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link, full references take 
precedence
over shortcut references
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:968
source:
+ (test-assert
+   "parse-inlines, shortcut reference link, full references take precedence\nover 
shortcut references"
+   (match (parse-inlines
+            (make-document
+              "[foo][bar]"
+              '(("foo" "/url1" #f) ("bar" "/url2" #f))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "foo"))))
+           (and (destination=? link-data "/url2")
+                (title=? link-data #f)))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link, in the following case 
[bar][baz]
is parsed as a reference, [foo] as normal text
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:981
source:
+ (test-assert
+   "parse-inlines, shortcut reference link, in the following case [bar][baz]\nis 
parsed as a reference, [foo] as normal text"
+   (match (parse-inlines
+            (make-document
+              "[foo][bar][baz]"
+              '(("baz" "/url" #f))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "bar"))
+             ('text text-data "foo]")
+             ('text text-data "[")))
+           (and (destination=? link-data "/url")
+                (title=? link-data #f)))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link, here [foo][bar] is parsed as 
a reference
since [bar] is defined
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:995
source:
+ (test-assert
+   "parse-inlines, shortcut reference link, here [foo][bar] is parsed as a 
reference\nsince [bar] is defined"
+   (match (parse-inlines
+            (make-document
+              "[foo][bar][baz]"
+              '(("baz" "/url1" #f) ("bar" "/url2" #f))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data2 ('text text-data "baz"))
+             ('link link-data1 ('text text-data "foo"))))
+           (and (destination=? link-data1 "/url2")
+                (title=? link-data1 #f)
+                (destination=? link-data2 "/url1")
+                (title=? link-data2 #f)))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS

test-name: parse-inlines, shortcut reference link, here [foo] is not parsed as 
a shortcut
reference, because it is followed by a link label (even though [bar] is not 
defined)
location: /<<PKGBUILDDIR>>/tests/inlines/links.scm:1012
source:
+ (test-assert
+   "parse-inlines, shortcut reference link, here [foo] is not parsed as a 
shortcut\nreference, because it is followed by a link label (even though [bar] is not 
defined)"
+   (match (parse-inlines
+            (make-document
+              "[foo][bar][baz]"
+              '(("baz" "/url1" #f) ("foo" "/url2" #f))))
+          (('document
+            doc-data
+            ('paragraph
+             para-data
+             ('link link-data ('text text-data "bar"))
+             ('text text-data "foo]")
+             ('text text-data "[")))
+           (and (destination=? link-data "/url1")
+                (title=? link-data #f)))
+          (x (pk 'fail x #f))))
actual-value: #t
result: PASS


============================================================================
Testsuite summary for guile-commonmark 0.2
============================================================================
# TOTAL: 495
# PASS:  470
# SKIP:  0
# XFAIL: 21
# FAIL:  0
# XPASS: 4
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================
make[3]: *** [Makefile:891: test-suite.log] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:999: check-TESTS] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:1199: check-am] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j1 check "TESTSUITEFLAGS=-j1 --verbose" VERBOSE=1 
returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to