#! /bin/sh /usr/share/dpatch/dpatch-run ## 801-allow-dynamic-loaders.dpatch by Eero Häkkinen ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Allow dynamic loaders with executable permissions. @DPATCH@ diff -urNad lintian~/checks/shared-libs lintian/checks/shared-libs --- lintian~/checks/shared-libs 2006-09-21 15:28:04.000000000 +0300 +++ lintian/checks/shared-libs 2006-09-21 15:28:04.000000000 +0300 @@ -169,8 +169,10 @@ if ($real_perm =~ m/x/) { # yes. But if the library has an INTERP section, it's designed # to do something useful when executed, so don't report an error. + # Patch: + # Dynamic loaders must be executable. tag "shlib-with-executable-bit", $cur_file, sprintf("%04o",perm2oct($real_perm)) - unless $INTERP{$real_file}; + unless $INTERP{$real_file} or $SONAME{$real_file} =~ /^ld-/os; } elsif ($real_perm ne '-rw-r--r--') { # bad permissions tag "shlib-with-bad-permissions", $cur_file, sprintf("%04o",perm2oct($real_perm));