[Reproducible-commits] [debhelper] 35/61: Add leading 0 to "mode" parameters
Mattia Rizzolo
mattia at mapreri.org
Sat Apr 4 18:37:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
mapreri-guest pushed a commit to branch pu/reproducible_builds
in repository debhelper.
commit a660d37676fd2a1d06fe9e7f6570e9253a7ce7cd
Author: Martin Koeppe <mkoeppe at gmx.de>
Date: Thu Jan 8 18:39:56 2015 +0100
Add leading 0 to "mode" parameters
Signed-off-by: Niels Thykier <niels at thykier.net>
---
Debian/Debhelper/Dh_Lib.pm | 4 ++--
dh_fixperms | 20 ++++++++++----------
dh_gencontrol | 2 +-
dh_installdeb | 4 ++--
dh_makeshlibs | 2 +-
dh_md5sums | 2 +-
dh_strip | 2 +-
7 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 67ce5c2..72e489e 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -975,13 +975,13 @@ sub debhelper_script_subst {
complex_doit("sed s/#DEBHELPER#// < $file > $tmp/DEBIAN/$script");
}
doit("chown","0:0","$tmp/DEBIAN/$script");
- doit("chmod",755,"$tmp/DEBIAN/$script");
+ doit("chmod","0755","$tmp/DEBIAN/$script");
}
elsif ( -f "debian/$ext$script.debhelper" ) {
complex_doit("printf '#!/bin/sh\nset -e\n' > $tmp/DEBIAN/$script");
complex_doit("cat debian/$ext$script.debhelper >> $tmp/DEBIAN/$script");
doit("chown","0:0","$tmp/DEBIAN/$script");
- doit("chmod",755,"$tmp/DEBIAN/$script");
+ doit("chmod","0755","$tmp/DEBIAN/$script");
}
}
diff --git a/dh_fixperms b/dh_fixperms
index 91fa2a5..ce28785 100755
--- a/dh_fixperms
+++ b/dh_fixperms
@@ -65,32 +65,32 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# Fix up permissions 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",
- "| xargs -0r chmod 644");
+ "| xargs -0r chmod 0644");
complex_doit("find $tmp/usr/share/doc -type d $find_options -print0 2>/dev/null",
- "| xargs -0r chmod 755");
+ "| xargs -0r chmod 0755");
# Executable man pages are a bad thing..
complex_doit("find $tmp/usr/share/man $tmp/usr/man/ $tmp/usr/X11*/man/ -type f",
- "$find_options -print0 2>/dev/null | xargs -0r chmod 644");
+ "$find_options -print0 2>/dev/null | xargs -0r chmod 0644");
# ..and so are executable shared and static libraries
# (and .la files from libtool) ..
complex_doit("find $tmp -perm -5 -type f",
"\\( -name '*.so.*' -or -name '*.so' -or -name '*.la' -or -name '*.a' \\) $find_options -print0",
- "2>/dev/null | xargs -0r chmod 644");
+ "2>/dev/null | xargs -0r chmod 0644");
# ..and header files ..
complex_doit("find $tmp/usr/include -type f $find_options -print0",
- "2>/dev/null | xargs -0r chmod 644");
+ "2>/dev/null | xargs -0r chmod 0644");
# ..and desktop files ..
complex_doit("find $tmp/usr/share/applications -type f $find_options -print0",
- "2>/dev/null | xargs -0r chmod 644");
+ "2>/dev/null | xargs -0r chmod 0644");
# ..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");
+ "2>/dev/null | xargs -0r chmod 0644");
# .. and perl modules.
complex_doit("find $tmp/$vendorarch $tmp/$vendorlib -type f",
@@ -128,14 +128,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (-d "$tmp/usr/share/lintian") {
complex_doit("find $tmp/usr/share/lintian/overrides",
"-type f $find_options -print0",
- "2>/dev/null | xargs -0r chmod 644");
+ "2>/dev/null | xargs -0r chmod 0644");
}
- # Files in $tmp/etc/sudoers.d/ must be mode 440.
+ # Files in $tmp/etc/sudoers.d/ must be mode 0440.
if (-d "$tmp/etc/sudoers.d") {
complex_doit("find $tmp/etc/sudoers.d",
"-type f ! -perm 440 $find_options -print0",
- "2>/dev/null | xargs -0r chmod 440");
+ "2>/dev/null | xargs -0r chmod 0440");
}
}
diff --git a/dh_gencontrol b/dh_gencontrol
index 64d0261..26aa321 100755
--- a/dh_gencontrol
+++ b/dh_gencontrol
@@ -70,7 +70,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# This chmod is only necessary if the user sets the umask to
# something odd.
- doit("chmod","644","$tmp/DEBIAN/control");
+ doit("chmod","0644","$tmp/DEBIAN/control");
doit("chown","0:0","$tmp/DEBIAN/control");
}
diff --git a/dh_installdeb b/dh_installdeb
index 02961ad..26c2b0c 100755
--- a/dh_installdeb
+++ b/dh_installdeb
@@ -130,10 +130,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
complex_doit("find $tmp/etc -type f -printf '/etc/%P\n' | LC_ALL=C sort >> $tmp/DEBIAN/conffiles");
# Anything found?
if (-z "$tmp/DEBIAN/conffiles") {
- doit("rm", "-f", "$tmp/DEBIAN/conffiles");
+ doit("rm","-f","$tmp/DEBIAN/conffiles");
}
else {
- doit("chmod", 644, "$tmp/DEBIAN/conffiles");
+ doit("chmod","0644","$tmp/DEBIAN/conffiles");
}
}
}
diff --git a/dh_makeshlibs b/dh_makeshlibs
index c6746e3..66e446a 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -234,7 +234,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
if (-e "$tmp/DEBIAN/shlibs") {
- doit("chmod",644,"$tmp/DEBIAN/shlibs");
+ doit("chmod","0644","$tmp/DEBIAN/shlibs");
doit("chown","0:0","$tmp/DEBIAN/shlibs");
}
diff --git a/dh_md5sums b/dh_md5sums
index f171c16..a212004 100755
--- a/dh_md5sums
+++ b/dh_md5sums
@@ -82,7 +82,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
doit("rm","-f","$tmp/DEBIAN/md5sums");
}
else {
- doit("chmod",644,"$tmp/DEBIAN/md5sums");
+ doit("chmod", "0644", "$tmp/DEBIAN/md5sums");
doit("chown","0:0","$tmp/DEBIAN/md5sums");
}
}
diff --git a/dh_strip b/dh_strip
index ade1e11..cadaf26 100755
--- a/dh_strip
+++ b/dh_strip
@@ -181,7 +181,7 @@ sub make_debug {
doit($objcopy, "--only-keep-debug", "--compress-debug-sections", $file, $debug_path);
}
# No reason for this to be executable.
- doit("chmod", 644, $debug_path);
+ doit("chmod", "0644", $debug_path);
return $debug_path;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git
More information about the Reproducible-commits
mailing list