[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#428681: lintian: [checks/binaries] several-sonames-in-same-package: please sort SONAMEs



Package: lintian
Version: 1.23.31
Severity: wishlist
Tags: patch

Hi,

it would be cool to have the SONAMEs sorted so that one can write the
overrides once. The attached patch implements this, and at least
"several-sonames-in-same-package" and
"package-name-doesnt-match-sonames" should benefit from it.

TIA. Cheers,

-- 
Cyril Brulebois
--- lintian-1.23.31~/checks/binaries	2006-11-20 04:19:38.000000000 +0000
+++ lintian-1.23.31/checks/binaries	2007-06-13 12:44:00.000000000 +0000
@@ -131,7 +131,7 @@
     }
     return 0;
 }
-my @sonames = grep { lib_soname_path (@{$SONAME{$_}}) } keys %SONAME;
+my @sonames = sort grep { lib_soname_path (@{$SONAME{$_}}) } keys %SONAME;
 tag "several-sonames-in-same-package", "@sonames" if @sonames > 1;
 
 # try to identify transition strings

Reply to: