Quellcode durchsuchen

Merge branch 'master' of git://git.debian.org/git/dpkg/dpkg into sourcev3

Joey Hess vor 19 Jahren
Ursprung
Commit
b2b2ea1184
21 geänderte Dateien mit 3096 neuen und 1818 gelöschten Zeilen
  1. 42 0
      ChangeLog
  2. 1 1
      configure.ac
  3. 12 2
      debian/changelog
  4. 1 0
      debian/control
  5. 19 1
      man/ChangeLog
  6. 8 1
      man/deb-control.5
  7. 3 2
      man/dpkg-buildpackage.1
  8. 586 370
      man/po/de.po
  9. 237 140
      man/po/dpkg-man.pot
  10. 286 168
      man/po/es.po
  11. 297 170
      man/po/fr.po
  12. 254 153
      man/po/hu.po
  13. 255 153
      man/po/ja.po
  14. 256 155
      man/po/pl.po
  15. 252 157
      man/po/pt_BR.po
  16. 253 152
      man/po/ru.po
  17. 301 176
      man/po/sv.po
  18. 7 4
      scripts/controllib.pl
  19. 17 6
      scripts/dpkg-buildpackage.pl
  20. 3 2
      scripts/dpkg-gencontrol.pl
  21. 6 5
      scripts/dpkg-source.pl

+ 42 - 0
ChangeLog

@@ -1,3 +1,45 @@
+2007-10-08  Guillem Jover  <guillem@debian.org>
+
+	* configure.ac: Release 1.14.7.
+
+2007-10-08  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-source.pl: Do not replace substvars for build
+	dependencies.
+
+2007-10-08  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-gencontrol.pl: Refer to host architecture (instead of
+	build) in error string, and quote architecture name.
+
+2007-10-08  Frank Lichtenheld  <djpig@debian.org>,
+            Guillem Jover  <guillem@debian.org>
+
+	* scripts/controllib.pl (debarch_is): Check if $alias is equal to
+	$real or 'any' before mapping them to debtriplets.
+	(debarch_to_debtriplet): Do not special case 'any' nor 'all'.
+	(debarch_eq): Check if $a and $b are equal before mapping them to
+	debtriplets.
+
+2007-10-07  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-buildpackage.pl: Warn if run as root and $rootcommand
+	has been specified. Error if run as non-root and $rootcommand is not
+	found.
+
+2007-10-07  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-buildpackage.pl (usage): Remove details about running
+	fakeroot only if it's available.
+
+2007-10-07  Frank Lichtenheld  <djpig@debian.org>
+	    Marcel Toele  <mtoele@kern.nl>
+
+	* scripts/dpkg-source.pl (handleformat): Include
+	a trailing HT character in the diff labels if
+	the filename contains spaces. Apparantly this is
+	standard but undocumented diff behaviour.
+
 2007-09-29  Frank Lichtenheld  <djpig@debian.org>
 2007-09-29  Frank Lichtenheld  <djpig@debian.org>
 
 
 	* scripts/dpkg-buildpackage.pl: Call checkversion()
 	* scripts/dpkg-buildpackage.pl: Call checkversion()

+ 1 - 1
configure.ac

@@ -1,7 +1,7 @@
 # Process this file with autoconf to produce a configure script.
 # Process this file with autoconf to produce a configure script.
 
 
 AC_PREREQ(2.59)
 AC_PREREQ(2.59)
-AC_INIT([dpkg], [1.14.7~], [debian-dpkg@lists.debian.org])
+AC_INIT([dpkg], [1.14.7], [debian-dpkg@lists.debian.org])
 AC_CONFIG_SRCDIR([lib/dpkg.h])
 AC_CONFIG_SRCDIR([lib/dpkg.h])
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_AUX_DIR([config])
 AC_CONFIG_AUX_DIR([config])

+ 12 - 2
debian/changelog

