scan-copyrigths fails on texlive-extra on Trixie
Background
Tool scan-copyrights reports an error while trying to scan package texlive-extra on Debian Trixie.
Generating copyright data...
Attribute (main_grant_weight) does not pass the type constraint because: Validation failed for 'Int' with value undef at /usr/lib/x86_64-linux-gnu/perl5/5.40/Mouse/Util.pm line 395.
Mouse::Util::throw_error(Mouse::Meta::Attribute=HASH(0x604a845790e8), "Attribute (main_grant_weight) does not pass the type constrai"..., "data", undef, "depth", -1) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 278
Dpkg::Copyright::Grant::ByDir::main_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a872076d8)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 221
Dpkg::Copyright::Grant::ByDir::count_dir_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a4d50), HASH(0x604a85503930), HASH(0x604a8568a2b8)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 199
Dpkg::Copyright::Grant::ByDir::count_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a4d50)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 271
Dpkg::Copyright::Grant::ByDir::main_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a4d50)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 221
Dpkg::Copyright::Grant::ByDir::count_dir_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a4b58), HASH(0x604a85178a60), HASH(0x604a8573a6c0)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 199
Dpkg::Copyright::Grant::ByDir::count_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a4b58)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 271
Dpkg::Copyright::Grant::ByDir::main_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a4b58)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 221
Dpkg::Copyright::Grant::ByDir::count_dir_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a3f78), HASH(0x604a856e0f68), HASH(0x604a855949c8)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 199
Dpkg::Copyright::Grant::ByDir::count_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a3f78)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 271
Dpkg::Copyright::Grant::ByDir::main_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a871a3f78)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 221
Dpkg::Copyright::Grant::ByDir::count_dir_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a852c4620), HASH(0x604a8454aa08), HASH(0x604a8454a990)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 199
Dpkg::Copyright::Grant::ByDir::count_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a852c4620)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 271
Dpkg::Copyright::Grant::ByDir::main_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x604a852c4620)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 385
Dpkg::Copyright::Grant::ByDir::debian_full_data(Dpkg::Copyright::Grant::ByDir=HASH(0x604a852c4620)) called at /usr/share/perl5/Dpkg/Copyright/Grant/ByDir.pm line 418
Dpkg::Copyright::Grant::ByDir::debian_full_record(Dpkg::Copyright::Grant::ByDir=HASH(0x604a852c4620)) called at /usr/share/perl5/Dpkg/Copyright/Scanner.pm line 56
Dpkg::Copyright::Scanner::generate_copyright() called at /usr/share/perl5/Dpkg/Copyright/Scanner.pm line 64
Dpkg::Copyright::Scanner::print_copyright() called at /usr/bin/scan-copyrights line 37
Reproducibility
How often the issue is hit when repeating the steps to reproduce and changing nothing?
Put the
-
✅ always - often, but not always
- rarely
Impact of bug
The source package build pipeline is not able to run.
Outcomes
Management data
This section is for management only, it should be the last one in the description.
/cc @em @Balasubramanian @sudarshan @wlozano
Phabricator link: https://phabricator.apertis.org/T10844
Edited by Walter Lozano