]> git.donarmstrong.com Git - debhelper.git/commitdiff
r450: * Modified to use dpkg-architecture instead of dpkg --print-architecture.
authorjoey <joey>
Mon, 5 Mar 2001 00:36:29 +0000 (00:36 +0000)
committerjoey <joey>
Mon, 5 Mar 2001 00:36:29 +0000 (00:36 +0000)
     I hate this, and wish it wasn't necessary to make cross compiles for
     the hurd work. Closes: #88494
   * Now depends on debconf-utils for debconf-mergetemplates. Closes: #87321
   * Continues to depend on lynx for html changelog conversions. Yes, these
     and packages with translated debconf templates are rather rare, but
     it makes more sense for debhelper to consistently depend on all utilities
     it uses internally rather than force people to keep their dependancies
     up to date with debhelper internals. If I decide tomorrow that w3m is
     the better program to use to format html changelogs, I can make the
     change and packages don't need to update their build dependancies.
Closes: #88464, #77743
   * Test for init scripts before running them, since they are conffiles and
     the admin may have removed them for some reason, and policy wants
     us to deal with that gracefully.
   * dh_makeshlibs: now uses objdump, should be more accurate. Closes:
     #88426
   * Wildcards have been supported for a while, Closes: #54197
   * dh_installdocs and dh_link have been able to make doc-dir symlinks for
     a while, Closes: #51225

autoscripts/postinst-init
autoscripts/postinst-init-norestart
autoscripts/prerm-init
autoscripts/prerm-init-norestart
debian/changelog
debian/control
dh_installdebconf
dh_makeshlibs

index 976c6b3403065cb1e9e37fbd16d63c1d0cb9c32a..5ef99c7c3d67339a9b92731aedf64e09d9a135d4 100644 (file)
@@ -1,2 +1,4 @@
-update-rc.d #SCRIPT# #INITPARMS# >/dev/null
-/etc/init.d/#SCRIPT# start
+if [ -e "#SCRIPT#" ]; then
+       update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+       /etc/init.d/#SCRIPT# start
+fi
index 05357d072e46a34b2dd9aa0d9a1e382b9d15b5d2..d57bfc09667bc2a184d4f3c2c4dc6d17cb174c08 100644 (file)
@@ -1 +1,8 @@
-update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+if [ -e "#SCRIPT#" ]; then
+       update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+       if [ "$1" = "configure" ]; then
+               if [ -z "$2" -o "$2" = "<unknown>" ]; then
+                       /etc/init.d/#SCRIPT# start
+               fi
+       fi
+fi
index 64975a38aa69f01b98fd7f7093a446db327691ad..260d69d9e3d34cf1a552100abbd8a4eac5d3dd1c 100644 (file)
@@ -1 +1,3 @@
-/etc/init.d/#SCRIPT# stop
+if [ -e "#SCRIPT#" ]; then
+       /etc/init.d/#SCRIPT# stop
+fi
index ec9820f8769f5d876eb6018036565cf5ea340c89..e04ec25a1206f350db69120a4e64c6fef3a917ea 100644 (file)
@@ -1,3 +1,3 @@
-if [ "$1" = remove ]; then
+if [ -e "#SCRIPT#" -a "$1" = remove ]; then
        /etc/init.d/#SCRIPT# stop
 fi
index 15109a625ee9c6ffda18390993119e3a176c993c..4468a46266d74f0cefbb4c3e6cd55bb2ee39e300 100644 (file)
@@ -1,3 +1,28 @@
+debhelper (3.0.9) unstable; urgency=low
+
+  * Modified to use dpkg-architecture instead of dpkg --print-architecture.
+    I hate this, and wish it wasn't necessary to make cross compiles for
+    the hurd work. Closes: #88494
+  * Now depends on debconf-utils for debconf-mergetemplates. Closes: #87321
+  * Continues to depend on lynx for html changelog conversions. Yes, these
+    and packages with translated debconf templates are rather rare, but
+    it makes more sense for debhelper to consistently depend on all utilities
+    it uses internally rather than force people to keep their dependancies
+    up to date with debhelper internals. If I decide tomorrow that w3m is
+    the better program to use to format html changelogs, I can make the
+    change and packages don't need to update their build dependancies.
+    Closes: #88464, #77743
+  * Test for init scripts before running them, since they are conffiles and
+    the admin may have removed them for some reason, and policy wants
+    us to deal with that gracefully.
+  * dh_makeshlibs: now uses objdump, should be more accurate. Closes:
+    #88426
+  * Wildcards have been supported for a while, Closes: #54197
+  * dh_installdocs and dh_link have been able to make doc-dir symlinks for
+    a while, Closes: #51225
+
+ -- Joey Hess <joeyh@debian.org>  Sun,  4 Mar 2001 15:48:45 -0800
+
 debhelper (3.0.8) unstable; urgency=low
 
   * dh_perl update
