From 1d3b6f28c9aa8cf91b4f2f644ceeff01352c5b0b Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 21 Jul 2000 00:05:35 +0000 Subject: r360: * Never refer to root, always uid/gid "0". Closes: #67508 --- debian/changelog | 6 ++++++ dh_fixperms | 2 +- dh_gencontrol | 4 ++-- dh_installchangelogs | 6 +++--- dh_installcron | 6 ++---- dh_installdeb | 8 ++++---- dh_installdebconf | 6 +++--- dh_installdocs | 16 ++++++++-------- dh_makeshlibs | 2 +- dh_md5sums | 2 +- dh_shlibdeps.1 | 5 ++--- 11 files changed, 33 insertions(+), 30 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9b78bc95..e5aad564 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +debhelper (2.1.1) unstable; urgency=low + + * Never refer to root, always uid/gid "0". Closes: #67508 + + -- Joey Hess Thu, 20 Jul 2000 16:56:24 -0700 + debhelper (2.1.0) unstable; urgency=low * I started work on debhelper v2 over a year ago, with a long list of diff --git a/dh_fixperms b/dh_fixperms index 191f3d08..616747e3 100755 --- a/dh_fixperms +++ b/dh_fixperms @@ -17,7 +17,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { # General permissions fixing. complex_doit("find $TMP $find_options -print0", - "2>/dev/null | xargs -0r chown --no-dereference root.root"); + "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"); diff --git a/dh_gencontrol b/dh_gencontrol index 6a12694b..15e08203 100755 --- a/dh_gencontrol +++ b/dh_gencontrol @@ -15,7 +15,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { } if ( ! -d '$TMP/DEBIAN' ) { - doit("install","-o","root","-g","root","-d","$TMP/DEBIAN"); + doit("install","-o",0,"-g",0,"-d","$TMP/DEBIAN"); } # Generate and install control file. @@ -25,6 +25,6 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { # This chmod is only necessary if the user sets the umask to something odd. doit("chmod","644","$TMP/DEBIAN/control"); - doit("chown","root.root","$TMP/DEBIAN/control"); + doit("chown","0.0","$TMP/DEBIAN/control"); } diff --git a/dh_installchangelogs b/dh_installchangelogs index e6530191..89b6ff6b 100755 --- a/dh_installchangelogs +++ b/dh_installchangelogs @@ -38,20 +38,20 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { if (! -d "$TMP/usr/share/doc/$PACKAGE") { doit("install","-d","$TMP/usr/share/doc/$PACKAGE"); } - doit("install","-o","root","-g","root","-p","-m644",$changelog, + doit("install","-o",0,"-g",0,"-p","-m644",$changelog, "$TMP/usr/share/doc/$PACKAGE/$changelog_name"); if ($upstream) { my $link_to; if ($upstream=~m/\.html?$/i) { # HTML changelog - doit("install","-o","root","-g","root","-p","-m644", + doit("install","-o",0,"-g",0,"-p","-m644", $upstream,"$TMP/usr/share/doc/$PACKAGE/changelog.html"); complex_doit("lynx -dump $upstream > $TMP/usr/share/doc/$PACKAGE/changelog"); $link_to='changelog.html'; } else { - doit("install","-o","root","-g","root","-p","-m644", + doit("install","-o",0,"-g",0,"-p","-m644", $upstream,"$TMP/usr/share/doc/$PACKAGE/changelog"); $link_to='changelog'; } diff --git a/dh_installcron b/dh_installcron index 7f23bc45..47ef6943 100755 --- a/dh_installcron +++ b/dh_installcron @@ -11,8 +11,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $cron=pkgfile($PACKAGE,"cron.$type"); if ($cron) { if (! -d "$TMP/etc/cron.$type") { - doit("install","-o","root","-g","root","-d", - "$TMP/etc/cron.$type"); + doit("install","-o",0,"-g",0,"-d","$TMP/etc/cron.$type"); } doit("install",$cron,"$TMP/etc/cron.$type/$PACKAGE"); } @@ -21,8 +20,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $cron=pkgfile($PACKAGE,"cron.d"); if ($cron) { if (! -d "$TMP/etc/cron.d") { - doit("install","-o","root","-g","root","-d", - "$TMP/etc/cron.d"); + doit("install","-o",0,"-g",0,"-d","$TMP/etc/cron.d"); } doit("install","-m",644,$cron,"$TMP/etc/cron.d/$PACKAGE"); } diff --git a/dh_installdeb b/dh_installdeb index e0ec36c7..6eddb38f 100755 --- a/dh_installdeb +++ b/dh_installdeb @@ -10,7 +10,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $EXT=pkgext($PACKAGE); if (! -d "$TMP/DEBIAN") { - doit("install","-o","root","-g","root","-d","$TMP/DEBIAN"); + doit("install","-o",0,"-g",0,"-d","$TMP/DEBIAN"); } # Install debian install scripts. @@ -29,7 +29,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { # script. complex_doit("sed s/#DEBHELPER#// < $f > $TMP/DEBIAN/$file"); } - doit("chown","root.root","$TMP/DEBIAN/$file"); + doit("chown","0.0","$TMP/DEBIAN/$file"); doit("chmod",755,"$TMP/DEBIAN/$file"); } else { @@ -38,7 +38,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { if (-f "debian/$EXT$file.debhelper") { complex_doit("echo '#!/bin/sh -e' > $TMP/DEBIAN/$file"); complex_doit("cat debian/$EXT$file.debhelper >> $TMP/DEBIAN/$file"); - doit("chown","root.root","$TMP/DEBIAN/$file"); + doit("chown","0.0","$TMP/DEBIAN/$file"); doit("chmod",755,"$TMP/DEBIAN/$file"); } } @@ -48,7 +48,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { foreach $file (qw{shlibs conffiles}) { $f=pkgfile($PACKAGE,$file); if ($f) { - doit("install","-o","root","-g","root","-m",644,"-p",$f,"$TMP/DEBIAN/$file"); + doit("install","-o",0,"-g",0,"-m",644,"-p",$f,"$TMP/DEBIAN/$file"); } } } diff --git a/dh_installdebconf b/dh_installdebconf index 82d69d01..ccf3074a 100755 --- a/dh_installdebconf +++ b/dh_installdebconf @@ -11,11 +11,11 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $templates=pkgfile($PACKAGE,"templates"); if (! -d "$TMP/DEBIAN") { - doit("install","-o","root","-g","root","-d","$TMP/DEBIAN"); + doit("install","-o",0,"-g",0,"-d","$TMP/DEBIAN"); } if ($config ne '') { - doit("install", "-o", "root", "-g", "root", "-m", 755, "-p", + doit("install", "-o", 0, "-g", 0, "-m", 755, "-p", $config, "$TMP/DEBIAN/config"); } @@ -28,7 +28,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { chown 0, 0, "$TMP/DEBIAN/templates"; } else { - doit("install", "-o", "root", "-g", "root", "-m", 644, "-p", + doit("install", "-o", 0, "-g", 0, "-m", 644, "-p", $templates, "$TMP/DEBIAN/templates"); } } diff --git a/dh_installdocs b/dh_installdocs index ad50423c..5a3ef709 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -15,7 +15,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { # If this is a symlink, leave it alone. if ( ! -d "$TMP/usr/share/doc/$PACKAGE" && ! -l "$TMP/usr/share/doc/$PACKAGE") { - doit("install","-g","root","-o","root","-d","$TMP/usr/share/doc/$PACKAGE"); + doit("install","-g",0,"-o",0,"-d","$TMP/usr/share/doc/$PACKAGE"); } undef @docs; @@ -30,7 +30,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { if (@docs) { doit("cp", "-a",@docs,"$TMP/usr/share/doc/$PACKAGE/"); - doit("chown","-R","root.root","$TMP/usr/share/doc"); + doit("chown","-R","0.0","$TMP/usr/share/doc"); doit("chmod","-R","go=rX","$TMP/usr/share/doc"); doit("chmod","-R","u+rw","$TMP/usr/share/doc"); } @@ -41,18 +41,18 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $readme_debian=pkgfile($PACKAGE,'README.debian'); } if ($readme_debian) { - doit("install","-g","root","-o","root","-m","644","-p","$readme_debian", + doit("install","-g",0,"-o",0,"-m","644","-p","$readme_debian", "$TMP/usr/share/doc/$PACKAGE/README.Debian"); } $todo=pkgfile($PACKAGE,'TODO'); if ($todo) { if (isnative($PACKAGE)) { - doit("install","-g","root","-o","root","-m","644","-p",$todo, + doit("install","-g",0,"-o",0,"-m","644","-p",$todo, "$TMP/usr/share/doc/$PACKAGE/TODO"); } else { - doit("install","-g","root","-o","root","-m","644","-p",$todo, + doit("install","-g",0,"-o",0,"-m","644","-p",$todo, "$TMP/usr/share/doc/$PACKAGE/TODO.Debian"); } } @@ -65,7 +65,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $copyright="debian/copyright"; } if ($copyright) { - doit("install","-g","root","-o","root","-m","644","-p",$copyright, + doit("install","-g",0,"-o",0,"-m","644","-p",$copyright, "$TMP/usr/share/doc/$PACKAGE/copyright"); } @@ -106,11 +106,11 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { if (%doc_ids) { if (! -d "$TMP/usr/share/doc-base/") { - doit("install","-g","root","-o","root","-d","$TMP/usr/share/doc-base/"); + doit("install","-g",0,"-o",0,"-d","$TMP/usr/share/doc-base/"); } } foreach my $fn (keys %doc_ids) { - doit("install","-g","root","-o","root","-m644","-p","debian/$fn", + doit("install","-g",0,"-o",0,"-m644","-p","debian/$fn", "$TMP/usr/share/doc-base/$doc_ids{$fn}"); if (! $dh{NOSCRIPTS}) { autoscript($PACKAGE,"postinst","postinst-doc-base", diff --git a/dh_makeshlibs b/dh_makeshlibs index 237602b4..b37260f0 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -41,6 +41,6 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { if (-e "$TMP/DEBIAN/shlibs") { doit("chmod",644,"$TMP/DEBIAN/shlibs"); - doit("chown","root.root","$TMP/DEBIAN/shlibs"); + doit("chown","0.0","$TMP/DEBIAN/shlibs"); } } diff --git a/dh_md5sums b/dh_md5sums index 9a3354de..d69186c8 100755 --- a/dh_md5sums +++ b/dh_md5sums @@ -40,6 +40,6 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { } else { doit("chmod",644,"$TMP/DEBIAN/md5sums"); - doit("chown","root.root","$TMP/DEBIAN/md5sums"); + doit("chown","0.0","$TMP/DEBIAN/md5sums"); } } diff --git a/dh_shlibdeps.1 b/dh_shlibdeps.1 index 75f31a87..5a6dbd2f 100644 --- a/dh_shlibdeps.1 +++ b/dh_shlibdeps.1 @@ -6,13 +6,12 @@ dh_shlibdeps \- calculate shared library dependancies .I "[debhelper options] [-ldirectory] [-uparams] [-Xitem] [-- params]" .SH "DESCRIPTION" dh_shlibdeps is a debhelper program that is responsible for calculating -shared library dependancies for all executables found in the package build -directory. +shared library dependancies for packages. .P This program is merely a wrapper around .BR dpkg-shlibdeps (1) that calls it once for each package listed in the control file, passing it -a list of ELF executables it has found. +a list of ELF executables and shared libraries it has found. .SH OPTIONS .TP .B debhelper options -- cgit v1.2.3