#996998 libconfig-model-dpkg-perl: scan-copyrights fails for package rust-coreutils

#996998#5
Date:
2021-10-22 07:36:14 UTC
From:
To:
Dear Maintainer,

scan-copyrights fails on package rust-coreutils with the following error,

Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+D800 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+D800 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB7F at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB7F at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB80 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB80 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DBFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DBFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DF80 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DF80 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+D800 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+D800 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+D800 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+D800 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB7F at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB7F at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB7F at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB7F at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB80 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB80 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB80 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DB80 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DBFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DBFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DC00 at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DBFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DBFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.
Operation "pattern match (m//)" returns its argument for UTF-16 surrogate U+DFFF at /usr/share/perl5/String/Copyright.pm line 162, <$fh> line 122.

toml parse error at line 253: expected key-value pair, table, or array of tables but got bool

Please could you look into this. Thanks.

Regards,
Vignesh

#996998#10
Date:
2021-10-23 09:33:55 UTC
From:
To:
Hi

I cannot reproduce this problem on Debian unstable. I guess that I have not
found the source code you're working on.

Could you provide a link to that code ?

All the best

#996998#15
Date:
2021-10-28 06:32:02 UTC
From:
To:
On Sat, 23 Oct 2021 11:33:55 +0200 Dominique Dumont <dod@debian.org> wrote:
 > I cannot reproduce this problem on Debian unstable. I guess that I
have not
 > found the source code you're working on.
 >
 > Could you provide a link to that code ?
 >

Thanks for checking. Please could you try with the sources from
https://packages.debian.org/experimental/rust-coreutils

libconfig-model-dpkg-perl version used is 2.14

Regards,
Vignesh

#996998#20
Date:
2021-10-28 15:44:05 UTC
From:
To:
Although I see a lot of entries with unknown licenses:

Files: src/uucore/src/lib/features/process.rs
Copyright: Maciej Dziardziel <fiedzia@gmail.com> / Jian Zeng <anonymousknight96
AT gmail.com>
License: UNKNOWN

Files: src/uucore/src/lib/features/signals.rs
Copyright: Maciej Dziardziel <fiedzia@gmail.com>
License: UNKNOWN

Files: src/uucore/src/lib/features/wide.rs
Copyright: Peter Atashian <retep998@gmail.com>
License: UNKNOWN

Files: src/uucore/src/lib/mods/*
Copyright: Rolf Morel <rolfmorel@gmail.com>
License: UNKNOWN

I need to check whether all toml files are parsed, or just the top level one.

In any case, you need to upgrade libconfig-model-dpkg-perl

All the best

#996998#25
Date:
2021-10-29 05:52:35 UTC
From:
To:
On Thu, 28 Oct 2021 17:44:05 +0200 Dominique Dumont  <domi.dumont@free.fr> wrote:
 > I've got no crash with libconfig-model-dpkg-perl 2.153.

I checked with libconfig-model-dpkg-perl 2.153 and there is no crash.

 > Although I see a lot of entries with unknown licenses:
 >
 > Files: src/uucore/src/lib/features/process.rs
 > Copyright: Maciej Dziardziel <fiedzia@gmail.com> / Jian Zeng
<anonymousknight96
 > AT gmail.com>
 > License: UNKNOWN
 >
 > Files: src/uucore/src/lib/features/signals.rs
 > Copyright: Maciej Dziardziel <fiedzia@gmail.com>
 > License: UNKNOWN
 >
 > Files: src/uucore/src/lib/features/wide.rs
 > Copyright: Peter Atashian <retep998@gmail.com>
 > License: UNKNOWN
 >
 > Files: src/uucore/src/lib/mods/*
 > Copyright: Rolf Morel <rolfmorel@gmail.com>
 > License: UNKNOWN
 >
 > I need to check whether all toml files are parsed, or just the top
level one.
 >

You may close this bug and investigate the above issue separately. Thanks.

Regards,

Vignesh

#996998#30
Date:
2021-10-29 12:48:29 UTC
From:
To:
On Thu, 28 Oct 2021 17:44:05 +0200 Dominique Dumont  <domi.dumont@free.fr> wrote:

 > I've got no crash with libconfig-model-dpkg-perl 2.153.
 >

Please could you provide the commit which fixes the crash with
rust-coreutils package. Thank you.

Regards,

Vignesh

#996998#35
Date:
2021-10-29 13:46:38 UTC
From:
To:
I'm not sure which commit did fix this issue.

I'll let you bisect libconfig-model-dpkg-perl.

All the best

#996998#40
Date:
2021-10-29 14:02:12 UTC
From:
To:
On Fri, 29 Oct 2021 15:46:38 +0200 Dominique Dumont  <domi.dumont@free.fr> wrote:
 > I'm not sure which commit did fix this issue.
 >
 > I'll let you bisect libconfig-model-dpkg-perl.
 >

Sure :) Will check and update.

#996998#45
Date:
2021-11-03 18:06:48 UTC
From:
To:
value pair, table, or array of tables but got bool".

cme with dpkg uses Toml::Tiny.

The command "apt-cache policy libtoml-tiny-perl" shows that bullseye has
version 0.11 and unstable has version 0.15.

Toml::Tiny change log shows that version 0.14 has a lot of bug fixes.

I guess that the issue you've seen is fixed by Toml::Tiny 0.14

All the best

#996998#50
Date:
2021-11-04 06:12:38 UTC
From:
To:
On Wed, 03 Nov 2021 19:06:48 +0100 Dominique Dumont  <domi.dumont@free.fr> wrote:
 > The original error message is: "toml parse error at line 253:
expected key-
 > value pair, table, or array of tables but got bool".
 >
 > cme with dpkg uses Toml::Tiny.
 >
 > The command "apt-cache policy libtoml-tiny-perl" shows that bullseye has
 > version 0.11 and unstable has version 0.15.
 >
 > Toml::Tiny change log shows that version 0.14 has a lot of bug fixes.
 >
 > I guess that the issue you've seen is fixed by Toml::Tiny 0.14

Thanks for the analysis. Yes, the issue is fixed by updating
libtoml-tiny-perl to 0.15-1

Regards,
Vignesh

#996998#57
Date:
2022-06-04 17:16:28 UTC
From:
To:
close 996998
thanks

Fixed by updating dependencies