Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 39108

Summary: debootstrap runs dpkg in such a way as to prevent proper operation
Product: Gentoo Linux Reporter: Noah <sitz>
Component: Current packagesAssignee: Heinrich Wendel (RETIRED) <lanius>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Noah 2004-01-22 21:04:08 UTC
debootstrap runs 'dpkg --print-architecture' when it's being made. On a debian system (x86), it will get 'i386', which it understands. On gentoo, a warning it thrown.

Reproducible: Always
Steps to Reproduce:
1. emerge dpkg
2. emerge debootstrap
3.

Actual Results:  
>>> Unpacking debootstrap_0.1.17.30.tar.gz to
/var/tmp/portage/debootstrap-0.1.17.30/work
>>> Source unpacked.
dpkg: warning, architecture `i686-pc-linux-gnu' not in remapping table


Expected Results:  
dpkg doesn't grok 'i686-pc-linux-gnu'. There are a couple pf possible solutions
here:

1) patch dpkg so that it understands 'i686-pc-linux-gnu'
2) patch debootstrap's Makefile to run 'dpkg --print-installation-architecture',
which outputs 'i386'

I would personally tend to lean towards option 1, since I'm not sure what
implementing #2 might break.

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.24-grsec)
=================================================================
System uname: 2.4.24-grsec i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu
x/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gnome gpm gtk g
tk2 imlib jpeg kde libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis
 opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse
 ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-22 21:15:43 UTC
and it looks like we're 19 microversions behind anyway
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-23 11:13:32 UTC
fixed that in dpkg-1.10.18 and bumped debootstrap to 0.2.23
Comment 3 Noah 2004-01-23 17:07:19 UTC
Verified; thanks for the fast response.