Your message dated Thu, 27 Dec 2007 07:47:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#377400: fixed in dpkg 1.14.13
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: dpkg
Version: 1.13.22
Severity: normal

Currently dpkg-genchanges barfs if debian/files contains the same
package with different architectures.

| $ dpkg-genchanges 
| dpkg-genchanges: error: package linux-image-2.6-sb1-bcm91250a mips has 
section devel in control file but base in files list

The settings are correct, but dpkg-genchanges lacks the state to
differentiate linux-image-2.6-sb1-bcm91250a/mips and
linux-image-2.6-sb1-bcm91250a/mipsel and simply throws away the first
information.

The attached patch fixes the problem by mapping a package name to a list
of files.

Bastian

-- 
Those who hate and fight must stop themselves -- otherwise it is not stopped.
                -- Spock, "Day of the Dove", stardate unknown
--- /usr/bin/dpkg-genchanges    2006-06-21 17:08:36.000000000 +0200
+++ dpkg-genchanges     2006-07-08 18:58:36.000000000 +0200
@@ -13,8 +13,8 @@
 
 # Other global variables used:
 # %f2p             - file to package map
-# %p2f             - package to file map
-#                    has entries for both "packagename" and "packagename 
architecture"
+# %p2f             - package to list of files map, has entries for 
"packagename"
+# %pa2f            - package to file map, has entries for "packagename 
architecture"
 # %p2ver           - package to version map
 # %f2sec           - file to section map
 # %f2pri           - file to priority map
