Your message dated Wed, 21 Jun 2006 08:32:25 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#62529: fixed in dpkg 1.13.22
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-dev
Severity: wishlist

(since discussion seems to have died off on the thread, here's a bug
report to make sure it's not completely forgotten. package-pools
really needs something like this to be useful. If you'd rather a patch
for the second method, I'd be happy to write that up properly, especially
if you can suggest a format for debian-specific binary-only-recompiles)

dpkg ought to better support binary only recompilations. In particular,
.changes files for a binary only recompilation should accurately reflect
the source version used to compile the package. The following patch
achieves this.

diff -ur ../dpkg-1.4.1.11-real/scripts/dpkg-genchanges.pl 
scripts/dpkg-genchanges.pl
--- ../dpkg-1.4.1.11-real/scripts/dpkg-genchanges.pl    Wed May 26 23:38:15 1999
+++ scripts/dpkg-genchanges.pl  Sat Dec 11 17:00:55 1999
@@ -214,6 +214,11 @@
                                  " file but $f2pri{$f} in files list");
 }
 
+if ($f{'Version'} =~ m/^(.*-[0-9]+)\.([0-9]+)\.[0-9]+$/) {
+    $f{'Version'}= $1;
+    $f{'Version'}.= ".$2" if ($2 ne "0");
+}
+
 if (!$binaryonly) {
     $version= $f{'Version'};
     $origversion= $version; $origversion =~ s/-[^-]+$//;
diff -ur ../dpkg-1.4.1.11-real/scripts/dpkg-gencontrol.pl 
scripts/dpkg-gencontrol.pl
--- ../dpkg-1.4.1.11-real/scripts/dpkg-gencontrol.pl    Tue Jul  6 04:18:22 1999
+++ scripts/dpkg-gencontrol.pl  Sat Dec 11 16:43:51 1999
@@ -154,6 +154,10 @@
             &setsourcepackage;
         } elsif (m/^Version$/) {
             $sourceversion= $v;
+            if ($sourceversion =~ m/^(.*-[0-9]+)\.([0-9]+)\.[0-9]+$/) {
+                $sourceversion= $1;
+                $sourceversion.= ".$2" if ($2 ne "0");
+            }
             $f{$_}= $v unless length($forceversion);
         } elsif (m/^(Maintainer|Changes|Urgency|Distribution|Date|Closes)$/) {
         } elsif (s/^X[CS]*B[CS]*-//i) {

Following is a post to -dpkg and -devel with some background.

----- Forwarded message from Anthony Towns <[email protected]> -----
Date: Sat, 11 Dec 1999 17:19:30 +1000
From: Anthony Towns <[email protected]>
To: [email protected], [email protected]
Subject: Binary only Recompilations

Hello world,

Background: every now and then, libraries get updated or bugs in gcc get
fixed, and packages get reuploaded without any source changes, and with
their debian revision bumped by 0.0.1. At the moment, there's no obvious
way of automatically associating these things with their source.

What would, IMO, be nice is having:

        Package: foo
        Version: 1.2-2.0.1
        ...
        source: foo (1.2-2)

appear in Packages files.

I *believe* this can be obtained by having dpkg-gencontrol generate a
DEBIAN/control file including:

        Package: foo
        Version: 1.2-2.0.1
        ...
        Source: foo
        Source-Version: 1.2-2

.

The real question is when dpkg-gencontrol should do this.

One way, would be to change the various dpkg scripts to treat a changelog
version of 1.2-2.0.1 as though it were 1.2-2 for the source, and 1.2-2.0.1
for any binaries.

I think the easiest way of getting this to happen would be just making a
change to dpkg-genchanges and dpkg-gencontrol like:

diff -ur ../dpkg-1.4.1.11-real/scripts/dpkg-genchanges.pl 
scripts/dpkg-genchanges.pl
--- ../dpkg-1.4.1.11-real/scripts/dpkg-genchanges.pl    Wed May 26 23:38:15 1999
+++ scripts/dpkg-genchanges.pl  Sat Dec 11 17:00:55 1999
@@ -214,6 +214,11 @@
                                  " file but $f2pri{$f} in files list");
 }
 
