]> git.donarmstrong.com Git - debhelper.git/commitdiff
r501: * Began work on v4 support (and thus the large version number jump), and it
authorjoey <joey>
Sun, 6 Jan 2002 04:58:07 +0000 (04:58 +0000)
committerjoey <joey>
Sun, 6 Jan 2002 04:58:07 +0000 (04:58 +0000)
     is only for the very brave right now since I will unhesitatingly break
     compatability in v4 mode as I'm developing it. Currently, updating to v4
     mode will only make dh_makeshlibs -V generate shared library deps that
     omit the debian part of the version number. The reasoning behind this
     change is that the debian revision should not typically break binary
     compatability, that existing use of -V is causing too tight versioned
     deps, and that if you do need to include the debian revision for some
     reason, you can always write it out by hand. Closes: #101497
   * dh_testversion is deprecated -- use build deps instead. A warning message
     is now output when it runs. Currently used by: 381 packages.
   * dh_installxaw is deprecated -- xaw-wrappers in no longer in the
     distribution. A warning message is now output when it runs. Currently used
     by: 3 packages (bugs filed).
   * Added referneces to menufile in dh_installmenu man page. Closes: #127978
     (dh_make is not a part of debhelper, if you want it changed, file a bug on
     dh-make.)

Debian/Debhelper/Dh_Lib.pm
debhelper.pod
debian/changelog
dh_installmenu
dh_installxaw
dh_makeshlibs
dh_testversion
doc/TODO

index 588ea063cce39d687ef3e5239fd38c3038f712c4..f5a376fd079dcd9bbb56f6feb198c469dca7b453 100644 (file)
@@ -14,7 +14,7 @@ use vars qw(@ISA @EXPORT %dh);
            &pkgfile &pkgext &isnative &autoscript &filearray &GetPackages
            &basename &dirname &xargs %dh &compat);
 
