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

[lintian] 01/01: Skip Objective-C libraries for the no-symbols-control-file tag as instance/class methods do not appear in the symbol table. Thanks to Yavor Doganov for the report and help. (Closes: #749202)



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit 19f2a1feb1599aebdceba38b99642ab176b00550
Author: Chris Lamb <lamby@debian.org>
Date:   Tue Jan 2 18:00:04 2018 +0000

    Skip Objective-C libraries for the no-symbols-control-file tag as instance/class methods do not appear in the symbol table. Thanks to Yavor Doganov for the report and help. (Closes: #749202)
---
 checks/shared-libs.pm | 4 ++++
 debian/changelog      | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/checks/shared-libs.pm b/checks/shared-libs.pm
index 51561f9..21902ea 100644
--- a/checks/shared-libs.pm
+++ b/checks/shared-libs.pm
@@ -440,6 +440,10 @@ sub run {
             for my $shlib (@shlibs, keys %unversioned_shlibs) {
                 # skip it if it's not a public shared library
                 next unless $ldconfig_dirs->known(dirname($shlib));
+                # Skip Objective C libraries as instance/class methods do not
+                # appear in the symbol table
+                next if any { @{$_}[2] =~ m/^__objc_/ }
+                @{$objdump->{$shlib}{SYMBOLS}};
                 tag 'no-symbols-control-file', $shlib
                   unless is_nss_plugin($shlib);
             }
diff --git a/debian/changelog b/debian/changelog
index 7cd2085..62bb689 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,10 @@ lintian (2.5.68) UNRELEASED; urgency=medium
   * checks/rules.pm:
     + [CL] Also allow $(overridden_command) when checking for the
       override_dh_fixperms-does-not-call-dh_fixperms etc. tags.
+  * checks/shared-libs.pm:
+    + [CL] Skip Objective-C libraries for the no-symbols-control-file tag
+      as instance/class methods do not appear in the symbol table. Thanks
+      to Yavor Doganov for the report and help.  (Closes: #749202)
 
   * data/files/fnames:
     + [CL] Warn about packages that ship (non-reproducible) Python

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: