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

Re: Dependencies on shared libs, take 2

Raphael Hertzog wrote:
> I double-checked this and no, it's not the case. Extract from dpkg-shlibdeps:
>     while (<SLF>) {
>         s/\s*\n$//; next if m/^\#/;
>         if (!m/^\s*(?:(\S+):\s+)?(\S+)\s+(\S+)/) {
>             &warn(sprintf(_g("shared libs info file \`%s' line %d: bad line \`%s'"), $fn, $., $_));
>             next;
>         }
>     [...]
>     }
> What you propose would look like:
> libc 6
> 	GLIBC_2.0@GLIBC_2.0 libc6 2.3.6.ds1-13
> 	_Exit@GLIBC_2.1.1 libc6 2.3.6.ds1-13
> Because of the "^\s*" you can't use starting spaces as a differentiating
> factor. The lines with symbols would still match and be considered as usual
> shlibs line.

The current dpkg-shlibdeps will still skip the extra lines unless a
symbol equals the library name. That's not as robust as it could be, but
could probably be worked around.

see shy jo

Attachment: signature.asc
Description: Digital signature

Reply to: