From 1f33258d1a687b64d7252fc144c2dd5530740272 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 23 Aug 2001 19:52:25 +0000 Subject: [PATCH] r487: * dh_movefiles: Typo, Closes: #106532 * Use -x to test for existance of init scripts, rather then -e since we'll be running them, Closes: #109692 * dh_clean: remove debian/*.debhelper. No need to name files specifically; any file matching that is a debhelper temp file. Closes: #106514, #85520 --- autoscripts/postinst-init | 2 +- autoscripts/postinst-init-norestart | 2 +- autoscripts/prerm-init | 2 +- autoscripts/prerm-init-norestart | 2 +- debian/changelog | 14 ++++++++------ debian/control | 2 +- dh_clean | 22 ++++++---------------- doc/TODO | 8 +------- 8 files changed, 20 insertions(+), 34 deletions(-) diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init index 159b12d..051f774 100644 --- a/autoscripts/postinst-init +++ b/autoscripts/postinst-init @@ -1,4 +1,4 @@ -if [ -e "/etc/init.d/#SCRIPT#" ]; then +if [ -x "/etc/init.d/#SCRIPT#" ]; then update-rc.d #SCRIPT# #INITPARMS# >/dev/null /etc/init.d/#SCRIPT# start fi diff --git a/autoscripts/postinst-init-norestart b/autoscripts/postinst-init-norestart index 3445f14..4f1c63f 100644 --- a/autoscripts/postinst-init-norestart +++ b/autoscripts/postinst-init-norestart @@ -1,4 +1,4 @@ -if [ -e "/etc/init.d/#SCRIPT#" ]; then +if [ -x "/etc/init.d/#SCRIPT#" ]; then update-rc.d #SCRIPT# #INITPARMS# >/dev/null if [ "$1" = "configure" ]; then if [ -z "$2" -o "$2" = "" ]; then diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init index 9ffa64b..9882c7c 100644 --- a/autoscripts/prerm-init +++ b/autoscripts/prerm-init @@ -1,3 +1,3 @@ -if [ -e "/etc/init.d/#SCRIPT#" ]; then +if [ -x "/etc/init.d/#SCRIPT#" ]; then /etc/init.d/#SCRIPT# stop fi diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart index 47a49d4..b7e311d 100644 --- a/autoscripts/prerm-init-norestart +++ b/autoscripts/prerm-init-norestart @@ -1,3 +1,3 @@ -if [ -e "/etc/init.d/#SCRIPT#" -a "$1" = remove ]; then +if [ -x "/etc/init.d/#SCRIPT#" -a "$1" = remove ]; then /etc/init.d/#SCRIPT# stop fi diff --git a/debian/changelog b/debian/changelog index a569e78..37becd6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,13 @@ -debhelper (3.0.41) unstable; urgency=low +debhelper (3.0.42) unstable; urgency=low - * Clean up old substvars.debhelper files, although debhelper doesn't - generate them now, it used to and they may still be lurking in build - trees. Closes: #106514 - * Fixed a typo. Closes: #106532 + * dh_movefiles: Typo, Closes: #106532 + * Use -x to test for existance of init scripts, rather then -e since + we'll be running them, Closes: #109692 + * dh_clean: remove debian/*.debhelper. No need to name files + specifically; any file matching that is a debhelper temp file. + Closes: #106514, #85520 - -- Joey Hess Wed, 25 Jul 2001 17:04:21 -0400 + -- Joey Hess Thu, 23 Aug 2001 15:47:35 -0400 debhelper (3.0.40) unstable; urgency=low diff --git a/debian/control b/debian/control index 2f9d0bb..8eb3666 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: devel Priority: optional Maintainer: Joey Hess Build-Depends-Indep: perl, fileutils (>= 4.0-2.1), file (>= 3.23-1), debconf-utils -Standards-Version: 3.2.1.0 +Standards-Version: 3.5.6.0 Package: debhelper Architecture: all diff --git a/dh_clean b/dh_clean index 570179b..388f913 100755 --- a/dh_clean +++ b/dh_clean @@ -18,8 +18,8 @@ use Debian::Debhelper::Dh_Lib; dh_clean is a debhelper program that is responsible for cleaning up after a package is built. It removes the package build directories, and removes some other files, such as debian/substvars, debian/files, and any detritus left -behind by other debhelper commands. It also removes common files that -should not appear in a debian diff: +behind by other debhelper commands (debian/*.debhelper). It also removes +common files that should not appear in a debian diff: #*# *~ DEADJOE *.orig *.rej *.SUMS TAGS core .deps/* *.P =head1 OPTIONS @@ -62,12 +62,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my $ext=pkgext($package); if (! $dh{D_FLAG}) { - doit("rm","-f","debian/${ext}substvars", - "debian/${ext}substvars.debhelper", - "debian/${ext}postinst.debhelper", - "debian/${ext}postrm.debhelper", - "debian/${ext}preinst.debhelper", - "debian/${ext}prerm.debhelper"); + doit("rm","-f","debian/${ext}substvars"); } doit ("rm","-rf",$tmp); @@ -82,14 +77,9 @@ if (! $dh{D_FLAG}) { doit("rm","-f","debian/files"); } - # Remove some files that were left around by older versions of - # debhelper, just in case someone upgrades in the middle of a - # build. - doit("rm","-f","debian/substvars", - "debian/postinst.debhelper", - "debian/postrm.debhelper", - "debian/preinst.debhelper", - "debian/prerm.debhelper"); + # These are all debhelper temp files, and so it is safe to + # wildcard them. + complex_doit("rm -f debian/*.debhelper"); # See if some files that would normally be deleted are excluded. my $find_options=''; diff --git a/doc/TODO b/doc/TODO index eb12909..bdc6fe9 100644 --- a/doc/TODO +++ b/doc/TODO @@ -40,10 +40,6 @@ Wishlist items: * All programs should also make sure the files they install are owned by root.root. Situation is currently the same as with permissions above, plus dh_installchangelogs is fixed. -* Need a way to make dh_strip not strip any static libs. Also, it'd be nice - if there were options to dh_strip, dh_compress, etc, to allow inclusion of - directories and exclusion of files based on filename globbing. (Request from - Matthias Klose ) * Support use of environment variables in data taken from user, ie, in debian/dirs. The problem with doing this is that we really want to allow any filenames in that input, even those that look like environment @@ -53,12 +49,10 @@ Wishlist items: multiple commands call. One way to do this would be to write dh_cache, that generates the cache. The catch is that if the user runs that program, they are stating that they don't do anything later to invalidate the cache, - without calling ch_cache again. (#23792) + without calling dh_cache again. (#23792) * Add a switch to dh_installdeb to allow it to do user defined substitutions. OTOH, maybe it's better if people just sed postinst.in before debhelper gets it's hands on it... (#25235) -* objdump -p can get the soname of a library, try using that in dh_shlibs - instead of parsing filenames. Deprecated: -- 2.39.2