@@ -143,8 +143,9 @@
            defined($p2f{"$2 $4"}) &&
                &warn(sprintf(_g("duplicate files list entry for package %s 
(line %d)"), $2, $.));
            $f2p{$1}= $2;
-           $p2f{"$2 $4"}= $1;
-           $p2f{$2}= $1;
+           $pa2f{"$2 $4"}= $1;
+           $p2f{$2} = [] if not defined $p2f{$2};
+           push @{$p2f{$2}}, $1;
            $p2ver{$2}= $3;
            defined($f2sec{$1}) &&
                &warn(sprintf(_g("duplicate files list entry for file %s (line 
%d)"), $1, $.));
@@ -190,7 +191,7 @@
            }
        } else {
            $p2arch{$p}=$a;
-           $f=$p2f{$p};
+           @[EMAIL PROTECTED];
            if (m/^Description$/) {
                $v=$` if $v =~ m/\n/;
                if ($f =~ m/\.udeb$/) {
@@ -199,9 +200,9 @@
                        push(@descriptions,sprintf("%-10s - %-.65s",$p,$v));
                }
            } elsif (m/^Section$/) {
-               $f2seccf{$f}= $v;
+               $f2seccf{$_}= $v foreach (@f);
            } elsif (m/^Priority$/) {
-               $f2pricf{$f}= $v;
+               $f2pricf{$_}= $v foreach (@f);
            } elsif (s/^X[BS]*C[BS]*-//i) {
                $f{$_}= $v;
            } elsif (m/^Architecture$/) {
@@ -252,24 +253,26 @@
     }
 }
 
-for $p (keys %p2f) {
+for $p (keys %pa2f) {
     my ($pp, $aa) = (split / /, $p);
     defined($p2i{"C $pp"}) ||
         &warn(sprintf(_g("package %s listed in files list but not in control 
info"), $pp));
 }
 
 for $p (keys %p2f) {
-    $f= $p2f{$p};
-    $sec= $f2seccf{$f}; $sec= $sourcedefault{'Section'} if !length($sec);
-    if (!length($sec)) { $sec='-'; &warn(sprintf(_g("missing Section for 
binary package %s; using '-'"), $p)); }
-    $sec eq $f2sec{$f} || &error(sprintf(_g("package %s has section %s in ".
-                                           "control file but %s in files 
list"),
-                                 $p, $sec, $f2sec{$f}));
-    $pri= $f2pricf{$f}; $pri= $sourcedefault{'Priority'} if !length($pri);
-    if (!length($pri)) { $pri='-'; &warn("missing Priority for binary package 
$p; using '-'"); }
-    $pri eq $f2pri{$f} || &error(sprintf(_g("package %s has priority %s in ".
-                                           "control file but %s in files 
list"),
-                                 $p, $pri, $f2pri{$f}));
+    @f= @{$p2f{$p}};
+    foreach my $f (@f) {
+        $sec= $f2seccf{$f}; $sec= $sourcedefault{'Section'} if !length($sec);
+        if (!length($sec)) { $sec='-'; &warn(sprintf(_g("missing Section for 
binary package %s; using '-'"), $p)); }
+        $sec eq $f2sec{$f} || &error(sprintf(_g("package %s has section %s in 
".
+                                               "control file but %s in files 
list"),
+                                     $p, $sec, $f2sec{$f}));
+        $pri= $f2pricf{$f}; $pri= $sourcedefault{'Priority'} if !length($pri);
+        if (!length($pri)) { $pri='-'; &warn("missing Priority for binary 
package $p; using '-'"); }
+        $pri eq $f2pri{$f} || &error(sprintf(_g("package %s has priority %s in 
".
+                                               "control file but %s in files 
list"),
+                                     $p, $pri, $f2pri{$f}));
+    }
 }
 
 &init_substvars;

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: dpkg
Source-Version: 1.14.13

We believe that the bug you reported is fixed in the latest version of
dpkg, which is due to be installed in the Debian FTP archive:

dpkg-dev_1.14.13_all.deb
  to pool/main/d/dpkg/dpkg-dev_1.14.13_all.deb
dpkg_1.14.13.dsc
  to pool/main/d/dpkg/dpkg_1.14.13.dsc
dpkg_1.14.13.tar.gz
  to pool/main/d/dpkg/dpkg_1.14.13.tar.gz
dpkg_1.14.13_i386.deb
  to pool/main/d/dpkg/dpkg_1.14.13_i386.deb
dselect_1.14.13_i386.deb
  to pool/main/d/dpkg/dselect_1.14.13_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <[EMAIL PROTECTED]> (supplier of updated dpkg package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 27 Dec 2007 09:16:45 +0200
Source: dpkg
Binary: dpkg dselect dpkg-dev
Architecture: source i386 all
Version: 1.14.13
Distribution: unstable
Urgency: low
Maintainer: Dpkg Developers <[EMAIL PROTECTED]>
Changed-By: Guillem Jover <[EMAIL PROTECTED]>
Description: 
 dpkg       - package maintenance system for Debian
 dpkg-dev   - package building tools for Debian
 dselect    - user tool to manage Debian packages
Closes: 76295 109794 200454 220044 229143 245562 246906 356299 373003 377400 
392440 433567 441021 443241 451872 452730 453364 453885 454616 455260 455520 
455841 456984 457673 457739 457784
Changes: 
 dpkg (1.14.13) unstable; urgency=low
 .
   [ Frank Lichtenheld ]
   * Add an own manpage for Dpkg's version format. Mostly stolen
     from policy. Closes: #373003
   * Fix control file parsing for field values starting with a colon.
     Apparently nobody ever needed this until Vcs-Cvs came along.
     Closes: #453364
   * Copy the usr/share/doc directory to dpkg-dev and dselect (Instead
     of using symlinks). The space requirements are minimal and adding
     the needed dependencies to comply with policy would be way more
     inconvenient. Pointed out by Rene Engelhard. Closes: #452730
   * Allow more than one arch and more than one type of a package
     in debian/files. Parts of the patch by Goswin von Brederlow
     and Bastian Blank. Closes: #356299, #377400, #229143
   * Allow building only architecture independent packages (-A).
     Closes: #109794, #200454
   * Bump Standards-Version to 3.7.3 (no changes)
 .
   [ Raphael Hertzog ]
   * When dpkg-shlibdeps finds a lib in a directory which is just a symlink to
     another directory that is also considered, remember the other directory
     name as the canonical one. Closes: #453885
   * dpkg-shlibdeps doesn't warn any more about libm.so.6 being unused if the
     binary is also linked against libstdc++ since g++ always add an implicit
     -lm. Closes: #454616
   * Included files in symbols files (via #include) do no more need to repeat
     the header line. Closes: #455260
   * Tweak the sort algorithm between dependencies so that intervals
     are displayed as "a (>= 1), a (<< 2)" instead of the opposite.
     Closes: #455520
   * Extend format of symbols files to support arbitrary fields of
     meta-information. First field is Build-Depends-Package used to extract the
     version requirement possibly encoded in the Build-Depends field and make
     sure that the generated dependency is at least as strict as this one.
   * Fix dpkg-gensymbols to not update version info of a deprecated symbol.
     Closes: #457739
   * Fix dpkg-source's behaviour with options -sk -sK -sp -sP. Closes: #457784
 .
   [ Guillem Jover ]
   * Ignore the man pages when building without NLS support. Closes: #457673
   * Fix perl warnings:
     - Check for undefined values when reading from the alternative db.
   * Properly handle symlinks for alternatives with inexistent slave links.
     Closes: #76295, #246906, #433567, #451872, #220044, #392440, #441021
     Closes: #443241
     Based on a patch by Daniel Leidert <[EMAIL PROTECTED]>.
   * Fail when diverting to a non existent directory. Closes: #245562
     Thanks to Flavio Stanchina <[EMAIL PROTECTED]>.
   * Refactor update-alternatives.
 .
   [ Updated dpkg translations ]
   * French (Christian Perrier, as this was trivial).
   * Spanish (Javier Fernández-Sanguino Peña). Closes: #456984
   * Swedish (Peter Karlsson).
 .
   [ Updated man pages translations ]
   * German (Helge Kreutzmann).
   * Swedish (Peter Karlsson).
 .
   [ Updated scripts translations ]
   * French (Frédéric Bothamy).
   * German (Helge Kreutzmann).
   * Japanese (Kenshi Muto). Closes: #455841
   * Swedish (Peter Karlsson).
Files: 
 4f342691b8ee5dd5f78e3acfee906e93 997 admin required dpkg_1.14.13.dsc
 f400ed1653921962564be1f7486a101d 6329144 admin required dpkg_1.14.13.tar.gz
 55e87cb463d850f822a4e03605361c75 2150570 admin required dpkg_1.14.13_i386.deb
 23dde75b8fac05bc56c87250f85bbbdb 725376 admin required dselect_1.14.13_i386.deb
 771cdeb984059da7b6e53dd42057481f 548008 utils optional dpkg-dev_1.14.13_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHc1MLuW9ciZ2SjJsRAuSnAKDJsjGVI2DZMWS6Y6qhIg+MZbQbaACeO/oh
oLl6KDo0p5I7+3TJD9+a+k4=
=/iIW
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to