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

Bug#429840: lintian: wrong filename reported with shlib-with-non-pic-code error



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

I have noticed that lintian reports wrong filenames with the following
error:
shlib-with-non-pic-code error

Here is an example erroneous output:
lintian *.deb
E: complearn-mod-crypt: shlib-with-non-pic-code usr/lib/complearn/modules/libmod_md5.so.0.0.0
E: complearn-mod-crypt: shlib-with-non-pic-code usr/lib/complearn/modules/libmod_md5.so.0.0.0
E: complearn-mod-crypt: shlib-with-non-pic-code usr/lib/complearn/modules/libmod_md5.so.0.0.0
....


I have attached a one-line patch that fixes the problem.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages lintian depends on:
ii  binutils               2.17cvs20070426-5 The GNU assembler, linker and bina
ii  diffstat               1.43-2            produces graph of changes introduc
ii  dpkg-dev               1.13.25           package building tools for Debian
ii  file                   4.17-5etch1       Determines file type using "magic"
ii  gettext                0.16.1-1          GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  libparse-debianchangel 1.0-1             parse Debian changelogs and output
ii  man-db                 2.4.3-6           The on-line manual pager
ii  perl [libdigest-md5-pe 5.8.8-7           Larry Wall's Practical Extraction 

lintian recommends no packages.

-- no debconf information
diff -rc lintian-1.23.31/checks/shared-libs lingood/checks/shared-libs
*** lintian-1.23.31/checks/shared-libs	2007-04-28 04:50:06.000000000 +0200
--- lingood/checks/shared-libs	2007-06-20 16:50:49.000000000 +0200
***************
*** 167,173 ****
  	# Now that we're sure this is really a shared library, report on
  	# non-PIC problems.
          if ($cur_file eq $real_file and $TEXTREL{$cur_file}) {
!             tag "shlib-with-non-pic-code", "$file";
          }
  
          # don't apply the permission checks to links
--- 167,173 ----
  	# Now that we're sure this is really a shared library, report on
  	# non-PIC problems.
          if ($cur_file eq $real_file and $TEXTREL{$cur_file}) {
!             tag "shlib-with-non-pic-code", "$cur_file";
          }
  
          # don't apply the permission checks to links

Reply to: