Bug#663038: lintian: [PATCH] In package-name-doesnt-match-sonames description, change sed to awk example
tags 663038 = wontfix
thanks
On 2012-03-08 16:39, jaalto wrote:
> On 2012-03-08 15:06, Jakub Wilk wrote:
> | * Jari Aalto <jari.aalto@cante.net>, 2012-03-08, 02:23:
> | >- $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | sed -e's/\([0-9]\)\.so\./\1-/; s/\.so\.//'
> | >+ $ objdump -p /path/to/libfoo-bar.so.1.2.3 |
> | >+ awk '/SONAME/ {sub("[.]so[.]",""); sub("[.][0-9.]+",""); print $2; exit}'
> |
> | This is incorrect.
>
> Would you give an SONAME example, so that it can be
> improved. According to test:
>
> # "objdump -p" output
> soname=" SONAME liblrzip.so.0"
>
> # (1)
> echo $soname |
> awk '/SONAME/ {sub("[.]so[.]",""); sub("[.][0-9.]+",""); print $2; exit}'
> # => liblrzip0
>
> # (2)
> echo $soname |
> sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' |
> sed -e's/\([0-9]\)\.so\./\1-/; s/\.so\.//'
> # => liblrzip0
>
> Jari
>
>
>
An example: libgstphotography-0.10.so.23
Here your awk code gives:
libgstphotography-0
and the sed code gives:
libgstphotography-0.10-23
Tagging wontfix as the attached patch does not work and I am not
convinced replacement has any significant value.
~Niels
Reply to: