diff options
Diffstat (limited to '')
-rw-r--r-- | tags/p/package-name-doesnt-match-sonames.tag | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tags/p/package-name-doesnt-match-sonames.tag b/tags/p/package-name-doesnt-match-sonames.tag new file mode 100644 index 0000000..bb89de8 --- /dev/null +++ b/tags/p/package-name-doesnt-match-sonames.tag @@ -0,0 +1,9 @@ +Tag: package-name-doesnt-match-sonames +Severity: warning +Check: libraries/shared/soname +Explanation: The package name of a library package should usually reflect + the soname of the included library. The package name can determined + from the library file name with the following code snippet: + . + $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \ + sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/' |