Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149471 - problems emerging mesa-6.5.1-r1
Summary: problems emerging mesa-6.5.1-r1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 18:14 UTC by Boyan Ivanov
Modified: 2006-10-11 11:46 UTC (History)
0 users

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


Attachments
Log file of the emerge process (mesa_log.txt,4.73 KB, text/plain)
2006-09-28 18:15 UTC, Boyan Ivanov
Details
output of emerge --debug =mesa-6.5.1-r1 (emerge.txt,57.23 KB, text/plain)
2006-09-29 11:17 UTC, Boyan Ivanov
Details
the environment file (environment,127.19 KB, text/plain)
2006-09-29 16:23 UTC, Boyan Ivanov
Details
the environment file after the setup and before the unpacking phase (environment.gz,30.77 KB, application/x-gzip)
2006-09-29 18:21 UTC, Boyan Ivanov
Details
the output after adding "set -x" (emerge_mesa.txt.gz,24.28 KB, application/x-gzip)
2006-09-30 04:11 UTC, Boyan Ivanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boyan Ivanov 2006-09-28 18:14:36 UTC
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 :)
Comment 1 Boyan Ivanov 2006-09-28 18:15:37 UTC
Created attachment 98350 [details]
Log file of the emerge process
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-29 08:00:51 UTC
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().
Comment 3 Zac Medico gentoo-dev 2006-09-29 10:58:10 UTC
I'm unable to reproduce this problem.  Please attach the output of `emerge --debug =mesa-6.5.1-r1`.
Comment 4 Boyan Ivanov 2006-09-29 11:17:23 UTC
Created attachment 98392 [details]
output of emerge --debug =mesa-6.5.1-r1
Comment 5 Zac Medico gentoo-dev 2006-09-29 12:45:13 UTC
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.
Comment 6 Boyan Ivanov 2006-09-29 16:22:20 UTC
It seems to be there, but I'll attach this file also, so you can check it.
Comment 7 Boyan Ivanov 2006-09-29 16:23:51 UTC
Created attachment 98412 [details]
the environment file
Comment 8 Boyan Ivanov 2006-09-29 16:27:20 UTC
There's no file /etc/portage/bashrc and I haven't changed anything in the environment manually.
Comment 9 Zac Medico gentoo-dev 2006-09-29 16:43:16 UTC
(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.
Comment 10 Boyan Ivanov 2006-09-29 18:20:36 UTC
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.


Comment 11 Boyan Ivanov 2006-09-29 18:21:56 UTC
Created attachment 98418 [details]
the environment file after the setup and before the unpacking phase
Comment 12 Zac Medico gentoo-dev 2006-09-29 19:36:09 UTC
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.
Comment 13 Boyan Ivanov 2006-09-30 04:11:28 UTC
Created attachment 98433 [details]
the output after adding "set -x"
Comment 14 Zac Medico gentoo-dev 2006-10-07 18:52:07 UTC
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.
Comment 15 Boyan Ivanov 2006-10-08 11:26:19 UTC
But could you propose a walkthrough?
Comment 16 Zac Medico gentoo-dev 2006-10-08 12:23:32 UTC
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.
Comment 17 Boyan Ivanov 2006-10-11 11:46:12 UTC
Well, it worked after I added  CONFIG=linux-dri-x86 to the command line in that manner :
 CONFIG=linux-dri-x86 emerge -va mesa