Bug 45200 - error with heartbeat 1.2.0 ebuild
Bug#: 45200 Product:  Gentoo Linux Version: 1.4 Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P4
Resolution: FIXED Assigned To: hp-cluster@gentoo.org Reported By: martin.bene@icomedias.com
Component: Ebuilds
URL: 
Summary: error with heartbeat 1.2.0 ebuild
Keywords:  
Status Whiteboard: 
Opened: 2004-03-20 02:47 0000
Description:   Opened: 2004-03-20 02:47 0000
screen output from 
ACCEPT_KEYWORDS="~x86" emerge heartbeat:

configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--with-group-name=cluster' '--with-group-id=65' '--with-ccmuser-name=cluster' '--with-ccmuser-id=65' 'CC=gcc' 'CFLAGS=-O2 -mcpu=i686 -fomit-frame-pointer' --enable-ltdl-convenience --cache-file=/dev/null --srcdir=.
configure: warning: CC=gcc: invalid host type
configure: warning: CFLAGS=-O2 -mcpu=i686 -fomit-frame-pointer: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: /bin/sh './configure' failed for libltdl

!!! ERROR: sys-cluster/heartbeat-1.2.0 failed.
!!! Function src_compile, Line 50, Exitcode 1
!!! (no error message)

Problem is triggered by 

    libtoolize --ltdl --force --copy

in makefile fixup when running stable (not ~x86) versions of 
autoconf (sys-devel/autoconf-2.58-r1)
automake (sys-devel/automake-1.7.7)
libtoolize (sys-devel/libtool-1.4.3-r4)

Fix: Heartbeat 1.2.0 needs either an explicit dependancy for libtool >= sys-devel/libtool-1.5.2-r5 or the fixup makefile needs to avoid regeneration the configs.

Using all stable packets + the following makefile fixup works for me:

fix_makefiles() {
    einfo "fixing up the Makefiles"
    sed -i -e 's:mkdir -p $(ckptvarlibdir):mkdir -p $(DESTDIR)$(ckptvarlibdir):' ${S}/telecom/checkpointd/Makefile* || die "failed to sed Makefiles"
}

------- Comment #1 From Michael Imhof 2004-03-25 04:54:49 0000 -------
okay, as heartbeat-1.2.0 is masked ~x86 i decided to add the dependency you
mentioned.

Closing this bug now.