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

Bug 416967

Summary: [x11 overlay] x11-libs/xcb-utils fails during autotools-utils_autoreconf due to missing ltmain.sh
Product: Gentoo Linux Reporter: Chí-Thanh Christopher Nguyễn <chithanh>
Component: New packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: mgorny, reavertm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 417865    
Bug Blocks:    
Attachments: xcb-util-9999.ebuild

Description Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-21 20:31:44 UTC
A recent upstream change causes eautoreconf run to fail in x11-libs/xcb-util-9999::x11 and related packages.

 * Running aclocal -I m4 ...                                    [ ok ]
 * Running autoconf ...                                         [ ok ]
 * Running automake --add-missing --copy --foreign ...          [ !! ]

 * Failed Running automake !

/var/tmp/portage/x11-libs/xcb-util-9999/temp/automake.out:
---
***** automake *****
***** PWD: /var/tmp/portage/x11-libs/xcb-util-9999/work/xcb-util-9999
***** automake --add-missing --copy --foreign

configure.ac:8: installing `./config.guess'
configure.ac:8: installing `./config.sub'
configure.ac:5: installing `./install-sh'
configure.ac:8: required file `./ltmain.sh' not found
configure.ac:5: installing `./missing'
src/Makefile.am: installing `./depcomp'
---

upstream autogen.sh contains the line
autoreconf -v --install || exit 1
It was suggested on IRC that the missing --install is responsible for the failure.
Comment 1 SpanKY gentoo-dev 2012-05-21 20:47:27 UTC
attach the ebuild for me to `ebuild ... prepare`
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-21 20:51:43 UTC
Created attachment 312593 [details]
xcb-util-9999.ebuild
Comment 3 SpanKY gentoo-dev 2012-05-21 21:24:30 UTC
you aren't using autotools.eclass:eautoreconf().  you're probably using the less reliable logic from autotools-utils.eclass.  when i manually tell the ebuild to use eautoreconf, things work fine.

not base-system's problem
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-21 21:56:12 UTC
mgorny, reavertm: do you have any insight in this? If I modify the following part of autotools-utils.eclass

        if [[ $(autotools_check_macro AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT) ]]
        then
                _elibtoolize --copy --force --install
        else
                eaclocal
        fi

to always call elibtoolize then it builds successfully.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-22 06:03:22 UTC
Eh, they've moved their libtool call to a separate macro file. Dumb.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-06-06 17:20:39 UTC
This should be fixed now with switch to regular eautoreconf. Please sync the tree in a while and re-test.