Debian Bug report logs - #9893
FIXED in NMU [was: dpkg: dpkg-gencontrol doesn't honour -DArchtecture=xxxx]

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Heiko Schlittermann <heiko@lotte.sax.de>

Date: Sat, 17 May 1997 18:03:03 UTC

Severity: fixed

Done: Anthony Towns <ajt@master.debian.org>

Bug is archived. No further changes may be made.

Forwarded to ian@davenant.greenend.org.uk

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#9893; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Heiko Schlittermann <heiko@lotte.sax.de>:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Heiko Schlittermann <heiko@lotte.sax.de>
To: submit@bugs.debian.org
Subject: dpkg: dpkg-gencontrol doesn't honour -DArchtecture=xxxx
Date: Sat, 17 May 1997 19:07:23 +0200 (CEST)
Package: dpkg
Version: 1.4.0.8

Hello Klee,

as a former short time dpkg maintainer  ... I've triggered or introduced
(doesn't matter) the -D option to dpkg-gencontrol.  I needed this for
a multi platform build of the xforms package (coming as binary ``source''
only) for i386, m68k and for alpha.  

The support of -DArchitecture seems to be buggy, I've fixed it somewhat.
Probably it's a hack, but, at least for me, a necessary hack.  

#### dpkg-gencontrol
diff -u /usr/bin/dpkg-gencontrol /tmp/dpkg-gencontrol
--- /usr/bin/dpkg-gencontrol	Mon Feb  3 19:54:54 1997
+++ /tmp/dpkg-gencontrol	Sat May 17 18:56:10 1997
@@ -87,8 +87,10 @@
     }
 }
 
-$arch=`dpkg --print-architecture`;
-$? && &subprocerr("dpkg --print-architecture");
+$arch = $override{Architecture} or do {
+	$arch=`dpkg --print-architecture`;
+	$? && &subprocerr("dpkg --print-architecture");
+};
 $arch =~ s/\n$//;
 
 &parsechangelog;
@@ -206,7 +208,8 @@
 if (open(X,"< $fileslistfile")) {
     while (<X>) {
         s/\n$//;
-        next if m/^([-+0-9a-z.]+)_[^_]+_\w+\.deb / && $1 eq $oppackage;
+        next if m/^([-+0-9a-z.]+)_[^_]+_(\w+)\.deb / 
+		&& ($1 eq $oppackage) && ($2 eq $arch);
         print(Y "$_\n") || &syserr("copy old entry to new files list file");
     }
 } elsif ($! != ENOENT) {



-- System Information
Debian Release: 1.3
Kernel Version: Linux eremit 2.0.29 #3 Tue Apr 8 22:33:11 CEST 1997 i586 unknown

Versions of the packages dpkg depends on:
libc5	Version: 5.4.23-3
ncurses3.0	Version: 1.9.9e-1


Changed bug title. Request was from James Troup <james@nocrew.org> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `fixed'. Request was from jdassen@wi.leidenuniv.nl to control@bugs.debian.org. (full text, mbox, link).


Severity set to `fixed'. Request was from Joel Klecker <jk@espy.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>:
Bug#9893; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Ian Jackson <ian@davenant.greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #16 received at 9893@bugs.debian.org (full text, mbox, reply):

From: Ian Jackson <ian@davenant.greenend.org.uk>
To: 9893@bugs.debian.org, Heiko Schlittermann <heiko@lotte.sax.de>
Subject: Fixed in my own tree
Date: Tue, 2 Mar 1999 22:34:36 +0000 (GMT)
forwarded 9893 ian@davenant.greenend.org.uk
quit

Heiko: you suggested a patch for the bug #9893 regarding
dpkg-gencontrol, -DArchitecture and xforms.  FYI, the fix that's going
into my new non-NMU dpkg tree (to be released in several months) is
semantically different from the fix you propose, in that it will only
affect the files list output.

Ian.


Noted your statement that bug has been forwarded to ian@davenant.greenend.org.uk. Request was from Ian Jackson <ian@davenant.greenend.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg-iwj'. Request was from Wichert Akkerman <wichert@cs.leidenuniv.nl> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug closed, ack sent to submitter - they'd better know why ! Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 19 08:46:30 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.