@@ -1,4 +1,4 @@
-dpkg (1.14.7) UNRELEASED; urgency=low
+dpkg (1.14.7) unstable; urgency=low
 
 
   [ Guillem Jover ]
   [ Guillem Jover ]
   * Add back $dpkglib into @INC, needed by the controllib.pl require in
   * Add back $dpkglib into @INC, needed by the controllib.pl require in
@@ -15,6 +15,13 @@ dpkg (1.14.7) UNRELEASED; urgency=low
     instead of unconditionally setting it to 'Installed'. Closes: #432893
     instead of unconditionally setting it to 'Installed'. Closes: #432893
     Thanks to Brian M. Carlson.
     Thanks to Brian M. Carlson.
   * Add Vcs-Browser and Vcs-Git fields to debian/control.
   * Add Vcs-Browser and Vcs-Git fields to debian/control.
+  * Add a Homepage field to debian/control (to be changed later when
+    there's a more formal site).
+  * Allow comparing unsupported architectures for equality and identity.
+    Based on a patch by Frank Lichtenheld. Closes: #427210
+  * Document Origin and Bugs fields in deb-control.5. Closes: #173463
+  * Do not replace substvars for build dependencies (it was not supported
+    anyway).
 
 
   [ Frank Lichtenheld ]
   [ Frank Lichtenheld ]
   * Add _MTN to dpkg-source -i default regex. Suggested by Jari Aalto.
   * Add _MTN to dpkg-source -i default regex. Suggested by Jari Aalto.
@@ -35,6 +42,9 @@ dpkg (1.14.7) UNRELEASED; urgency=low
     Closes: #379418
     Closes: #379418
   * Let dpkg-buildpackage error out early if the version number from
   * Let dpkg-buildpackage error out early if the version number from
     the changelog is not a valid Debian version. Closes: #216075
     the changelog is not a valid Debian version. Closes: #216075
+  * Fix dpkg-source to create correct diffs for files with spaces in
+    their name (apparantly we don't have many of those ;).
+    Based on a patch by Marcel Toele. Closes: #445380
 
 
   [ Updated dpkg translations ]
   [ Updated dpkg translations ]
   * Basque (Piarres Beobide). Closes: #440859
   * Basque (Piarres Beobide). Closes: #440859
@@ -56,7 +66,7 @@ dpkg (1.14.7) UNRELEASED; urgency=low
   * Correct a typo in the French translation. Closes: #443276
   * Correct a typo in the French translation. Closes: #443276
   * Swedish (Peter Karlsson).
   * Swedish (Peter Karlsson).
 
 
- -- Frank Lichtenheld <djpig@debian.org>  Sun, 23 Sep 2007 02:40:20 +0200
+ -- Guillem Jover <guillem@debian.org>  Mon, 08 Oct 2007 07:31:34 +0300
 
 
 dpkg (1.14.6) unstable; urgency=low
 dpkg (1.14.6) unstable; urgency=low
 
 

+ 1 - 0
debian/control

@@ -5,6 +5,7 @@ Maintainer: Dpkg Developers <team@dpkg.org>
 Uploaders: Frank Lichtenheld <djpig@debian.org>, Guillem Jover <guillem@debian.org>, Brendan O'Dea <bod@debian.org>, Christian Perrier <bubulle@debian.org>
 Uploaders: Frank Lichtenheld <djpig@debian.org>, Guillem Jover <guillem@debian.org>, Brendan O'Dea <bod@debian.org>, Christian Perrier <bubulle@debian.org>
 Origin: debian
 Origin: debian
 Bugs: debbugs://bugs.debian.org
 Bugs: debbugs://bugs.debian.org
+Homepage: http://wiki.debian.org/Teams/Dpkg
 Vcs-Browser: http://git.debian.org/?p=dpkg/dpkg.git
 Vcs-Browser: http://git.debian.org/?p=dpkg/dpkg.git
 Vcs-Git: git://git.debian.org/git/dpkg/dpkg.git
 Vcs-Git: git://git.debian.org/git/dpkg/dpkg.git
 Standards-Version: 3.7.2
 Standards-Version: 3.7.2

+ 19 - 1
man/ChangeLog

@@ -1,3 +1,21 @@
+2007-10-08  Guillem Jover  <guillem@debian.org>
+
+	* po/dpkg-man.pot: Regenerated.
+	* po/*.po: Merged with dpkg-man.pot.
+
+2007-10-08  Guillem Jover  <guillem@debian.org>
+
+	* deb-control.5: Document Origin and Bugs fields.
+
+2007-10-07  Guillem Jover  <guillem@debian.org>
+
+	* dpkg-buildpackage.1: Document that fakeroot is now the default
+	value in case -r is not specified.
+
+2007-10-07  Helge Kreutzmann  <debian@helgefjell.de>
+
+	* po/de.po: Updated to 1238t0f52u.
+
 2007-09-30  Frank Lichtenheld  <djpig@debian.org>
 2007-09-30  Frank Lichtenheld  <djpig@debian.org>
 
 
 	* deb-control.5: Remove obsolete sentence regarding
 	* deb-control.5: Remove obsolete sentence regarding
@@ -40,7 +58,7 @@
 
 
 2007-09-09  Helge Kreutzmann  <debian@helgefjell.de>
 2007-09-09  Helge Kreutzmann  <debian@helgefjell.de>
 
 
-	* po/de.po: Updated to 1254t135f.
+	* po/de.po: Updated to 1254t135u.
 
 
 2007-09-08  Guillem Jover  <guillem@debian.org>
 2007-09-08  Guillem Jover  <guillem@debian.org>
 
 

+ 8 - 1
man/deb-control.5

@@ -1,6 +1,6 @@
 .\" Author: Raul Miller
 .\" Author: Raul Miller
 .\" Includes text from the debian Guidelines by Ian Jackson, Ian Murdock
 .\" Includes text from the debian Guidelines by Ian Jackson, Ian Murdock
-.TH deb\-control 5 "2007-08-31" "Debian Project" "Debian"
+.TH deb\-control 5 "2007-10-08" "Debian Project" "Debian"
 .SH NAME
 .SH NAME
 deb\-control \- Debian packages' master control file format
 deb\-control \- Debian packages' master control file format
 .
 .
@@ -84,6 +84,13 @@ etc. Note that the
 option is meant for packages that are architecture independent. Some examples
 option is meant for packages that are architecture independent. Some examples
 of this are shell and Perl scripts, and documentation.
 of this are shell and Perl scripts, and documentation.
 .TP
 .TP
+.BR Origin: " <name>"
+The name of the distribution this package is originating from.
+.TP
+.BR Bugs: " <url>"
+The url of the bug tracking system for this package. The current used format
+is \fB<bts_type>://<bts_address>\fP, like \fBdebbugs://bugs.debian.org\fP.
+.TP
 .BR Homepage: " <url>"
 .BR Homepage: " <url>"
 The upstream project home page URL.
 The upstream project home page URL.
 .TP
 .TP

+ 3 - 2
man/dpkg-buildpackage.1

@@ -1,4 +1,4 @@
-.TH dpkg\-buildpackage 1 "2007-07-18" "Debian Project" "dpkg utilities"
+.TH dpkg\-buildpackage 1 "2007-09-28" "Debian Project" "dpkg utilities"
 .SH NAME
 .SH NAME
 dpkg\-buildpackage \- build binary or source packages from sources
 dpkg\-buildpackage \- build binary or source packages from sources
 .
 .
@@ -114,7 +114,8 @@ When
 needs to execute part of the build process as root, it prefixes the
 needs to execute part of the build process as root, it prefixes the
 command it executes with
 command it executes with
 .I gain-root-command
 .I gain-root-command
-if one has been specified.
+if one has been specified. Otherwise, if none has been specified,
+\fBfakeroot\fP will be used by default, if the command is present.
 .I gain-root-command
 .I gain-root-command
 should be the name of a program on the
 should be the name of a program on the
 .B PATH
 .B PATH

Datei-Diff unterdrückt, da er zu groß ist
+ 586 - 370
man/po/de.po


Datei-Diff unterdrückt, da er zu groß ist
+ 237 - 140
man/po/dpkg-man.pot


Datei-Diff unterdrückt, da er zu groß ist
+ 286 - 168
man/po/es.po


Datei-Diff unterdrückt, da er zu groß ist
+ 297 - 170
man/po/fr.po


Datei-Diff unterdrückt, da er zu groß ist
+ 254 - 153
man/po/hu.po


Datei-Diff unterdrückt, da er zu groß ist
+ 255 - 153
man/po/ja.po


Datei-Diff unterdrückt, da er zu groß ist
+ 256 - 155
man/po/pl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 252 - 157
man/po/pt_BR.po


Datei-Diff unterdrückt, da er zu groß ist
+ 253 - 152
man/po/ru.po


Datei-Diff unterdrückt, da er zu groß ist
+ 301 - 176
man/po/sv.po


+ 7 - 4
scripts/controllib.pl

@@ -249,10 +249,7 @@ sub debarch_to_debtriplet($)
     local ($_) = @_;
     local ($_) = @_;
     my $arch;
     my $arch;
 
 
-    # FIXME: 'any' is handled here, to be able to do debarch_eq('any', foo).
-    if (/^any$/ || /^all$/) {
-	return ($_, $_, $_);
-    } elsif (/^linux-([^-]*)/) {
+    if (/^linux-([^-]*)/) {
 	# XXX: Might disappear in the future, not sure yet.
 	# XXX: Might disappear in the future, not sure yet.
 	$arch = $1;
 	$arch = $1;
     } else {
     } else {
@@ -288,6 +285,9 @@ sub debwildcard_to_debtriplet($)
 sub debarch_eq($$)
 sub debarch_eq($$)
 {
 {
     my ($a, $b) = @_;
     my ($a, $b) = @_;
+
+    return 1 if ($a eq $b);
+
     my @a = debarch_to_debtriplet($a);
     my @a = debarch_to_debtriplet($a);
     my @b = debarch_to_debtriplet($b);
     my @b = debarch_to_debtriplet($b);
 
 
@@ -299,6 +299,9 @@ sub debarch_eq($$)
 sub debarch_is($$)
 sub debarch_is($$)
 {
 {
     my ($real, $alias) = @_;
     my ($real, $alias) = @_;
+
+    return 1 if ($alias eq $real or $alias eq 'any');
+
     my @real = debarch_to_debtriplet($real);
     my @real = debarch_to_debtriplet($real);
     my @alias = debwildcard_to_debtriplet($alias);
     my @alias = debwildcard_to_debtriplet($alias);
 
 

+ 17 - 6
scripts/dpkg-buildpackage.pl

@@ -37,8 +37,7 @@ Usage: %s [<options> ...]
 
 
 Options:
 Options:
   -r<gain-root-command>
   -r<gain-root-command>
-                 command to gain root privileges (default is fakeroot if it
-                 exists).
+                 command to gain root privileges (default is fakeroot).
   -p<sign-command>
   -p<sign-command>
   -d             do not check build dependencies and conflicts.
   -d             do not check build dependencies and conflicts.
   -D             check build dependencies and conflicts.
   -D             check build dependencies and conflicts.
@@ -85,10 +84,6 @@ sub testcommand {
 }
 }
 
 
 my $rootcommand = '';
 my $rootcommand = '';
-if (testcommand('fakeroot')) {
-    $rootcommand = 'fakeroot';
-}
-
 my $signcommand = '';
 my $signcommand = '';
 if ( ( ($ENV{GNUPGHOME} && -e $ENV{GNUPGHOME})
 if ( ( ($ENV{GNUPGHOME} && -e $ENV{GNUPGHOME})
        || ($ENV{HOME} && -e "$ENV{HOME}/.gnupg") )
        || ($ENV{HOME} && -e "$ENV{HOME}/.gnupg") )
@@ -201,6 +196,22 @@ while (@ARGV) {
     }
     }
 }
 }
 
 
+if ($< == 0) {
+    warning(_g("using a gain-root-command while being root")) if ($rootcommand);
+} else {
+    $rootcommand ||= 'fakeroot';
+
+    if (!testcommand($rootcommand)) {
+	if ($rootcommand eq 'fakeroot') {
+	    error(_g("fakeroot not found, either install the fakeroot\n" .
+	             "package, specify a command with the -r option, " .
+	             "or run this as root"));
+	} else {
+	    error(sprintf(_g("gain-root-commmand '%s' not found"), $rootcommand));
+	}
+    }
+}
+
 unless ($signcommand) {
 unless ($signcommand) {
     $signsource = 0;
     $signsource = 0;
     $signchanges = 0;
     $signchanges = 0;

+ 3 - 2
scripts/dpkg-gencontrol.pl

@@ -183,8 +183,9 @@ for $_ (keys %fi) {
 		              join("' `", @invalid_archs)))
 		              join("' `", @invalid_archs)))
 		    if @invalid_archs >= 1;
 		    if @invalid_archs >= 1;
 		grep(debarch_is($host_arch, $_), @archlist) ||
 		grep(debarch_is($host_arch, $_), @archlist) ||
-                    &error(sprintf(_g("current build architecture %s does not".
-                                      " appear in package's list (%s)"),
+		    error(sprintf(_g("current host architecture '%s' does " .
+		                     "not appear in package's architecture " .
+		                     "list (%s)"),
 		                   $host_arch, "@archlist"));
 		                   $host_arch, "@archlist"));
 		$f{$_} = $host_arch;
 		$f{$_} = $host_arch;
             }
             }

+ 6 - 5
scripts/dpkg-source.pl

@@ -292,7 +292,7 @@ if ($opmode eq 'build') {
 	    }
 	    }
 	    elsif (m/^Uploaders$/i) { ($f{$_}= $v) =~ s/[\r\n]//g; }
 	    elsif (m/^Uploaders$/i) { ($f{$_}= $v) =~ s/[\r\n]//g; }
 	    elsif (m/^Build-(Depends|Conflicts)(-Indep)?$/i) {
 	    elsif (m/^Build-(Depends|Conflicts)(-Indep)?$/i) {
-		my $dep = parsedep(substvars($v),1);
+		my $dep = parsedep($v, 1);
 		&error(sprintf(_g("error occurred while parsing %s"), $_)) unless defined $dep;
 		&error(sprintf(_g("error occurred while parsing %s"), $_)) unless defined $dep;
 		$f{$_}= showdep($dep, 1);
 		$f{$_}= showdep($dep, 1);
 	    }
 	    }
@@ -644,10 +644,11 @@ if ($opmode eq 'build') {
 		    $ENV{'LC_ALL'}= 'C';
 		    $ENV{'LC_ALL'}= 'C';
 		    $ENV{'LANG'}= 'C';
 		    $ENV{'LANG'}= 'C';
 		    $ENV{'TZ'}= 'UTC0';
 		    $ENV{'TZ'}= 'UTC0';
-                    exec('diff','-u',
-                         '-L',"$basedirname.orig/$fn",
-                         '-L',"$basedirname/$fn",
-                         '--',"$ofnread","$dir/$fn") or &syserr(_g("exec diff"));
+		    my $tab = ("$basedirname/$fn" =~ / /) ? "\t" : '';
+		    exec('diff','-u',
+			 '-L',"$basedirname.orig/$fn$tab",
+			 '-L',"$basedirname/$fn$tab",
+			 '--',"$ofnread","$dir/$fn") or &syserr(_g("exec diff"));
                 }
                 }
 		my $difflinefound = 0;
 		my $difflinefound = 0;
                 $/= "\n";
                 $/= "\n";