]> git.donarmstrong.com Git - debhelper.git/commitdiff
r59: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 04:45:57 +0000 (04:45 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 04:45:57 +0000 (04:45 +0000)
12 files changed:
TODO
debian/changelog
debian/rules
dh_du
dh_du.1
dh_gencontrol
dh_installmanpages
dh_makeshlibs
dh_md5sums
examples/rules
examples/rules.indep
examples/rules.multi

diff --git a/TODO b/TODO
index 6683d0dd61f9cb3fa92d828b96d764049a544efe..3e34c070bb0072d82e055ecd429b4c10ff61bf5e 100644 (file)
--- a/TODO
+++ b/TODO
 * maybe make dh_installmanpages look at the .TH line of man pages whose
   filenames end in .man, to figure out what section they go it. This would
   require a switch to turn on, for backwards compatability.
+* All debhelper programs should be checked that they output files with the
+  correct permissions no matter what the umask is set to. Currently, only
+  those programs that run after dh_fixperms have been so checked. (Checking
+  the rest is low priority, since dh_fixperms fixes any incorrect permissions
+  they might have; still it would be nice to check them too, just to make
+  debhelper more flexible.) One easy fix is to add umask 022 to dh_lib,
+  however, there may be unforseen ramifications of such a change.
index 8d2df4b222ee1aaaef17a0ebc22c0f24ea3ebe6c..df4abff5a6ed150a685b2cc88c3002309e61a3a3 100644 (file)
@@ -1,3 +1,16 @@
+debhelper (0.63) unstable; urgency=low
+
+  * Removed some debugging output from dh_installmanpages.
+  * du_du: no longer does anything, becuase it has been decided on
+    debian-policy that du control files are bad.
+  * examples/*: removed dh_du calls.
+  * debian/rules: removed dh_du call.
+  * Modified dh_gencontrol, dh_makeshlibs, and dh_md5sums to generate files 
+    with the correct permissions even if the umask is set to unusual 
+    values. (#18283)
+
+ -- Joey Hess <joeyh@master.debian.org>  Mon, 16 Feb 1998 23:34:36 -0800
+
 debhelper (0.62) unstable; urgency=low
 
   * dh_installmanpages: if the man page filename ends in 'x', install it in
index 892f7e69985681a3af109db3413b874ecaf26b67..13aaea5fe0ed5a9f41855ecde70b59698e3c0a81 100755 (executable)
@@ -53,7 +53,6 @@ binary-indep: build
        ./dh_suidregister
        ./dh_installdeb
        ./dh_gencontrol
-       ./dh_du
        ./dh_md5sums
        ./dh_builddeb
 
diff --git a/dh_du b/dh_du
index 71ce2b1368998fc3c1182c8f446c1e2d7b193428..73df2a0be30a2c8d3f5eb3718d62ab67bc39781d 100755 (executable)
--- a/dh_du
+++ b/dh_du
@@ -2,18 +2,22 @@
 #
 # Generate a DEBIAN/du file, that lists the disk usage of the directories in 
 # the package.
+#
+# No longer - it was decided these files are a bad idea.
 
 PATH=debian:$PATH:/usr/lib/debhelper
 . dh_lib
 
-for PACKAGE in $DH_DOPACKAGES; do
-       TMP=`tmpdir $PACKAGE`
-
-       if [ ! -d "$TMP/DEBIAN" ]; then
-               doit "install -d $TMP/DEBIAN"
-       fi
+echo "* Note: dh_du does nothing and is deprecated. Remove it from debian/rules." >&2
 
-       # Note that the tabs in this next line are important.
-       complex_doit "du -k $TMP | sed 's:      $TMP/:  :' | grep -v '  DEBIAN$' | grep -v '    $TMP$' >$TMP/DEBIAN/du"
-       doit "chown root.root $TMP/DEBIAN/du"
-done
+#for PACKAGE in $DH_DOPACKAGES; do
+#      TMP=`tmpdir $PACKAGE`
+#
+#      if [ ! -d "$TMP/DEBIAN" ]; then
+#              doit "install -d $TMP/DEBIAN"
+#      fi
+#
+#      # Note that the tabs in this next line are important.
+#      complex_doit "du -k $TMP | sed 's:      $TMP/:  :' | grep -v '  DEBIAN$' | grep -v '    $TMP$' >$TMP/DEBIAN/du"
+#      doit "chown root.root $TMP/DEBIAN/du"
+#done
diff --git a/dh_du.1 b/dh_du.1
index 9c04106e3836a17e448297933beaf0f5645722f3..9497a61df9bd25e9963616ae0c68138515a5a22e 100644 (file)
--- a/dh_du.1
+++ b/dh_du.1
@@ -3,49 +3,13 @@
 dh_du \- generate DEBIAN/du file
 .SH SYNOPSIS
 .B dh_du
-.I "[-v] [-a] [-i] [--no-act] [-ppackage] [-Ptmpdir]"
 .SH "DESCRIPTION"
-dh_du is a debhelper program that is responsible for generating
-a DEBIAN/du file, which lists the disk usage of directories in the package.
-This file isn't used by anything yet, but it could be helpful for a future
-debian installer program.
+dh_du is a debhelper program that was responsible for generating
+a DEBIAN/du file, which listed the disk usage of directories in the package.
 .P
-The du file is installed with proper permissions and ownerships.
-.SH OPTIONS
-.TP
-.B \-v, \--verbose
-Verbose mode; show all commands that modify the package build directory.
-.TP
-.B \-a, \--arch
-Generate du files for all architecture dependent packages.
-.TP
-.B \-i, \--indep
-Generate du files for all architecture independent packages.
-.TP
-.B \--no-act
-Do not really do anything. If used with -v, the result is that this command
-will output a list of what it would have done.
-.TP
-.B \-ppackage, \--package=package
-Generate du file for the package named "package".
-.TP
-.B \-Ptmpdir, \--tmpdir=tmpdir
-Use "tmpdir" for package build directory. 
-.SH NOTES
-The
-.B \-a
-.B \-i
-and
-.B \-p
-arguments are cumulative. If none are specified, then all packages listed in
-the control file will be effected.
-.SH ENVIRONMENT
-.TP
-.I DH_VERBOSE
-Enables verbose mode
-.TP
-.I DH_NO_ACT
-Enables no-act mode (see above).
+This program is now depricated, and does nothing, after a decision by the
+debian developers that du control files should not exit. It will simply
+output a warning message now.
 .SH "SEE ALSO"
 .BR /usr/doc/debhelper/README
 .SH AUTHOR
index e2a4e701b223cb689d050ba8ae7605a38794d636..f30b41040e809d2df7cf1c52d023c5dbf843ee63 100755 (executable)
@@ -15,5 +15,7 @@ for PACKAGE in $DH_DOPACKAGES; do
 
        # Generate and install control file.
        doit "dpkg-gencontrol -p$PACKAGE -Tdebian/${EXT}substvars -P$TMP $DH_U_PARAMS"
+       # 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"
 done
index 0c968a3fb3523f1757021e62acf6596506f3d0f2..fe611389de4ecb76bd9b8c2f77bb0266b6262487 100755 (executable)
@@ -39,7 +39,6 @@ for PACKAGE in $DH_DOPACKAGES; do
                                SECTION=man`expr $NAME : '.*\.\([123456789]\)'`
                                # Test to see if the filename ends with 'x',
                                # if so, this is an X man page.
-                               echo $NAME
                                if expr $NAME : '.*\.[123456789]x' >/dev/null; then
                                        EXTDIR="X11R6"
                                else
index d595c3b5417556cd9565265c06eaca5caf013b04..28695552a51e1f6a918db3488ab2a6ccdd994fd0 100755 (executable)
@@ -38,6 +38,7 @@ for PACKAGE in $DH_DOPACKAGES; do
        done
 
        if [ -e "$TMP/DEBIAN/shlibs" ]; then
+               doit "chmod 644 $TMP/DEBIAN/shlibs"
                doit "chown root.root $TMP/DEBIAN/shlibs"
        fi
 done
index ae4709265a5766f59d7440abd278f4558ffa666e..8db017612d2f6a4e0ff0c13293bcbf38a43d8534 100755 (executable)
@@ -21,6 +21,7 @@ for PACKAGE in $DH_DOPACKAGES; do
        fi
        olddir=`pwd`
        complex_doit "cd $TMP ; sed 's:^/::' < DEBIAN/allfiles | xargs md5sum > DEBIAN/md5sums ; cd $olddir"
+       doit "chmod 644 $TMP/DEBIAN/md5sums"
        doit "chown root.root $TMP/DEBIAN/md5sums"
        doit "rm -f $TMP/DEBIAN/allfiles"
 done
index 8e6683c1723968e494f5ff9a9cb2f308fde3517f..7fbd9d99957d203971957b1ea368be3fe8d42dbc 100755 (executable)
@@ -54,7 +54,6 @@ binary-arch: build
        dh_shlibdeps
        dh_gencontrol
 #      dh_makeshlibs
-       dh_du
        dh_md5sums
        dh_builddeb
 
index 601c5e3eeee5f1c1fa5d5adb9d3f975ffceb7a13..2e74e85226d1923d46922e5d9904c46dd4f609d7 100755 (executable)
@@ -48,7 +48,6 @@ binary-indep: build
        dh_suidregister
        dh_installdeb
        dh_gencontrol
-       dh_du
        dh_md5sums
        dh_builddeb
 
index a5be1efe49d87ab6c5458976c41e02250bf8c09b..1cfeb4251db271412cad5fd6ed4405745bf854a3 100755 (executable)
@@ -51,7 +51,6 @@ binary-indep: build
        dh_suidregister -i
        dh_installdeb -i
        dh_gencontrol -i
-       dh_du -i
        dh_md5sums -i
        dh_builddeb -i
 
@@ -83,7 +82,6 @@ binary-arch: build
        dh_shlibdeps -a
        dh_gencontrol -a
 #      dh_makeshlibs -a
-       dh_du -a
        dh_md5sums -a
        dh_builddeb -a