Debian Bug report logs - #131893
dpkg: making dpkg --print-architecture more robust

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <>; Source for dpkg is src:dpkg.

Reported by: Michael Weber <>

Date: Fri, 1 Feb 2002 21:33:02 UTC

Severity: wishlist

Tags: patch

Found in version 1.9.18

Fixed in version dpkg/1.10.11

Done: Adam Heath <>

Bug is archived. No further changes may be made.

Toggle useless messages

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

Report forwarded to, Wichert Akkerman <>,
Bug#131893; Package dpkg. Full text and rfc822 format available.

Acknowledgement sent to Michael Weber <>:
New Bug report received and forwarded. Copy sent to Wichert Akkerman <>, Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Michael Weber <>
To: Debian Bug Tracking System <>
Subject: dpkg: making dpkg --print-architecture more robust
Date: Fri, 1 Feb 2002 21:42:53 +0100
[Message part 1 (text/plain, inline)]
Package: dpkg
Version: 1.9.18
Severity: wishlist
Tags: patch


As one can tell from #8241, #106793, and #106727 the current
implementation of `dpkg --print-architecture', as well as
`dpkg-architecture' (which uses the same method) is somewhat fragile,
since the architecture is parsed out of the location of libgcc.a.

I'll append a patch which uses the sole output of `gcc -dumpmachine'
(no parsing required).  This also helps when porting dpkg to
non-Debian systems.