+if ($f{'Version'} =~ m/^(.*-[0-9]+)\.([0-9]+)\.[0-9]+$/) {
+    $f{'Version'}= $1;
+    $f{'Version'}.= ".$2" if ($2 ne "0");
+}
+
 if (!$binaryonly) {
     $version= $f{'Version'};
     $origversion= $version; $origversion =~ s/-[^-]+$//;
diff -ur ../dpkg-1.4.1.11-real/scripts/dpkg-gencontrol.pl 
scripts/dpkg-gencontrol.pl
--- ../dpkg-1.4.1.11-real/scripts/dpkg-gencontrol.pl    Tue Jul  6 04:18:22 1999
+++ scripts/dpkg-gencontrol.pl  Sat Dec 11 16:43:51 1999
@@ -154,6 +154,10 @@
             &setsourcepackage;
         } elsif (m/^Version$/) {
             $sourceversion= $v;
+            if ($sourceversion =~ m/^(.*-[0-9]+)\.([0-9]+)\.[0-9]+$/) {
+                $sourceversion= $1;
+                $sourceversion.= ".$2" if ($2 ne "0");
+            }
             $f{$_}= $v unless length($forceversion);
         } elsif (m/^(Maintainer|Changes|Urgency|Distribution|Date|Closes)$/) {
         } elsif (s/^X[CS]*B[CS]*-//i) {

Another way of doing would be to add a --recompile=n option to
debuild, and have that be passed down to dpkg-gencontrol, so that
dpkg-gencontrol behaves as though `-vXYX-A.B.n' option is added to
all the binary packages.

Having dpkg-buildpackage set an environment variable DEB_RECOMPILE=n
and adding something like:

        if (defined $ENV{"DEB_RECOMPILE"}) {
            $n = $ENV{"DEB_RECOMPILE"};
            if ($f{'Version'} =~ m/^.*-[0-9]$/) {
                $f{'Version'}.= ".0.$n";
            } elsif ($f{'Version'} =~ m/^.*-[0-9]\.[0-9]$/ {
                $f{'Version'}.= ".$n";
            } else {
                # Debian native package?
                $f{'Version'}.= ".recompile.$n";
            }
        }

after:
        $f{'Version'}= $forceversion if length($forceversion);
in dpkg-gencontrol.

This would change the way recompiles are done, in that instead of changing
the changelog and recompiling, you'd add a different argument to debuild.

Also, there doesn't seem to be any predictable way of discerning recompiles
on Debian-native packages.

So, could something to this effect be applied to dpkg soonish, please?

Cheers,
aj
----- End forwarded message -----

-- 
Anthony Towns <[EMAIL PROTECTED]> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG encrypted mail preferred.

 ``The thing is: trying to be too generic is EVIL. It's stupid, it 
        results in slower code, and it results in more bugs.''
                                        -- Linus Torvalds

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

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.13.22_all.deb
  to pool/main/d/dpkg/dpkg-dev_1.13.22_all.deb
dpkg_1.13.22.dsc
  to pool/main/d/dpkg/dpkg_1.13.22.dsc
dpkg_1.13.22.tar.gz
  to pool/main/d/dpkg/dpkg_1.13.22.tar.gz
dpkg_1.13.22_i386.deb
  to pool/main/d/dpkg/dpkg_1.13.22_i386.deb
dselect_1.13.22_i386.deb
  to pool/main/d/dpkg/dselect_1.13.22_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: Wed, 21 Jun 2006 18:03:29 +0300
Source: dpkg
Binary: dpkg dselect dpkg-dev
Architecture: source i386 all
Version: 1.13.22
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: 62529 133470 305318 325895 366260 368003 370392 370536 370830 372145 
373107 373728 373999 374154
Changes: 
 dpkg (1.13.22) unstable; urgency=low
 .
   [ Guillem Jover ]
   * Version the po4a Build-Depends to >= 0.23 as we are using options
     introduced in that version. Thanks to Sergio Gelato. Closes: #370536
   * Add '.bzrtags' directory to default dpkg-source -i regex.
     Suggested by Adeodato Simó. Closes: #370392
   * Print update-alternatives '--config' listing layout evenly spaced.
     Closes: #325895
   * Clarify the legend in update-alternatives '--help' (Andrew Ferrier).
     Closes: #305318
   * Add the source version inside parenthesis to the Source field in the
     generated .changes and binary packages if the binary package version
     differs (like in binNMUs). Closes: #62529
   * Add missing comment serving as documentation about abort-remove on
     removal in dpkg.postinst (Justin Pryzby). Closes: #372145
   * Fix typo in dpkg-deb manpage (Robert Luberda). Closes: #373999
   * Clarify dpkg-architecture new options '-e' and '-i' in man page, add
     backward compatibility information and give some examples.
     Thanks for the initial suggestions to Junichi Uekawa. Closes: #370830
   * Modified some strings to be able to merge them in the .pot files.
   * Add new '--umask' option to start-stop-daemon. Closes: #368003
 .
   [ Frank Lichtenheld ]
   * dpkg-source issued spurious warnings about fields defined with
     XB-. They now get correctly suppressed. Closes: #374154
   * Give a correct warning when the user requested an unknown
     sign command that we will default to a pgp style interface.
     Closes: #133470
 .
   [ Updated dpkg Translations ]
   * Romanian (Eddy Petrişor).
   * Galician (Jacobo Tarrio).
   * French (Christian Perrier).
   * Swedish (Peter Karlsson).
   * Basque (Piarres Beobide). Closes: #373107
   * Polish (Robert Luberda).
   * Catalan (Guillem Jover).
 .
   [ New dpkg Translations ]
   * Nepali (Paras Pradhan). Closes: #373728
 .
   [ Updated dselect Translations ]
   * Simplified Chinese (Kov Tchai). Closes: #366260
 .
   [ Updated man pages translations ]
   * Polish (Robert Luberda).
 .
   [ Christian Perrier ]
   * Typo fix in update-alternatives ("alternativse"). Thanks to Eddy Petrisor
     for spotting it. Translations unfuzzied.
   * Make similar messages in dpkg-statoverride and dpkg-divert exactly similar
     Thanks to Eddy Petriso for spotting them, again.
Files: 
 fe03fd4bc13b7fb3f16da2663b266ab1 853 admin required dpkg_1.13.22.dsc
 0fc9fffc2c2cfa7107d8f422815078c1 3104736 admin required dpkg_1.13.22.tar.gz
 df8469f6efb4504a343f24d558df997f 1634554 admin required dpkg_1.13.22_i386.deb
 6252adca64dfee1876cf4dad13924a38 513300 admin required dselect_1.13.22_i386.deb
 a53267c6ba74593be43d3e630688ea27 109390 utils standard dpkg-dev_1.13.22_all.deb

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

iD8DBQFEmWHauW9ciZ2SjJsRAu3LAKDpt/wOwxfuirLeyM0XogtMiBNE7wCfcf9K
kyD6vfoCBEsWLW8nk+Ks0qE=
=UnsR
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to