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

Bug 363781

Summary: app-text/evince-2.32.0-r2 without gnome use flag missing dependency on gnome-base/gconf
Product: Gentoo Linux Reporter: Jimmy C. Chau <chaujc>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: VERIFIED FIXED    
Severity: normal CC: h.mth
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: the ebuild environment file
build log

Description Jimmy C. Chau 2011-04-16 03:16:30 UTC
I'm using fluxbox instead of Gnome and did not have gconf installed.  Today, when updating evince from app-text/evince-2.32.0-r1 to app-text/evince-2.32.0-r2, it it gave the following error:

...
 * Running autoconf ...                                                  [ !! ]

 * Failed Running autoconf !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/app-text/evince-2.32.0-r2/temp/autoconf.out

 * ERROR: app-text/evince-2.32.0-r2 failed (prepare phase):
 *   Failed Running autoconf !
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_prepare
 *   environment, line 3351:  Called eautoreconf
 *   environment, line  999:  Called eautoconf
 *   environment, line  935:  Called autotools_run_tool 'autoconf'
 *   environment, line  592:  Called die
 * The specific snippet of code:
 *           die "Failed Running $1 !";
 * 
 * If you need support, post the output of 'emerge --info =app-text/evince-2.32.0-r2',
 * the complete build log and the output of 'emerge -pqv =app-text/evince-2.32.0-r2'.
 * The complete build log is located at '/var/log/portage/app-text:evince-2.32.0-r2:20110416-014642.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/evince-2.32.0-r2/temp/environment'.
 * S: '/var/tmp/portage/app-text/evince-2.32.0-r2/work/evince-2.32.0'

>>> Failed to emerge app-text/evince-2.32.0-r2, Log file:

>>>  '/var/log/portage/app-text:evince-2.32.0-r2:20110416-014642.log'



/var/tmp/portage/app-text/evince-2.32.0-r2/temp/autoconf.out had the following content:
***** autoconf *****
***** PWD: /var/tmp/portage/app-text/evince-2.32.0-r2/work/evince-2.32.0
***** autoconf

configure.ac:328: error: possibly undefined macro: AM_GCONF_SOURCE_2
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.



Searching, I found a similar bug #270807, which suggested installing gconf first.  After installing (the latest stable) gnome-base/gconf-2.32.0-r1, which pulled in gnome-base/orbit-2.14.19, I was able to emerge evince successfully.  

Reproducible: Didn't try

Steps to Reproduce:
1. Not have gconf installed (and not have any other packages depending on it)
2. Update to app-text/evince-2.32.0-r2 without the gnome use flag
3. Notice error about "possibly undefined macro: AM_GCONF_SOURCE_2", which stops the update.
4. emerge -1av gconf
5. emerge -1av evince
Actual Results:  
Without gconf, which is not listed as a dependency if the gnome use flag is unset, evince will not emerge due to an error during autoconf.  

Expected Results:  
With the gnome use flag unset, evince should either emerge successfully without gconf or depend on gconf.

(I don't know whether to file this under the component Applications or Gnome)



Note that as shown below, gconf was installed when I emerged the previous version of evince.  gconf was removed after the previous version of evince was emerged; I assume that this removal of gconf was due to emerge --depclean.  

qlop -l app-text/evince
Thu Sep 16 00:40:56 2010 >>> app-text/evince-2.30.3
Fri Oct 15 20:33:37 2010 >>> app-text/evince-2.30.3
Fri Feb 25 06:05:59 2011 >>> app-text/evince-2.32.0-r1
Fri Apr 15 22:36:44 2011 >>> app-text/evince-2.32.0-r2

qlop -l gnome-base/gconf
Tue Sep 14 01:30:13 2010 >>> gnome-base/gconf-2.28.1
Fri Apr 15 22:31:59 2011 >>> gnome-base/gconf-2.32.0-r1

qlop -u gnome-base/gconf
Tue Mar 22 03:14:46 2011 <<< gnome-base/gconf-2.28.1



emerge --info =app-text/evince-2.32.0-r2':
Portage 2.1.9.42 (hardened/linux/amd64, gcc-4.4.5, glibc-2.11.3-r0, 2.6.37-gentoo-r4-2011Apr12 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-r4-2011Apr12-x86_64-Intel-R-_Core-TM-2_Duo_CPU_U9400_@_1.40GHz-with-gentoo-1.12.14
Timestamp of tree: Fri, 15 Apr 2011 22:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @BINARY-REDISTRIBUTABLE AdobeFlash-10.1 PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.netnitco.net      http://gentoo.mirrors.tds.net/gentoo    http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/     http://distfiles.gentoo.org     http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="--jobs=4 --load-average=2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/benf /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bzip2 cairo caps cjk cli consolekit cracklib crypt cups cxx dbus dri dvd exif ffmpeg flac gdbm gnutls gpm hardened iconv jpeg justify laptop mmx modules mp3 mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png ppds pppd python readline sdl session spell sse sse2 ssl ssse3 sysfs system-sqlite tcpd theora threads truetype unicode urandom v4l2 vorbis xorg xv xvmc zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en_US en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-text/evince-2.32.0-r2 was built with the following:
USE="dbus dvi (multilib) -debug -djvu -doc -gnome -gnome-keyring (-introspection) -nautilus -t1lib -tiff"



emerge -pqv =app-text/evince-2.32.0-r2:
[ebuild   R   ] app-text/evince-2.32.0-r2  USE="dbus dvi -debug -djvu -doc -gnome -gnome-keyring (-introspection) -nautilus -t1lib -tiff" 



I'll attach a copy of the build log and the environment files.
Comment 1 Jimmy C. Chau 2011-04-16 03:18:07 UTC
Created attachment 270145 [details]
the ebuild environment file
Comment 2 Jimmy C. Chau 2011-04-16 03:18:42 UTC
Created attachment 270147 [details]
build log
Comment 3 Hanno Zysik (geki) 2011-04-16 09:38:03 UTC
There is simply missing the gconf macro from filesdir for autotooling. Add in src_prepare:

# gconf macro
cp "${FILESDIR}"/gconf-2.m4 "${S}"/m4
Comment 4 Pacho Ramos gentoo-dev 2011-04-16 13:49:07 UTC
+  16 Apr 2011; Pacho Ramos <pacho@gentoo.org> evince-2.32.0-r2.ebuild:
+  gconf-2.m4 is needed for autoconf, bug #363781 by Jimmy C. Chau.
+
Comment 5 Jimmy C. Chau 2011-04-22 00:32:21 UTC
Thanks.  I unmerged gconf and evince is still able to successfully merge.