underscore is not allowed in BR package name.
this problem was found with the Perl module DB_File
which must give the BR package perl-db-file.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
https://metacpan.org/release/DB_File
-comment "perl-db_file needs a toolchain w/ dynamic library"
+comment "perl-db-file needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
################################################################################
#
-# perl-db_file
+# perl-db-file
#
################################################################################
# Buildroot package name: lowercase
sub fsname {
my $name = shift;
+ $name =~ s|_|-|g;
return q{perl-} . lc $name;
}