[DRE-maint] Bug#1121447: asciidoctor: autopkgtest failure with rust-coreutils

Gianfranco Costamagna locutusofborg at debian.org
Wed Nov 26 17:08:34 GMT 2025


Source: asciidoctor
Version: 2.0.26-2
tags: patch

Hello, I found asciidoctor fail when truncate is provided by rust-coreutils.
This is a rust issue, already fixed upstream, check
bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2132404
and https://github.com/uutils/coreutils/commit/7ca5f66fa1deec91c75868816baac0efb60eb0af

But in any case, doing:
$ echo foo > 1
$ truncate -s -1 1

looks a little bit strange, maybe change into:
truncate -s=-1 example.ref

can be a little more clear?

diff -Nru asciidoctor-2.0.26/debian/changelog asciidoctor-2.0.26/debian/changelog
--- asciidoctor-2.0.26/debian/changelog    2025-11-12 05:12:48.000000000 +0000
+++ asciidoctor-2.0.26/debian/changelog    2025-11-25 13:54:08.000000000 +0000
@@ -1,3 +1,10 @@
+asciidoctor (2.0.26-2.1) unstable; urgency=medium
+
+  * Use a syntax of truncate command that is compatible with rust coreutils
+    too (See LP: #2132404) Closes: #-1
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Tue, 25 Nov 2025 14:54:08 +0100
+
asciidoctor (2.0.26-2) unstable; urgency=medium

   * Team upload.
diff -Nru asciidoctor-2.0.26/debian/tests/generate-man asciidoctor-2.0.26/debian/tests/generate-man
--- asciidoctor-2.0.26/debian/tests/generate-man    2025-11-12 04:58:40.000000000 +0000
+++ asciidoctor-2.0.26/debian/tests/generate-man    2025-11-25 13:54:03.000000000 +0000
@@ -118,5 +118,5 @@
# Removing the generator as it contains the version so we would have to change that all the time
sed '/Generator/d' -i example.1
# Remove the newline character at the end of the ref file
-truncate -s -1 example.ref
+truncate -s=-1 example.ref
diff example.ref example.1

thanks for considering the patch!


Gianfranco



More information about the Pkg-ruby-extras-maintainers mailing list