Adding side stream changes to Maemian. Working to integrate full upstream libraries...
[maemian] / nokia-lintian / debian / patches / 801-allow-dynamic-loaders.dpatch
diff --git a/nokia-lintian/debian/patches/801-allow-dynamic-loaders.dpatch b/nokia-lintian/debian/patches/801-allow-dynamic-loaders.dpatch
new file mode 100755 (executable)
index 0000000..6e33e01
--- /dev/null
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 801-allow-dynamic-loaders.dpatch by Eero Häkkinen <eero.hakkinen@nokia.com>
+##
+## 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));