Bug 126469 - media-video/totem-1.4.0 fails to build with confcache
Bug#: 126469 Product:  Gentoo Linux Version: 2006.0 Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: flameeyes@gentoo.org Reported By: jdaluz@gmail.com
Component: GNOME
URL: 
Summary: media-video/totem-1.4.0 fails to build with confcache
Keywords:  
Status Whiteboard: 
Opened: 2006-03-16 16:11 0000
Description:   Opened: 2006-03-16 16:11 0000
Updating totem to 1.4.0, I get the following error if confcache is in FEATURES:

>>> Compiling source in /var/tmp/portage/totem-1.4.0/work/totem-1.4.0 ...
 * econf: updating totem-1.4.0/config.guess with
/usr/share/gnuconfig/config.guess
 * econf: updating totem-1.4.0/config.sub with /usr/share/gnuconfig/config.sub
/usr/bin/confcache --confcache-ignore /var/tmp/ccache:/var/tmp/.distcc
--confcache-dir /var/tmp/confcache ./configure --prefix=/usr
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib i
--disable-vanity --disable-gtk --with-dbus --enable-nautilus --disable-lirc
--disable-mozilla --without-mozilla --disable-nvtv --enable-gstreamer=0.10
MOZILLA_PLUGINDIR=/usr/lib64/nsbrowser --enable-debug=yes --disable-gtk-doc
--libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
configure: WARNING: you should use --build, --host, --target
configure: loading cache config.cache
configure: error: `target_alias' was not set in the previous run
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm config.cache' and start over

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/totem-1.4.0/work/totem-1.4.0/config.log

!!! ERROR: media-video/totem-1.4.0 failed.

The build succeeds if confcache is disabled.

Portage 2.1_pre6-r3 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r0,
2.6.15-ck7 x86_64)
=================================================================
System uname: 2.6.15-ck7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1, 2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -ffriend-injection"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks metadata-transfer nostrip
sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/xgl-coffee /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2
cairo cdr cli crypt ctype cups dba dbus debug dri dvd dvdr eds emboss encode
esd expat fastbuild firefox flac foomaticdb force-cgi-redirect fortran ftp gd
gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap
lzw lzw-tiff mad memlimit mono mozilla mp3 mpeg ncurses nls nptl nptlonly ogg
opengl pam pcre pdflib perl pic png posix python qt quicktime readline ruby
samba sdl session simplexml soap sockets spell spl sqlite ssl tcpd theora tiff
tokenizer truetype truetype-fonts type1-fonts usb vorbis xml xml2 xpm xsl xv
zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev
kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2006-03-16 16:17:11 0000 -------
there's a spurious "i" in the middle, that might be the problem.
Can you grep target_alias on /var/tmp/confcache/config.cache ?

------- Comment #2 From Jose daLuz 2006-03-16 16:23:43 0000 -------
Created an attachment (id=82327) [details]
config.log

This may no longer be valid, I have other packages building with confcache
enabled:
grep target_alias /var/tmp/confcache/config.cache
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_target_alias=${ac_cv_target_alias=x86_64-pc-linux-gnu}

Let me know if this is no good and a little later I will reproduce the error
and grep config.cache then.

------- Comment #3 From Diego E. 'Flameeyes' Pettenò 2006-03-16 16:30:41 0000 -------
You continue having errors when building totem also if you merged something
else? If it's this way, try editing the ebuild and remove the i before
${GCONF2} in the set of GCONF2 itself, and see if that works.

------- Comment #4 From Jose daLuz 2006-03-16 16:57:52 0000 -------
(In reply to comment #3)
> You continue having errors when building totem also if you merged something
> else? 
Yes
>If it's this way, try editing the ebuild and remove the i before
> ${GCONF2} in the set of GCONF2 itself, and see if that works.
> 
Yes, getting rid of that "i" allows it to build with confcache.

------- Comment #5 From Diego E. 'Flameeyes' Pettenò 2006-03-16 17:07:46 0000 -------
Thanks for testing, I've removed it and committed to portage.