index 48ad49b725bfd39df6ebc92b2d9759eeddf3dec3..084fbb81b4371f6dc017990303c3e7fc6fe732e6 100644 (file)
@@ -2,13 +2,13 @@ Source: debhelper
 Section: devel
 Priority: optional
 Maintainer: Joey Hess <joeyh@debian.org>
-Build-Depends-Indep: perl-5.6, fileutils (>= 4.0-2.1), file (>= 3.23-1)
+Build-Depends-Indep: perl-5.6, fileutils (>= 4.0-2.1), file (>= 3.23-1), debconf-utils
 Standards-Version: 3.5.2.0
 
 Package: debhelper
 Architecture: all
-Depends: ${perl:Depends}, fileutils (>= 4.0-2.1), file (>= 3.23-1), dpkg-dev (>= 1.7.0), lynx
-Suggests: dh-make, debconf-utils
+Depends: ${perl:Depends}, fileutils (>= 4.0-2.1), file (>= 3.23-1), dpkg-dev (>= 1.7.0), lynx, debconf-utils, binutils
+Suggests: dh-make
 Description: helper programs for debian/rules
  A collection of programs that can be used in a debian/rules file to
  automate common tasks related to building binary debian packages. Programs
index f6a73bab562c465379742d80db80347982cccbc2..b6348bafae933846d173f838da162d1651920c76 100755 (executable)
@@ -42,8 +42,6 @@ dot and a locale name repended.
 For example, if you have a German translation,
 debian/package.templates.de is merged with debian/package.templates.
 
-If you use this feature, your package should build-depend on debconf-utils.
-
 =head1 OPTIONS
 
 =over 4
index 1888ee2d54f46112dc2e79cbcf4fc0451c94b68d..fe31f5ff7319743df5b8b3dff84aa8c81654e0fd 100755 (executable)
@@ -27,8 +27,10 @@ DH_COMPAT=3 mode and above only).
 
 =item B<-m>I<major>, B<--major=>I<major>
 
-Instead of trying to guess the major number of the library from the
-filename of the library, use the major number specified after the -m parameter.
+Instead of trying to guess the major number of the library with objdump,
+use the major number specified after the -m parameter. This is much less
+useful than it used to be, back in the bad old days when this program
+looked at library filenames rather than using objdump.
 
 =item B<-V>, B<-V>I<dependancies>
 
@@ -68,14 +70,6 @@ file that looks something like:
 Generates a shlibs file that looks something like:
   libfoobar 1 libfoobar1 (>= 1.0)
 
-=head1 NOTES
-
-There is no guarantee that the program will get the shlibs file right. For
-example, it may not correctly guess the major number of your package. In
-cases like these (and perhaps in general, just to be safe), it is better to
-create a debian/shlibs file by hand, or force it to use the correct major
-number by specifying the -m parameter.
-
 =cut
 
 init();
@@ -90,19 +84,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
        open (FIND, "find $tmp -xtype f -name '*.so*' |");
        while (<FIND>) {
-               my $library;
-               my $major;
-       
-               chomp;
-               # The second evil regexp is for db3, whose author should
-               # be shot.
-               if (m#.*/([^/]*)\.so\.(\d*)\.?# || m#.*/([^/]*)-([^\s/]+)\.so$#) {
-                       $library = $1;
-                       $major = $2;
-               }
+               my ($library, $major) = 
+                       `objdump -p $_` =~ m/\s+SONAME\s+(.+)\.so\.(.+)/;
+
                if (defined($dh{M_PARAMS}) && $dh{M_PARAMS} ne '') {
                        $major=$dh{M_PARAMS};
                }
+               
                if (! -d "$tmp/DEBIAN") {
                        doit("install","-d","$tmp/DEBIAN");
                }