[DRE-maint] Bug#1121447: asciidoctor: autopkgtest failure with rust-coreutils
Antonio Terceiro
terceiro at debian.org
Thu Nov 27 14:01:04 GMT 2025
Control: tag -1 + wontfix
Control: done -1
Thanks for your bug report.
On Wed, Nov 26, 2025 at 05:08:34PM +0000, Gianfranco Costamagna wrote:
> 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?
I consider the experiment with the rust coreutils an interesting one,
and would like to support it when I can. However ...
> 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
... `truncate -s=-1 example.ref` does not seem to work with GNU
coreutils either?
$ truncate -s=-1 example.ref
truncate: Invalid number: '=-1'
$ truncate -s -1 example.ref
$ ls -l example.ref
-rw-rw-r-- 1 terceiro terceiro 0 Nov 27 10:58 example.ref
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20251127/b6a1dded/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list