On Sun, May 08, 2005, Matthias Kurz wrote:

> Index: ratbox.spec
> ===================================================================
> RCS file: /v/openpkg/cvs/openpkg-src/ratbox/ratbox.spec,v
> retrieving revision 1.12
> diff -u -r1.12 ratbox.spec
> --- ratbox.spec       3 May 2005 09:46:04 -0000       1.12
> +++ ratbox.spec       8 May 2005 11:46:07 -0000
> @@ -81,6 +81,10 @@
>      %patch -p0
>
>  %build
> +    libs=
> +    case "%{l_platform -t}" in
> +        *-sunos* ) libs="$libs -lsocket -lnsl" ;;
> +    esac
>      #   build IRC server
>      ( cd ircd-ratbox-%{V_server}
>        %{l_shtool} subst \
> @@ -91,6 +95,7 @@
>        CC="%{l_cc}" \
>        CFLAGS="%{l_cflags -O}" \
>        CPPFLAGS="%{l_cppflags}" \
> +      LIBS="$libs" \
>        LDFLAGS="%{l_ldflags}" \
>        ./configure \
>            --prefix=%{l_prefix} \
> @@ -118,6 +123,7 @@
>        CC="%{l_cc}" \
>        CFLAGS="%{l_cflags -O}" \
>        CPPFLAGS="%{l_cppflags}" \
> +      LIBS="$libs" \
>        LDFLAGS="%{l_ldflags}" \
>        ./configure \
>            --prefix=%{l_prefix} \

Ah, thanks. Although I've currently no Solaris box for testing,
according to the sources, the IRCd itself should find -lsocket/-lnsl
just fine with its Autoconf checks. But Ratbox-Services misses it.
Hence, I've allowed me to just add LIBS=.. to the Ratbox-Services and
also sent a patch to the upstream author for fixing this already in
their Autoconf scripts (so we can remove our hack soon). Thanks.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to