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

Bug 420599

Summary: www-servers/lighttpd-1.4.31 build failure with sys-devel/automake-1.12.1
Product: Gentoo Linux Reporter: eroen <erikdenstore+gbugs>
Component: [OLD] ServerAssignee: Alex Alexander (RETIRED) <wired>
Status: RESOLVED FIXED    
Severity: normal CC: cedric.godin, dlan, gibgibon, hwoarang
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 421465    
Attachments: aclocal.out
emerge --info '=www-servers/lighttpd-1.4.31'
lighttpd automake patch fix

Description eroen 2012-06-10 23:22:20 UTC
Lighttpd fails to build if sys-devel/automake-1.12.1 is present.

Reproducible: Always

Steps to Reproduce:
1. emerge =automake-1.12.1
2. emerge =lighttpd-1.4.31
Actual Results:  
build.log:
 * Package:    www-servers/lighttpd-1.4.31
 * Repository: gentoo
 * Maintainer: wired@gentoo.org hwoarang@gentoo.org
 * USE:        amd64 bzip2 elibc_glibc fam gdbm ipv6 kernel_linux multilib pcre php ssl userland_GNU xattr zlib
 * FEATURES:   preserve-libs sandbox usersandbox
>>> Unpacking source...
>>> Unpacking lighttpd-1.4.31.tar.bz2 to /tmp/portage/www-servers/lighttpd-1.4.31/work
>>> Source unpacked in /tmp/portage/www-servers/lighttpd-1.4.31/work
>>> Preparing source in /tmp/portage/www-servers/lighttpd-1.4.31/work/lighttpd-1.4.31 ...
 * Running eautoreconf in '/tmp/portage/www-servers/lighttpd-1.4.31/work/lighttpd-1.4.31' ...
 * Running libtoolize --install --copy --force --automake ...            [ ok ]
 * Running aclocal -I m4 ...                                             [ !! ]

 * Failed Running aclocal !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /tmp/portage/www-servers/lighttpd-1.4.31/temp/aclocal.out

 * ERROR: www-servers/lighttpd-1.4.31 failed (prepare phase):
 *   Failed Running aclocal !
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_prepare
 *   environment, line 3613:  Called eautoreconf
 *   environment, line  981:  Called eaclocal
 *   environment, line  888:  Called autotools_run_tool '--at-m4flags' 'aclocal' '-I' 'm4'
 *   environment, line  621:  Called die
 * The specific snippet of code:
 *           die "Failed Running $1 !";
 * 
 * If you need support, post the output of `emerge --info '=www-servers/lighttpd-1.4.31'`,
 * the complete build log and the output of `emerge -pqv '=www-servers/lighttpd-1.4.31'`.
/usr/lib64/portage/bin/isolated-functions.sh: line 214: wait: `Failed Running aclocal !': not a pid or valid job spec
 * The complete build log is located at '/tmp/portage/www-servers/lighttpd-1.4.31/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/www-servers/lighttpd-1.4.31/temp/environment'.
 * Working directory: '/tmp/portage/www-servers/lighttpd-1.4.31/work/lighttpd-1.4.31'
 * S: '/tmp/portage/www-servers/lighttpd-1.4.31/work/lighttpd-1.4.31'

Expected Results:  
Successful install of lighttpd.

Unmerging automake-1.12.1 (so that highest present automake is 1.11.5) results in a successful build.
Comment 1 eroen 2012-06-10 23:24:35 UTC
Created attachment 314915 [details]
aclocal.out
Comment 2 eroen 2012-06-10 23:26:35 UTC
Created attachment 314917 [details]
emerge --info '=www-servers/lighttpd-1.4.31'
Comment 4 Yixun Lan archtester gentoo-dev 2012-06-14 09:05:01 UTC
I can confirm, exactly the same problem here. the output of aclocal.out is same
Comment 5 Yixun Lan archtester gentoo-dev 2012-06-14 09:47:01 UTC
Created attachment 315257 [details, diff]
lighttpd automake patch fix

see automake 1.12 release note, AM_C_PROTOTYPES is deprecated, will be removed.

http://lists.gnu.org/archive/html/info-gnu/2012-04/msg00011.html

also automake 1.12 require AM_PROG_AR

I cooked a patch, which should make lighttpd compile again.
1) remove  AM_C_PROTOTYPES
2) add AM_PROG_AR

only tested with lighttpd-1.4.31 so far

thanks!
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-06-23 08:59:08 UTC
patch looks good.  in portage.