Summary: | net-misc/arpd fails to build with dev-libs/libevent[-static-libs] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Michael Weber (RETIRED) <xmw> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Diego Elio Pettenò (RETIRED)
2010-09-15 12:06:54 UTC
The compiled/linked arpd binary is dynamic linked, no mather if libevent.a exists or not. So I'll grab this package and apply --- configure 2010-09-17 00:15:29.718871591 +0200 +++ configure 2010-09-17 00:16:30.837597154 +0200 @@ -2205,18 +2205,18 @@ *) echo "$as_me:2206: result: $withval" >&5 echo "${ECHO_T}$withval" >&6 - if test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then + if test -f $withval/include/event.h -a -f $withval/lib/libevent.so; then owd=`pwd` if cd $withval; then withval=`pwd`; cd $owd; fi EVENTINC="-I$withval/include" EVENTLIB="-L$withval/lib -levent" - elif test -f $withval/event.h -a -f $withval/libevent.a; then + elif test -f $withval/event.h -a -f $withval/libevent.so; then owd=`pwd` if cd $withval; then withval=`pwd`; cd $owd; fi EVENTINC="-I$withval" EVENTLIB="-L$withval -levent" else - { { echo "$as_me:2219: error: event.h or libevent.a not found in $withval" >&5 + { { echo "$as_me:2219: error: event.h or libevent.so not found in $withval" >&5 echo "$as_me: error: event.h or libevent.a not found in $withval" >&2;} { (exit 1); exit 1; }; } fi I Hope this is ok. Michael Can't you fix it properly (that is just _not_ how you use autotools) and send it upstream? Were would i find a autotools check for libevent?! I've missed the precence of the configure.in, i would apply io arpd # diff -ru configure.in.orig configure.in --- configure.in.orig 2003-02-09 19:30:33.000000000 +0100 +++ configure.in 2010-09-17 00:33:36.138294836 +0200 @@ -62,7 +62,7 @@ ;; *) AC_MSG_RESULT($withval) - if test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then + if test -f $withval/include/event.h -a -f $withval/lib/libevent.so; then owd=`pwd` if cd $withval; then withval=`pwd`; cd $owd; fi EVENTINC="-I$withval/include" io arpd # plus eautoreconf from autotools, ok? (conntact me on IRC any time you like). Michael That's better for patching in Gentoo for sure. As for a pre-cooked libevent test, I guess it's easier if I come up with one tomorrow (right now it's unlikely I can come up with one and test), and send it to autoconf archive for future reference. |