]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_fixperms
Fix build system auto-selection breakage.
[debhelper.git] / dh_fixperms
index 1d4a33f33d6954f0a1d27fdb3a93bf53441d6720..10261493fe85516f612e7cb8ad59cc03ce5a6b0f 100755 (executable)
@@ -24,9 +24,9 @@ dh_fixperms makes all files in usr/share/doc in the package build directory
 the permissions of all man pages to mode 644. It makes all files be owned
 by root, and it removes group and other write permission from all files. It
 removes execute permissions from any libraries, headers, perl modules, or
-desktop files that have it set. It makes all files in bin/ directories,
-/usr/games/ and etc/init.d executable (since v4). Finally, it removes the
-setuid and setgid bits from all files in the package.
+desktop files that have it set. It makes all files in the standard bin and
+sbin directories, usr/games/ and etc/init.d executable (since v4). Finally,
+it removes the setuid and setgid bits from all files in the package.
 
 =head1 OPTIONS
 
@@ -82,6 +82,11 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        # ..and desktop files ..
        complex_doit("find $tmp/usr/share/applications -type f $find_options -print0",
                "2>/dev/null | xargs -0r chmod 644");
+
+       # ..and OCaml native-code shared objects ..
+       complex_doit("find $tmp -perm -5 -type f",
+               "\\( -name '*.cmxs' \\) $find_options -print0",
+               "2>/dev/null | xargs -0r chmod 644");
        
        # .. and perl modules.
        complex_doit("find $tmp/usr/lib/perl5 $tmp/usr/share/perl5 -type f",