[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#228253: marked as done (dpkg: Patch to preserv the Architecture field for newly installed packages)

Your message dated Mon, 08 Mar 2004 14:47:04 -0500
with message-id <E1B0QiO-0002kq-00@newraff.debian.org>
and subject line Bug#228253: fixed in dpkg 1.10.19
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)

Received: (at submit) by bugs.debian.org; 17 Jan 2004 18:05:03 +0000
>From brederlo@informatik.uni-tuebingen.de Sat Jan 17 10:05:03 2004
Return-path: <brederlo@informatik.uni-tuebingen.de>
Received: from mx5.informatik.uni-tuebingen.de [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Ahuoh-0007VY-00; Sat, 17 Jan 2004 10:05:03 -0800
Received: from localhost (loopback [])
	by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP
	id C6540125; Sat, 17 Jan 2004 19:04:27 +0100 (NFT)
Received: from mx5.informatik.uni-tuebingen.de ([])
 by localhost (mx5 []) (amavisd-new, port 10024) with ESMTP
 id 29906-04; Sat, 17 Jan 2004 19:04:25 +0100 (NFT)
Received: from dual (semeai.Informatik.Uni-Tuebingen.De [])
	by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP
	id CCB8F117; Sat, 17 Jan 2004 19:04:24 +0100 (NFT)
Received: from mrvn by dual with local (Exim 3.36 #1 (Debian))
	id 1Ahuk0-0007U7-00; Sat, 17 Jan 2004 19:00:12 +0100
Content-Type: multipart/mixed; boundary="===============1386956697=="
MIME-Version: 1.0
From: Goswin Brederlow <brederlo@informatik.uni-tuebingen.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: Patch to preserv the Architecture field for newly installed packages
X-Mailer: reportbug 2.37
Date: Sat, 17 Jan 2004 19:00:11 +0100
Message-Id: <E1Ahuk0-0007U7-00@dual>
Sender: Goswin von Brederlow <brederlo@informatik.uni-tuebingen.de>
X-Virus-Scanned: by amavisd-new (McAfee AntiVirus) at informatik.uni-tuebingen.de
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_14 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 

This is a multi-part MIME message sent by reportbug.

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: dpkg
Version: 1.10.18-0.1
Severity: important
Tags: patch sid sarge


in case you don't find your own patch enabling keeping the
Architecture field in the status file I attached a cleanup version of

'parse.c' has to be stopped from erasing existing Architecture lines in
the status file and 'processarc.c' has to copy the information over
when installing a package.

I didn't include code that "guesses" missing architectures since it
not so clear how to do this and its unneccessary for sarge.

Please do include this in your next upload and before sarge.


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dual 2.4.23dual #1 SMP Sun Dec 14 13:57:16 CET 2003 i686
Locale: LANG=C, LC_CTYPE=de_DE

Versions of packages dpkg depends on:
ii  dselect                     1.10.18      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an

-- no debconf information

Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="arch.patch"

diff -Nurd dpkg-1.10.18/debian/changelog dpkg-1.10.18-0.1/debian/changelog
--- dpkg-1.10.18/debian/changelog	2003-10-27 20:42:05.000000000 +0100
+++ dpkg-1.10.18-0.1/debian/changelog	2004-01-16 10:55:16.000000000 +0100
@@ -1,3 +1,10 @@
+dpkg (1.10.18-0.1) unstable; urgency=medium
+  * Keep Architecture field status file
+  * Copy Architecture field from available to status on install
+ -- Goswin von Brederlow <brederlo@informatik.uni-tuebingen.de>  Fri, 16 Jan 2004 10:55:56 +0200
 dpkg (1.10.18) unstable; urgency=medium
   * Rebuild, tagging and releasing correctly from cvs this time.
diff -Nurd dpkg-1.10.18/lib/parse.c dpkg-1.10.18-0.1/lib/parse.c
--- dpkg-1.10.18/lib/parse.c	2003-10-25 22:03:20.000000000 +0200
+++ dpkg-1.10.18-0.1/lib/parse.c	2004-01-16 10:53:16.000000000 +0100
@@ -241,8 +241,6 @@
     if (flags & pdb_recordavailable)
       parsemustfield(NULL,filename,lno, warnto,warncount,&newpig,1,
                      (const char **)&newpifp->architecture, "architecture");
-    else if (newpifp->architecture && *newpifp->architecture)
-      newpifp->architecture= NULL;
     /* Check the Config-Version information:
      * If there is a Config-Version it is definitely to be used, but
diff -Nurd dpkg-1.10.18/main/processarc.c dpkg-1.10.18-0.1/main/processarc.c
--- dpkg-1.10.18/main/processarc.c	2003-10-25 22:03:21.000000000 +0200
+++ dpkg-1.10.18-0.1/main/processarc.c	2004-01-16 10:41:48.000000000 +0100
@@ -790,7 +790,7 @@
   pkg->installed.description= pkg->available.description;
   pkg->installed.maintainer= pkg->available.maintainer;
   pkg->installed.source= pkg->available.source;
-  pkg->installed.architecture= 0; /* This is irrelevant in the status file. */
+  pkg->installed.architecture= pkg->available.architecture;
   pkg->installed.installedsize= pkg->available.installedsize;
   pkg->installed.version= pkg->available.version;
   pkg->installed.origin = pkg->available.origin;                               


Received: (at 228253-close) by bugs.debian.org; 8 Mar 2004 19:53:06 +0000
>From katie@ftp-master.debian.org Mon Mar 08 11:53:06 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B0QoE-00036B-00; Mon, 08 Mar 2004 11:53:06 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1B0QiO-0002kq-00; Mon, 08 Mar 2004 14:47:04 -0500
From: Scott James Remnant <scott@netsplit.com>
To: 228253-close@bugs.debian.org
X-Katie: $Revision: 1.44 $
Subject: Bug#228253: fixed in dpkg 1.10.19
Message-Id: <E1B0QiO-0002kq-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 08 Mar 2004 14:47:04 -0500
Delivered-To: 228253-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_08 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=no 

Source: dpkg
Source-Version: 1.10.19

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:

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

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

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 228253@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Scott James Remnant <scott@netsplit.com> (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 ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Mon,  8 Mar 2004 19:05:32 +0000
Source: dpkg
Binary: dpkg-doc dpkg dselect dpkg-dev dpkg-static
Architecture: source all i386
Version: 1.10.19
Distribution: unstable
Urgency: high
Maintainer: Dpkg Development <debian-dpkg@lists.debian.org>
Changed-By: Scott James Remnant <scott@netsplit.com>
 dpkg       - Package maintenance system for Debian
 dpkg-dev   - Package building tools for Debian
 dpkg-doc   - Dpkg Internals Documentation
 dselect    - a user tool to manage Debian packages
Closes: 139781 157437 168443 170953 190611 199489 199693 211566 213038 213543 213846 217286 217943 221989 222760 225692 228253 228379 232025 232916 235266
 dpkg (1.10.19) unstable; urgency=high
   * Distinguish unmet build dependencies from build conflicts.
     Closes: #217943, #235266.
   * Force NULL-termination of all tar file entry names.  Closes: #232025.
   * Allow dselect to use the full window width.  Closes: #139781.
   * Pass correct number of arguments for format string when out of disk
     space.  Closes: #213038, #217286, #213543, #213846.
   * Remove duplicated entries from ChangeLog.  Closes: #157437.
   * Fix dpkg-buildpackage when used with PGP.  Closes: #232916.
   * Update support for Debian FreeBSD.  Closes: #211566.
   * Store Architecture in the status file.  Closes: #228253.
   * Don't print offending lines in md5sum.  Closes: #170953.
   * Check bounds of md5sum lines.  Closes: #168443, #199489, #199693.
 dpkg ( unstable; urgency=medium
   * Non-maintainer upload to fix release-critical bugs.
   * Terminate string buffer in main/remove.c.  Closes: #228379.
   * Prevent stashing of hardlinked devices and setuid or setgid binaries
     by removing permissions on upgrade as well as on remove.
     Closes: #225692.
   * Update dpkg conflicts to << 1.10, instead of 1.9.
     Closes: #190611, #221989, #222760.
 5a4c39cb6903694ec7ff0ebcd5afc33d 798 base required dpkg_1.10.19.dsc
 a735a1f14cc985ad083b46bce425001b 1547265 base required dpkg_1.10.19.tar.gz
 86386707c685a60c4132def2494b3657 1086080 base required dpkg_1.10.19_i386.deb
 5bf8ab50684b58b8619f2c7d982ac47f 95024 base required dselect_1.10.19_i386.deb
 088fe395e33835351e2ccdc3f8122a31 114618 utils standard dpkg-dev_1.10.19_all.deb
 294b7c2bf86172671a91b050c6db8a1a 10636 doc optional dpkg-doc_1.10.19_all.deb

Version: GnuPG v1.2.4 (GNU/Linux)


Reply to: