Your message dated Fri, 5 Dec 2025 16:44:48 +0000 (UTC)
with message-id <[email protected]>
and subject line Re: Bug#1121447: asciidoctor: autopkgtest failure with
rust-coreutils
has caused the Debian Bug report #1121447,
regarding asciidoctor: autopkgtest failure with rust-coreutils
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1121447: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1121447
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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 <[email protected]> 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
--- End Message ---
--- Begin Message ---
Hello sorry but when I tested, it looked like it was working.
Closing this one, you are definitely right
G.
Il giovedì 27 novembre 2025 alle ore 15:01:10 CET, Antonio Terceiro
<[email protected]> ha scritto:
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
signature.asc
Description: PGP signature
--- End Message ---