I can't emerge mesa-6.5.1-r1. The log is attached as a file. And here's the output of emerge --info : Portage 2.1.2_pre1-r4 (default-linux/x86/2006.1, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-suspend2-r10 i686) ================================================================= System uname: 2.6.16-suspend2-r10 i686 Intel(R) Celeron(R) M processor 1.50GHz Gentoo Base System version 1.12.5 Last Sync: Thu, 28 Sep 2006 21:50:01 +0000 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-java/java-config: 1.3.0-r2, 2.0.26 dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig confcache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo http://distfiles.gentoo.org" LC_ALL="bg_BG" LINGUAS="bg en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 apm arts berkdb bitmap-fonts cli crypt cups dlloader dri eds elibc_glibc emboss encode esd foomaticdb fortran gdbm gif glitz gpm gstreamer gtk gtk2 imlib input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog jpeg kde kdexdeltas kernel_linux libg++ libwww linguas_bg linguas_en mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev userland_GNU video_cards_fbdev video_cards_i810 video_cards_vesa vorbis xml xmms xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS There are no custom use flags for the mesa ebuild, so the problem is not in /etc/portage/package.use. If there's anything else I can do, please ask :)
Created attachment 98350 [details] Log file of the emerge process
Looks like this is another bug where portage isn't preserving variables across phases. CONFIG is set in pkg_setup() and used in src_unpack().
I'm unable to reproduce this problem. Please attach the output of `emerge --debug =mesa-6.5.1-r1`.
Created attachment 98392 [details] output of emerge --debug =mesa-6.5.1-r1
You're log shows CONFIG=linux-dri-x86 being properly set on line 290. Then it's disappeared from the environment when line 1147 is reached. Do you have any idea what might be different about your environment? Perhaps you have something in /etc/portage/bashrc? In order to troubleshoot this, you can run the following commands separately: FEATURES=noauto ebuild /usr/portage/media-libs/mesa/mesa-6.5.1-r1.ebuild setup FEATURES=noauto ebuild /usr/portage/media-libs/mesa/mesa-6.5.1-r1.ebuild unpack Check /var/tmp/portage/mesa-6.5.1-r1/temp/environment after the setup phase to see if CONFIG is still in the environment.
It seems to be there, but I'll attach this file also, so you can check it.
Created attachment 98412 [details] the environment file
There's no file /etc/portage/bashrc and I haven't changed anything in the environment manually.
(In reply to comment #6) > It seems to be there, but I'll attach this file also, so you can check it. Well, I don't see a CONFIG variable defined in that file. Which phase is that from? If it's just after setup then it means that something removed it before the end of the setup phase. We need to isolate exacly where and when this is happening.
Well, the missing CONFIG variable has beeen omitted after the unpack phase, as I see it after the setup phase : Tindor ~ # FEATURES=noauto ebuild /usr/portage/media-libs/mesa/mesa-6.5.1-r1.ebuild setup QA Notice: USE Flag 'amd64-fbsd' not in IUSE for media-libs/mesa-6.5.1-r1 QA Notice: USE Flag 'kernel_FreeBSD' not in IUSE for media-libs/mesa-6.5.1-r1 Tindor ~ # cat /var/tmp/portage/mesa-6.5.1-r1/temp/environment | grep CONFIG CONFIG=linux-dri-x86 this is at the beginning of the file in the variable section. But I'll attach this file also, just in case.
Created attachment 98418 [details] the environment file after the setup and before the unpacking phase
Please add 'set -x' on the second line of /usr/lib/portage/bin/ebuild.sh, just below '#!/bin/bash'. Then run `emerge =mesa-6.5.1-r1`. Hopefully we'll be able to trace what's going wrong with the output from that.
Created attachment 98433 [details] the output after adding "set -x"
I don't see anything in your log change the CONFIG variable after it is initially set. The sourcing and saving of the environment in /var/tmp/portage/mesa-6.5.1-r1/temp/environment seems to be normal as well. Sorry, I can't explain that behavior.
But could you propose a walkthrough?
When bash tracing is enabled (set -x), it's supposed to show everything that happens during the `source /var/tmp/portage/mesa-6.5.1-r1/temp/environment` command. We're not seeing the CONFIG variable show up again in those source commands, so something's wrong there. It seems like your /var/tmp/portage/mesa-6.5.1-r1/temp/environment is always empty for some reason.
Well, it worked after I added CONFIG=linux-dri-x86 to the command line in that manner : CONFIG=linux-dri-x86 emerge -va mesa