-my $max_compat=3;
+my $max_compat=4;
 
 sub init {
        # If DH_OPTIONS is set, prepend it @ARGV.
index 82ced753813eeaca23b8d31c3f4ec72297185f16..535d4772a415123903fa426bce02f2e98a91fbb1 100644 (file)
@@ -241,6 +241,20 @@ Every file in etc/ is automatically flagged as a conffile by dh_installdeb.
 
 =back
 
+=item V4
+
+This mode is still under development, and its behavior may change at any
+time. Currently, setting DH_COMPAT=4 does everything V4 does, plus:
+
+=over 8
+
+=item -
+
+dh_makeshlibs -V will not include the debian part of the version number in
+the generated dependancy line in the shlibs file.
+
+=back
+
 =back
 
 =head2 Doc directory symlinks
index eebddb3b250e236715a0b8d43156ee8802eb90cf..d1a36af89f21c98aa7113f6a8f6a50ae8a3bbaff 100644 (file)
@@ -1,3 +1,25 @@
+debhelper (3.4.0) unstable; urgency=low
+
+  * Began work on v4 support (and thus the large version number jump), and it
+    is only for the very brave right now since I will unhesitatingly break
+    compatability in v4 mode as I'm developing it. Currently, updating to v4
+    mode will only make dh_makeshlibs -V generate shared library deps that
+    omit the debian part of the version number. The reasoning behind this
+    change is that the debian revision should not typically break binary
+    compatability, that existing use of -V is causing too tight versioned
+    deps, and that if you do need to include the debian revision for some
+    reason, you can always write it out by hand. Closes: #101497
+  * dh_testversion is deprecated -- use build deps instead. A warning message
+    is now output when it runs. Currently used by: 381 packages.
+  * dh_installxaw is deprecated -- xaw-wrappers in no longer in the
+    distribution. A warning message is now output when it runs. Currently used
+    by: 3 packages (bugs filed).
+  * Added referneces to menufile in dh_installmenu man page. Closes: #127978
+    (dh_make is not a part of debhelper, if you want it changed, file a bug on
+    dh-make.)
+    
+ -- Joey Hess <joeyh@debian.org>  Sat,  5 Jan 2002 22:45:09 -0500
+
 debhelper (3.0.54) unstable; urgency=low
 
   * Added a version to the perl build dep, Closes: #126677
index 522f62695631c700b338af59c2535d310937a87c..212423c4acf933ac727d270b79092ced831ba4bc 100755 (executable)
@@ -24,7 +24,7 @@ explanation of how this works.
 
 If a file named debian/package.menu exists, then it is installed into
 usr/lib/menu/package in the package build directory. This is a debian menu
-file.
+file. See L<menufile(5L)> for its format.
 
 If a file named debian/package.menu-method exits, then it is installed into
 etc/menu-methods/package in the package build directory. This is a debian
@@ -79,6 +79,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 =head1 SEE ALSO
 
 L<debhelper(1)>
+L<update-menus(1)>
+L<menufile(5L)>
 
 This program is a part of debhelper.
 
index fed5f2d4186cd236c2647fdcf650968a98de5c8b..17321834bf10818793b8a241544ebdf90f7b32bc 100755 (executable)
@@ -15,6 +15,9 @@ B<dh_installxaw> [S<I<debhelper options>>] [B<-n>]
 
 =head1 DESCRIPTION
 
+Warning: The xaw-wrappers package has been removed from debian, and so this
+program is deprecated, and due to be removed soon.
+
 dh_installxaw is a debhelper program that is responsible for installing
 xaw wrappers config files into package build directories.
 
@@ -45,6 +48,8 @@ instances of the same text to be added to maintainer scripts.
 
 init();
 
+warning("The xaw-wrappers package has been removed from debian, and so this program is deprecated, and due to be removed soon.");
+
 foreach my $package (@{$dh{DOPACKAGES}}) {
        my $tmp=tmpdir($package);
        my $xaw=pkgfile($package,'xaw');
index 8f0045a8a0fc18f6adb71cdef3613612ee6b3a17..478c861b001c297833654edbbd304dfe0a7c238b 100755 (executable)
@@ -136,7 +136,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                                # Call isnative becuase it sets $dh{VERSION}
                                # as a side effect.
                                isnative($package);
-                               $deps="$package (>= $dh{VERSION})";
+                               my $version = $dh{VERSION};
+                               # Old compatability levels include the
+                               # debian revision, while new do not.
+                               if (! compat(3)) {
+                                       # Remove debian version, if any.
+                                       $version =~ s/-[^-]+$//;
+                               }
+                               $deps="$package (>= $version)";
                        }
                }
                if (defined($library) && defined($major) && defined($deps) &&
index b915dd1482300695ef1b962474c3c746029d4434..e7fbfec91949ce5daddad1b43eb5e9df1aaef4bb 100755 (executable)
@@ -63,7 +63,10 @@ elsif ($#ARGV eq 0) {
        $ver=shift;
 }
 
+warning("This program is deprecated, you should use build dependencies instead.");
+
 if (defined $compare and defined $ver) {
+       warning("Something like: \"Build-Depends: debhelper ($compare $ver)\"");
        system('dpkg','--compare-versions',$Debian::Debhelper::Dh_Version::version,$compare,$ver) == 0 ||
                error("debhelper version $Debian::Debhelper::Dh_Version::version is installed, but a version $compare $ver is needed to build this package.");
 }
index bc1b6d5099249c048511d7fd49a6e59a3b26c6b9..2b1e3030a1feec131069e84560d902b15c6ae33d 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -53,21 +53,32 @@ Wishlist items:
 * 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)
+* dh_installdocs needs -X support, which probably means going with tar
+  instead of cp -a. Ugh.
+
+v4:
+
+These items are part of v4 already:
+
+* dhmakeshlibs -V omits the debian part of the version number from the
+  generated dependancy in the shlibs file
+
+These items are planned:
+
+* Maybe make dh_fixperms make all files in bin/ dirs +x. (#119039)
 
 Deprecated:
 
 * DH_COMPAT 1. Can be removed once all packages are seen to be using 2 or
   higher. I won't hold my breath.
-* Also, grep the entire archive for all dh_* command lines, and check to
-  see what other switches are not being used, and maybe remove some of
-  them. I'd also like to depercate/remove debian/compress files, -X is
+* Also, grep the entire archive for all dh_* command lines (I do this now),
+  and check to see what other switches are not being used, and maybe remove
+  some of them. I'd also like to depercate/remove debian/compress files, -X is
   a better idea.
 * dh_suidregister. Once nothing in the archive uses it.
 * dh_installmanpages. Only mildly deprecated right now. Once dh_installman
   catches on, make it emit a warning, and then wait for it to go away.
-* dh_testversion. Only mildly deprecated right now. Make it emit a warning
-  by jan 2002, and remove as soon as nothing uses it.
+* dh_testversion. Remove as soon as nothing uses it.
 * dh_installxaw. xaw replacments are dying, nothing uses it validly (bugs
-  filed on the few packages that use it by accident). Make it omit a
-  warning by jan 2002 and remove as soon as nothing uses it, or by april
-  2002.
+  filed on the few packages that use it by accident). Remove as soon as
+  nothing uses it, or by april 2002.