Просмотр исходного кода

configure.in: add -D_GNU_SOURCE to CFLAGS so we can get strsignal
scripts/dpkg-genchanges.pl: output Changed-By just after Maintainer
scripts/cl-debian.pl: really allow a single whitespace to between # and a bugnumber that will be closed.

Wichert Akkerman лет назад: 26
Родитель
Сommit
ff8ff1cdf2
7 измененных файлов с 15 добавлено и 7 удалено
  1. 4 0
      ChangeLog
  2. 0 1
      TODO
  3. 1 0
      configure.in
  4. 4 0
      debian/changelog
  5. 1 1
      debian/rules
  6. 2 2
      scripts/cl-debian.pl
  7. 3 3
      scripts/dpkg-genchanges.pl

+ 4 - 0
ChangeLog

@@ -1,5 +1,9 @@
 Thu Apr 13 09:57:52 EDT 2000 Wichert Akkerman <wakkerma@debian.org>
 
+  * configure.in: add -D_GNU_SOURCE to CFLAGS so we can get strsignal
+  * scripts/dpkg-genchanges.pl: output Changed-By just after Maintainer
+  * scripts/cl-debian.pl: really allow a single whitespace to between # and
+    a bugnumber that will be closed.
   * Synchronize with potato-branch again:
     + scripts/dpkg-divert.pl: fixed typo
     + debian/dpkg-dev.{postinst,prerm}: remove emacsen-common stuff

+ 0 - 1
TODO

@@ -6,7 +6,6 @@ start-stop-daemon
 dpkg
 * configuration-file with default options
 * signatures & checksums
-* seperate maintainer and last-changed-by entries in .changes (should be done)
 * integrate debconf (add new status)
 * allow external program to specify how to handle conffiles
 * integrate suidmanager

+ 1 - 0
configure.in

@@ -3,6 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ([2.13])
 
 AC_INIT(include/dpkg.h.in)
+CFLAGS="-D_GNU_SOURCE $CFLAGS"
 AC_CONFIG_HEADER(config.h)
 
 DSELECTDIR="dselect"

+ 4 - 0
debian/changelog

@@ -5,6 +5,10 @@ dpkg (1.7.0) unstable; urgency=low
   * dpkg-architecture: -q should not imply -f, Closes: Bug#57761
   * add dpkg:UpstreamVersion and dpkg:Version substvars in dpkg-genchanges.
     Closes: Bug#62069
+  * dpkg-genchanges: add new Changed-By field to .changes with the last
+    person who made a change, and modify the Maintainer-field to be the
+    actual maintainer. Update the format-version to 1.7 to reflect this.
+  * dpkg-genchanges: allow a space between # and a to-be-closed bugnumber
 
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
 

+ 1 - 1
debian/rules

@@ -73,7 +73,7 @@ binary-dpkg: stamp-binary
 	install -d -m 755 -o root -g root $(TMP_DPKG)/usr/lib/dpkg
 	install -d -m 755 -o root -g root $(TMP_DPKG)/usr/bin
 	install -d -m 755 -o root -g root $(TMP_DPKG)/sbin
-	mv $(TMP)/etc $(TMP_DPKG)/
+	-test -d $(TMP)/etc && mv $(TMP)/etc $(TMP_DPKG)/
 	mv $(TMP)/var $(TMP_DPKG)/
 	mv $(TMP)/usr/sbin/start-stop-daemon $(TMP_DPKG)/sbin/
 	mv $(TMP)/usr/sbin $(TMP_DPKG)/usr/

+ 2 - 2
scripts/cl-debian.pl

@@ -138,8 +138,8 @@ $expect eq 'next heading or eof' || die "found eof where expected $expect";
 $f{'Changes'} =~ s/\n$//;
 $f{'Changes'} =~ s/^/\n/;
 
-while ($f{'Changes'} =~ /closes:\s*(?:bug)?\#\s*\d+(?:,\s*(?:bug)?\#\s*\d+)*/ig) {
-  push(@closes, $& =~ /\#(\d+)/g);
+while ($f{'Changes'} =~ /closes:\s*(?:bug)?\#\s?\d+(?:,\s*(?:bug)?\#\s?\d+)*/ig) {
+  push(@closes, $& =~ /\#\s?(\d+)/g);
 }
 $f{'Closes'} = join(' ',sort { $a <=> $b} @closes);
 

+ 3 - 3
scripts/dpkg-genchanges.pl

@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-$dpkglibdir= ".";
+$dpkglibdir= "."; # This line modified by Makefile
 $version= '1.3.0'; # This line modified by Makefile
 
 $controlfile= 'debian/control';
@@ -63,8 +63,8 @@ Options:  -b                     binary-only build - no source files
 
 $i=100;grep($fieldimps{$_}=$i--,
           qw(Format Date Source Binary Architecture Version
-             Distribution Urgency Maintainer Description Closes Changes
-	     Files));
+             Distribution Urgency Maintainer Changed-By Description 
+	     Closes Changes Files));
 
 while (@ARGV) {
     $_=shift(@ARGV);