Bug#663038: lintian: [PATCH] In package-name-doesnt-match-sonames description, change sed to awk example

March 08th, 2012 - 02:30 am ET by Jari Aalto | Report spam
This is a multi-part MIME message sent by reportbug.


MIME-Version: 1.0

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

Please see if this suggestion to use simpler awk solution for double
sed call in the example of package-name-doesnt-match-sonames
description would be useful.

Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


MIME-Version: 1.0
filename="0001-In-package-name-doesnt-match-sonames-description-cha.patch"


From 5625b5eabad4d97095c736cee6770fb977a7f92a Mon Sep 17 00:00:00 2001


From: Jari Aalto <jari.aalto@cante.net>
Date: Thu, 8 Mar 2012 02:20:31 -0500
Subject: [PATCH] In package-name-doesnt-match-sonames description, change sed
to awk example
Organization: Private


Signed-off-by: Jari Aalto <jari.aalto@cante.net>

checks/binaries.desc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/checks/binaries.desc b/checks/binaries.desc
index 4e0ad1e..c523f77 100644
a/checks/binaries.desc
+++ b/checks/binaries.desc
@@ -145,7 +145,8 @@ Info: 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 -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}'

Tag: binary-with-bad-dynamic-table
Severity: serious
1.7.9.1





To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Jakub Wilk
March 08th, 2012 - 09:10 am ET | Report spam
* Jari Aalto , 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.

Jakub Wilk



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics