]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_fixperms
r1772: releasing version 4.9.4
[debhelper.git] / dh_fixperms
index 3f3babdcd1b316288a379b5b89419a8dad7f78be..2a565bd3f926937b12605c83bc83f9384d9cdeda 100755 (executable)
@@ -57,7 +57,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                "2>/dev/null | xargs -0r chown --no-dereference 0:0");
        complex_doit("find $tmp ! -type l $find_options -print0",
                "2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s");
-               
+       
        # Fix up premissions in usr/share/doc, setting everything to not
        # executable by default, but leave examples directories alone.
        complex_doit("find $tmp/usr/share/doc -type f $find_options ! -regex '$tmp/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null",
@@ -96,6 +96,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                }
        }
        
+       # ADA ali files should be mode 444 to avoid recompilation
+       if (-d "$tmp/usr/lib/ada") {
+               complex_doit("find $tmp/usr/lib/ada -type f",
+                       "-name '*.ali' $find_options -print0",
+                       "2>/dev/null | xargs -0r chmod uga-w");
+       }
 }
 
 =head1 SEE ALSO