diff --git a/debian/changelog b/debian/changelog index 64883dbeb5322e125296bba857860a249a50078c..4dafe058ba57af235b1318b8ce872379aa5896b2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,18 @@ +debhelper (13.11.4+apertis8) apertis; urgency=medium + + * dh_setup_copyright: Warn if no package found. + The script dh_setup_copyright tries to find the package each reference + file belongs to, however, in some cases this is not possible and there + is now warning about that. + Add a warning about the unknown file to allow further investigations. + * dh_setup_copyright: Workaround rust-coreutils issues. + Package rust-coreutils is special as it uses a different folder for the + registry, causing dh_setup_copyright to fail at finding the package + reference files belong to. + To avoid this issue, take into account this fact and replace the names. + + -- Walter Lozano <walter.lozano@collabora.com> Tue, 22 Oct 2024 16:24:59 -0300 + debhelper (13.11.4+apertis7) apertis; urgency=medium * dh_setup_copyright: Sort JSON keys to preserve reproducible builds diff --git a/dh_setup_copyright b/dh_setup_copyright index 91dbe890d72a6a0a5cccc96daa6bad7008afc982..31bffd9203f63d5a23f322476fff8b7811152577 100755 --- a/dh_setup_copyright +++ b/dh_setup_copyright @@ -123,6 +123,11 @@ sub find_package_providing_path { use constant PATH_HAS_NO_PACKAGE => ''; + # rust-coreutils uses a different place for the registry + # making it difficult to find the source package based on the path + # so replace the file path with the expected one + $path =~ s!^.*/debian/cargo_registry/!/usr/share/cargo/registry/!g; + my $package = $external_files_to_packages_cache{$path}; if (defined $package) { return $package eq PATH_HAS_NO_PACKAGE ? undef : $package; @@ -135,6 +140,7 @@ sub find_package_providing_path { } if (!defined $package) { $external_files_to_packages_cache{$path} = PATH_HAS_NO_PACKAGE; + print STDERR "WARNING: $path was not found in any package\n"; return undef; }