]> git.donarmstrong.com Git - debhelper.git/commitdiff
r360: * Never refer to root, always uid/gid "0". Closes: #67508
authorjoey <joey>
Fri, 21 Jul 2000 00:05:35 +0000 (00:05 +0000)
committerjoey <joey>
Fri, 21 Jul 2000 00:05:35 +0000 (00:05 +0000)
debian/changelog
dh_fixperms
dh_gencontrol
dh_installchangelogs
dh_installcron
dh_installdeb
dh_installdebconf
dh_installdocs
dh_makeshlibs
dh_md5sums
dh_shlibdeps.1

index 9b78bc95e3e95df7d48165275c552e4641a402ab..e5aad5648c7ab2b80dff91043953f5544ccd75e2 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (2.1.1) unstable; urgency=low
+
+  * Never refer to root, always uid/gid "0". Closes: #67508
+
+ -- Joey Hess <joeyh@debian.org>  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
index 191f3d0824646ef1ab9163bd885f2e0f2a20db46..616747e3afd7d9cd049bf5bbbce63a411819593d 100755 (executable)
@@ -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");
                
index 6a12694b60248bb4957615fe699ccf63ff9ea4c3..15e082034d6e35fa19d4b9af7ecb8097525c458c 100755 (executable)
@@ -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");
 }
 
index e653019132f04529af017c77eae306953e431275..89b6ff6b448ea271a5d987f6ce13ebb1a1429873 100755 (executable)
@@ -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';                           
                }
index 7f23bc45f4d438f974f6c537dbbe998978cb5bbc..47ef6943a40a3e5249a602664c5851f7bca0a861 100755 (executable)
@@ -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");
        }
index e0ec36c78221f7c8637d39f3ed663c16dc3e3b6f..6eddb38fa2417aa5d94e9d4552e21fd1958aa641 100755 (executable)
@@ -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");
                }
        }
 }
index 82d69d017d49de67a7cf34ceb7d2a335eafb8c8e..ccf3074aaef3df5ab052649bdccbb08f3e93d48c 100755 (executable)
@@ -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");
                }
        }
index ad50423c4ac7677b9ac93aee42c31c060fa39efd..5a3ef709b1f17a1e593ef20b7871843cf879a5ff 100755 (executable)
@@ -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",
index 237602b4984cd9998f1cc65864afaf5d1314ecd6..b37260f0208e9bd78225b2337c60e6c1f2eeafb3 100755 (executable)
@@ -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");
        }
 }
index 9a3354de0d30d1767d297d73d224e19bc17e0013..d69186c8de819c602b61d74c6a79a695787ac5f5 100755 (executable)
@@ -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");
        }
 }
index 75f31a87870f622ba90e2f3b6a90a13d41714c3a..5a6dbd2fb7bba113806771ecc60d96b115403148 100644 (file)
@@ -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