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

Bug 331407

Summary: dev-libs/glib-2.24.1-r1: Raise gtk-doc-am depend (to avoid automake failure)
Product: Gentoo Linux Reporter: marlon
Component: [OLD] UnspecifiedAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: ainsaar, gejzer, james, justin.t.riley, prefix, rabbe
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description marlon 2010-08-06 09:37:00 UTC
emerging of glib-2.24.1-r1 fails due to automake errors.

 * Failed Running automake !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /home/portage/dev-libs/glib-2.24.1-r1/temp/automake.out


Reproducible: Always

Steps to Reproduce:
1. emerge glib

Actual Results:  
 * Failed Running automake !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /home/portage/dev-libs/glib-2.24.1-r1/temp/automake.out



/home/portage/dev-libs/glib-2.24.1-r1/temp/automake.out

***** automake *****
***** PWD: /home/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1
***** automake --add-missing --copy

gtk-doc.make:53: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:122:   `gtk-doc.make' included from here
gtk-doc.make:58: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:122:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/gio/Makefile.am:122:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/gio/Makefile.am:1:   `Makefile.decl' included from here
gtk-doc.make:53: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/reference/glib/Makefile.am:79:   `gtk-doc.make' included from here
gtk-doc.make:58: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/reference/glib/Makefile.am:79:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/glib/Makefile.am:79:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/glib/Makefile.am:2:   `Makefile.decl' included from here
docs/reference/glib/Makefile.am:98: `%'-style pattern rules are a GNU make extension
gtk-doc.make:53: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
gtk-doc.make:58: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ...
docs/reference/gobject/Makefile.am:61:   `gtk-doc.make' included from here
Makefile.decl:8: ... `EXTRA_DIST' previously defined here
docs/reference/gobject/Makefile.am:2:   `Makefile.decl' included from here
docs/reference/gobject/Makefile.am:74: `%'-style pattern rules are a GNU make extension


emerge --info =dev-libs/glib-2.24.1-r1
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-gentoo-r7 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 06 Aug 2010 08:45:02 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/linux/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l5"
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="/home"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 sse3 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

emerge -pqv =dev-libs/glib-2.24.1-r1
[ebuild     U ] dev-libs/glib-2.24.1-r1 [2.22.5] USE="-debug -doc -fam -hardened (-selinux) -xattr

/home/portage/dev-libs/glib-2.24.1-r1/temp/build.log
 * CPV:  dev-libs/glib-2.24.1-r1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
>>> Unpacking source...
>>> Unpacking glib-2.24.1.tar.bz2 to /home/portage/dev-libs/glib-2.24.1-r1/work
>>> Source unpacked in /home/portage/dev-libs/glib-2.24.1-r1/work
>>> Preparing source in /home/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1 ...
 * Applying glib-2.18.1-workaround-gio-test-failure-without-userpriv.patch ...                                                                                                                         [ ok ]
 * Applying glib-2.12.12-fbsd.patch ...                                                                                                                                                                [ ok ]
 * Applying glib-2.24-punt-python-check.patch ...                                                                                                                                                      [ ok ]
 * Applying glib-2.24-assert-test-failure.patch ...                                                                                                                                                    [ ok ]
 * Running eautoreconf in '/home/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1' ...
 * Running aclocal ...                                                                                                                                                                                 [ ok ]
 * Running libtoolize --copy --force --install --automake ...                                                                                                                                          [ ok ]
 * Running aclocal ...                                                                                                                                                                                 [ ok ]
 * Running autoconf ...                                                                                                                                                                                [ ok ]
 * Running autoheader ...                                                                                                                                                                              [ ok ]
 * Running automake --add-missing --copy ...                                                                                                                                                           [ !! ]

 * Failed Running automake !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /home/portage/dev-libs/glib-2.24.1-r1/temp/automake.out

 * ERROR: dev-libs/glib-2.24.1-r1 failed:
 *   Failed Running automake !
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_prepare
 *   environment, line 3234:  Called eautoreconf
 *   environment, line 1026:  Called eautomake
 *   environment, line  995:  Called autotools_run_tool 'automake' '--add-missing' '--copy'
 *   environment, line  496:  Called die
 * The specific snippet of code:
 *           die "Failed Running $1 !";
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.24.1-r1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.24.1-r1'.
 * The complete build log is located at '/home/portage/dev-libs/glib-2.24.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/home/portage/dev-libs/glib-2.24.1-r1/temp/environment'.
 * S: '/home/portage/dev-libs/glib-2.24.1-r1/work/glib-2.24.1'
Comment 1 Siim Ainsaar 2010-08-06 10:42:02 UTC
Upgrading dev-util/gtk-doc-am from 1.11 to 1.15 fixed the issue for me. Perhaps add a dependency on >=dev-util/gtk-doc-am-1.15 to dev-libs/glib? I haven't tried whether dev-util/gtk-doc-am-1.13 also works.
Comment 2 marlon 2010-08-06 11:00:12 UTC
yes, that did the trick! Using >=dev-util/gtk-doc-am-1.15 allows me to compile glib-2.24.1-r1
Comment 3 Johan Bergström 2010-08-15 17:24:02 UTC
*** Bug 332849 has been marked as a duplicate of this bug. ***
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-08-15 20:53:11 UTC
using gtk-doc-am-1.13 here, it didn't fail. Could you try again with this revision ?
Comment 5 Johan Bergström 2010-08-18 15:43:53 UTC
*** Bug 333279 has been marked as a duplicate of this bug. ***
Comment 6 Mike Haller 2010-08-20 12:37:04 UTC
Upgrading to dev-util/gtk-doc-am-1.15 worked for me, too.
Comment 7 Pacho Ramos gentoo-dev 2010-08-20 15:59:46 UTC
gtk-doc-1.13 should be enough, but would also be interesting to be able to check other gnome apps since this update is probably needed for other ebuilds :-/
Comment 8 Pacho Ramos gentoo-dev 2010-08-31 12:58:50 UTC
+  31 Aug 2010; Pacho Ramos <pacho@gentoo.org> -glib-2.22.2.ebuild,
+  -glib-2.24.1.ebuild, glib-2.24.1-r1.ebuild:
+  Raise gtk-doc requeriment as reported in bug #331407 by Siim Ainsaar,
+  marlon and others. Drop old testing versions.
+
Comment 9 cilly 2010-11-11 10:26:18 UTC
I am not sure, if this is the correct solution.

The problem was inherited while adding eautoreconf, see bug #267603.

The autogen.sh script which is called by eautoreconf & automake does not honor the useflag -doc.

In my opinion, the configure options inherited by useflags should also be passed to autogen.sh. This would solve the hassle with useflag -doc.

Comment 10 Asfand Yar Qazi 2011-04-07 08:17:54 UTC
Unfortunately, it doesn't work for me.  it appears on a clean gentoo-prefix installation, gtk-doc-am does not even exist,and I had to install it first.
Comment 11 Pacho Ramos gentoo-dev 2011-04-07 09:13:45 UTC
You will need to provide updated logs then with the failure
Comment 12 JTRiley 2011-04-09 01:46:21 UTC
(In reply to comment #10)
> Unfortunately, it doesn't work for me.  it appears on a clean gentoo-prefix
> installation, gtk-doc-am does not even exist,and I had to install it first.

Same here on gentoo-prefix (mac osx 10.6.7). For me, the gtk-doc-am ebuild exists in the tree but is not pulled in by glib. I had to install gtk-doc-am manually to get the automake phase to succeed and for glib to continue the build.
Comment 13 Pacho Ramos gentoo-dev 2011-04-09 10:58:46 UTC
As you can see in DEPEND of glib:2 ebuilds, gtk-doc-am is already listed, then, the problem seems to be on other side (maybe portage used in prefix?)
Comment 14 Fabian Groffen gentoo-dev 2011-04-09 18:18:35 UTC
You guys should have opened a new bug, instead of reopening an ancient one not dealing with the same issue (you appear to be on Gentoo Prefix, and obviously you use a newer version).

In this case, the Prefix tree was behind gx86, so this commit wasn't in there yet:
  26 Mar 2011; Gilles Dartiguelongue <eva@gentoo.org> -glib-2.22.5.ebuild,
  -glib-2.24.1-r1.ebuild, -glib-2.28.3.ebuild, glib-2.28.4.ebuild:
  Re-add gtk-doc-am to DEPEND, bug #360581. Add changes commited to 2.26
  ebuild. Drop old revisions.

I synced it now, and suggest closing this bug again.

(Sorry Marlon for the spam ;) )
Comment 15 Pacho Ramos gentoo-dev 2011-04-09 19:36:49 UTC
Thanks a lot Fabian