Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79019 - xorg-x11-6.8.0-r4 multiple definitions in host.def
Summary: xorg-x11-6.8.0-r4 multiple definitions in host.def
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-21 16:19 UTC by Graham Murray
Modified: 2005-01-21 18:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix multiple host.def entries (xorg.diff,727 bytes, patch)
2005-01-21 16:22 UTC, Graham Murray
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Murray 2005-01-21 16:19:10 UTC
The xorg-x11-6.8.0-r4 ebuild calls use_build() to set definitions in host.def. The ones for x86 are within a 'if use x86' conditional block. This causes the correct values of 'HasMMXSupport' etc to be added to host.def defending on the use flags. But this block of code is followed immediately by use_build() calls which have amd64 as the first parameter, which causes all of the HasXXX lines to be appended to host.def again with a value 'NO' (as amd64 is not defined).

I think that this block of code in the ebuild should be within a 'if use amd64' block.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




 emerge --info
Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 12 2004, 13:35:10)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -mtune=pentium3 -pipe -fstack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -mtune=pentium3 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr ftp://mirror.nutsmaas.nl/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.easynet.nl/mirror/gentoo/
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 X aalib acl aim alsa apache2 apm arts avi bash-completion berkdb
bitmap-fonts bonobo bzlib caps cdparanoia cdr crypt ctype cups curl curlwrappers
divx4linux doc dvd dvdr emacs encode esd exif f77 faac fam fbcon flac
font-server foomaticdb fortran gdbm gif gmp gnome gnutls gphoto2 gpm gstreamer
gtk gtk2 gtkhtml guile iconv icq imagemagick imlib ipv6 jabber java jce jpeg
junit kde lcms leim libg++ libwww live lm_sensors mad mikmod mmx mng motif
mozilla mozsvg mozxmlterm mpeg msn native ncurses network nls nptl offensive
oggvorbis opengl oscar oss pam pcntl pcre pdflib perl png posix postgres python
qt quicktime readline recode sdl shared sharedmem slang snmp sockets speex spell
sse ssl svg svga sysvipc tcltk tcpd tetex theora threads tiff truetype
truetype-fontstype1 type1-fonts unicode usb utf8 wmf wxwindows xine xml xml2
xmms xv yahoo zlib linguas_en_GB"
Unset:  LDFLAGS
Comment 1 Graham Murray 2005-01-21 16:22:30 UTC
Created attachment 49150 [details, diff]
patch to fix multiple host.def entries

This patch fixes the problem, but may not be the optimal solution
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-21 18:17:50 UTC
Woops.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-21 18:21:47 UTC
Good catch. Fixed in CVS.