[BTW: I tested this with various compilers between egcs-1.1.2 and

What is missing is the update of the translation files (I didn't want
to bloat the patch with that).
After applying, #8231 and #106793 can be closed as well.


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux stargate 2.4.17-xfs #1 SMP Fri Jan 18 21:42:37 CET 2002 i686
Locale: LANG=POSIX, LC_CTYPE=de_DE@euro

Versions of packages dpkg depends on:
ii  libc6                  2.2.4-7           GNU C Library: Shared libraries an
ii  libncurses5            5.2.20010318-3    Shared libraries for terminal hand
ii  libstdc++2.10-glibc2.2 1:2.95.4-0.011006 The GNU stdc++ library
[dpkg-dumpmachine.patch (text/plain, attachment)]

Information forwarded to, Dpkg Development <>:
Bug#131893; Package dpkg. Full text and rfc822 format available.

Acknowledgement sent to Adam Heath <>:
Extra info received and forwarded to list. Copy sent to Dpkg Development <>. Full text and rfc822 format available.

Message #10 received at (full text, mbox):

From: Adam Heath <>
To:, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>, <>
Subject: fixed in cvs
Date: Sat, 13 Sep 2003 17:12:08 -0500 (CDT)
tag 8241 pending
tag 106793 pending
tag 112386 pending
tag 131893 pending
tag 160447 pending
tag 173618 pending
tag 174013 pending
tag 179385 pending
tag 191261 pending
tag 196361 pending
tag 198218 pending
tag 200351 pending
tag 203782 pending
tag 203791 pending
tag 204894 pending
tag 206416 pending
tag 210285 pending

These are fixed in cvs

Tags added: pending Request was from Adam Heath <> to Full text and rfc822 format available.

Reply sent to Adam Heath <>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Michael Weber <>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #17 received at (full text, mbox):

From: Adam Heath <>
Subject: Bug#131893: fixed in dpkg 1.10.11
Date: Tue, 16 Sep 2003 14:17:07 -0400
Source: dpkg
Source-Version: 1.10.11

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.11_all.deb
  to pool/main/d/dpkg/dpkg-doc_1.10.11_all.deb
  to pool/main/d/dpkg/dpkg_1.10.11.dsc
  to pool/main/d/dpkg/dpkg_1.10.11.tar.gz
  to pool/main/d/dpkg/dpkg_1.10.11_i386.deb
  to pool/main/d/dpkg/dselect_1.10.11_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,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Adam Heath <> (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

Hash: SHA1

Format: 1.7
Date: Tue, 16 Sep 2003 12:52:11 -0500
Source: dpkg
Binary: dpkg-doc dpkg dselect dpkg-dev dpkg-static
Architecture: source all i386
Version: 1.10.11
Distribution: unstable
Urgency: low
Maintainer: Dpkg Development <>
Changed-By: Adam Heath <>
 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: 8241 37254 61156 91348 106793 111562 112386 115759 126621 127342 131893 133745 137313 150642 151845 153096 154277 154633 155822 157973 160447 161819 163621 165099 167426 169359 169619 170575 173618 174013 174971 175236 175363 175770 177753 179385 183840 191261 191810 196361 198218 199360 200351 203097 203557 203782 204123 204894 206164 206416 207259 208014 208894 210285
 dpkg (1.10.11) unstable; urgency=low
   * dpkg no longer provides any BYHAND files.  If you need the source
     tarball, use the orig.tar.gz file available in the pool.  The
     precompiled tars were hold-overs from when debs were not standard
     ar/tar files.
   * Install /usr/share/doc/dpkg/pseudo-tags, which talks about the bug
     titling we use to mark bugs for filtering in the Debian bts.
   * Updated ca.po.
   * Teach dpkg-source that ~ is legal in version numbers
   * Add build-depends on sgml-base, and increase gettext build-depends to
   * Updated config.sub and config.guess in cvs.
   * Change use of strncpy in parsedb to memcpy.  Closes: #160447
   * No longer generate helpmsgs.{cc,h}.
   * several controllib changes:
     * Moved dependency parsing logic from dpkg-checkbuilddeps.
       The dpkg-checkbuilddeps parser didn't support empty fields, while
       the controllib parser did.
     * All dependency fields parsed by support [arch]
       specifiers.  If the arch specifier doesn't apply for the current
       arch, then the item will not be added to the internal list structure.
     * Comment lines(that begin with '#') are removed during parsing.
     * Store the original casing of field names, for use in error reporting.
     * Store the original field's casing with 'o:' prepended in %fi.
         dpkg-checkbuilddeps now handles empty fields.  Closes: #111562
       * Branden Robinson <>:
         support comments(first char on line begins with '#') in
         debian/control.  Closes: #191810
       * Bastian Blank <>:
         Allow for per-arch generated dependency fields.  Closes: #170575
       * Branden Robinson <>:
         Report the original casing of field names when they are unknown.
         Closes: #177753
   * Patch dpkg-buildpackage to call debian/rules -qn build-arch, and if
     it's available, modify -B handling appropriately.  If build-arch is not
     available, then when -B was called, do *not* pass -B on to
     dpkg-checkbuilddeps.  Closes: #203097
   * Frank Lichtenheld <>:
     Apply patch, to handle missing infodir.bak, and empty files.  Closes:
   * Change standard_startup and standard_shutdown into macros.  Closes:
   * Andrew Suffield <>:
     Fix inverted test of eof in parsedb, while looking for eof after
     field name.  Closes: #198218
   * Yann Dirson <>
     Add set -e to dpkg-doc.postinst.  Closes: #191261
   * Michael Weber <>:
     dpkg --print-architecture now does gcc -dumpmachine instead of
     --print-libgcc-file-name.  Closes: #131893, #8241, #106793, #210285
   * Daniel Silverstone <>:
     Apply patch to change hashing function, and increase bin size, for
     the package database.  Closes: #206416
   * Paul Eggert <eggert@CS.UCLA.EDU>:
     Apply patch to make dpkg work with POSIX 1003.1-2001.  Closes:
   * Joey Hess <>:
     Fix "stripping trailing /" message from dpkg-statoverride.  Closes:
   * Sami Liedes <>:
     Increase filesdb bin size, and alter hashing function.  Closes:
   * Anthony Towns <>:
     Retry removing empty dirs during purge.  Closes: #112386
   * Darren Salt <>:
     Add .cvsignore to dpkg-source's default diff ignore regex.  Also fix
     missing \ escape for .deps.  Closes: #174013
   * Koblinger Egmont <>:
     Fix segfault with --status-fd.  Closes: #173618
   * Colin Watson <>,
     Andrew Suffield <>:
     Add .svn, {arch}, and .arch-ids to dpkg-source -i default regex.
     Closes: #169359
   * Falk Hueffner <>:
     Added alphaev68-linux-gnu to archtable.  Closes: #199360
   * Elie Rosenblum <>:
     Apply patch to support OpenBSD.  Closes: #154277
   * Geoff Richards <>:
     Add --config to action section, and add as EXAMPLES section.  Closes:
     #208014, #115759
   * Yann Dirson <>:
     install-info --version and --help now display on stdout.  Closes:
   * Dan Jacobson <>:
     Mention what dpkg and dpkg-query -S will not find.  Closes: #153096
   * Sebastian Leske <>:
     Mention in dpkg(8) that downgrading a package can have serious
     consequences.  Closes: #61156
   * Dan Jacobson <>:
     In dpkg-scanpackages(8), including small note that other tools might
     use the generated Packages file.  Closes: #208894
   * Warren Turkal <>:
     Fix some typos in dpkg-source(1).  Closes: #207259, #204123, #167426
   * Dan Jacobson <>:
     Alter text in dselect(8), implying that other interfaces are available
     for installing packages.  Closes: #206164.
   * Daniel Bonniot <>:
     Note in start-stop-daemon(8) that --nicelevel takes an argument.
   * Ruben Porras <>:
     Remove duplicate 'can' in deb-control(5).  Closes: #183840
   * Dan Jacobson <>:
     Fix short description in dpkg-scansources(8).  Closes: #175770
   * Zefram <>:
     In dpkg(8), move dpkg-query options to their own subsection, like
     dpkg-deb.  Closes: #174971
   * Thomas Hood <>
     Add --dry-run and --simulate as synonyms to --no-act.  Closes:
   * Junichi Uekawa <>:
     Fix wrong reference to DEB_BUILD_GNU_SYSTEM on --host in
     dpkg-architecture(1).  Closes: #163621
   * Michael Klein <>:
     s/Usuaully/Usually/ in deb-control.5.  Closes: #161819
   * Joey Hess <>:
     Removed reference in dselect(8) about recommends not being handled
     well.  Closes: #157973
   * Andrew Suffield <>:
     s/dpkg-source/dpkg-parsechangelog/ in dpkg-parsechangelog -h.
     Closes: #155822
   * Matej Vela <>:
     Unhighlight "May be repeated multiple times." in dpkg-source(1).
     Closes: #151845
   * Jordi Mallach <>:
     Make all actions in dpkg-deb -h lower case.  Closes: #150642
   * Alexander Hvostov <>:
     Add -g|--group to start-stop-daemon, and document properly.  Closes:
   * Szerb Tamas <>:
     s/THANKS/THANKS.gz/ in dpkg(8).  Closes: #91348
   * "James R. Van Zandt" <>:
     In dpkg(8), mention running dselect, install after --set-selections.
     Closes: #175236
   * Yann Dirson <>:
     Remove disabled --command-fd from help.  Closes: #169619
   * Tobias Burnus <>:
     Apply patch to update-alternatives that provides --set and --remove-all
     commands.  Closes: #133745.
   * Osamu Aoki <>:
     Add --all to update-alternatives, that calls --config on all
     alternatives.  Closes: #126621
   * Dan Jacobson <>:
     Alter --config prompt, to be more clear, that one must 'press' enter to
     accept the default.  Closes: #203557
   * Peter Moulder <>:
     Fix some -w issues in update-alternatives.  Closes: #137313
   * Eduard Bloch <>:
     Apply patch to check whether the target path exists on removing.
     Closes: #37254
   * Colin Walters <>:
     After opening files, set binmode.  Closes: #175363
 c7e30e4e0bba75b3ec78ab93bfb0d9be 636 base required dpkg_1.10.11.dsc
 223521ddf95001272e4277a3e0c88099 1550456 base required dpkg_1.10.11.tar.gz
 5e7875129eb802280a39bb1e52de6d9b 1127996 base required dpkg_1.10.11_i386.deb
 7109eeca641fe77778b3f09e56b8f83f 94706 base required dselect_1.10.11_i386.deb
 4543b320c5c1812655cf3f21bd0fc1d2 112472 utils standard dpkg-dev_1.10.11_all.deb
 4f180e7a2a5745f9bae370e085a04a08 10638 doc optional dpkg-doc_1.10.11_all.deb

Version: GnuPG v1.2.1 (GNU/Linux)


Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Thu Apr 24 02:08:35 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.