فهرست منبع

Require the newly-configured bind package for libraries providing the obsolete gethostbyname2(3) that libnet still depends on.

Michael Schloh von Bennewitz 24 سال پیش
والد
کامیت
35a99c20ad
1فایلهای تغییر یافته به همراه3 افزوده شده و 10 حذف شده
  1. 3 10
      libnet/libnet.spec

+ 3 - 10
libnet/libnet.spec

@@ -23,15 +23,6 @@
 ##  SUCH DAMAGE.
 ##
 
-# FIXME: Package libnet will fail on all SVR4 platforms!
-# FIXME: File src/libnet_resolve.c is broken, because it uses the function
-# FIXME: gethostbyname2(3). As defined in RFC 2133 and RFC 2553,
-# FIXME: gethostbyname2(3) is a function which was never standardized and
-# FIXME: is since long obsolete. The new (and standard) replacement is
-# FIXME: getaddrinfo(3), included in Solaris, FreeBSD, and Linux.
-# FIXME: Unfortuanately, libnet doesn't use getaddrinfo(3), and is thus
-# FIXME: doomed to fail increasingly with time.
-
 #   package information
 Name:         libnet
 Summary:      Network Packet Assembly Library
@@ -50,7 +41,7 @@ Source0:      http://www.packetfactory.net/libnet/dist/libnet-%{version}.tar.gz
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20020206, gcc, make
+BuildPreReq:  OpenPKG, openpkg >= 20020206, gcc, make, bind
 PreReq:       OpenPKG, openpkg >= 20020206
 AutoReq:      no
 AutoReqProv:  no
@@ -70,6 +61,8 @@ AutoReqProv:  no
 %build
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
+    LDFLAGS="-L%{l_prefix}/lib" \
+    LIBS="-lbind" \
     ./configure \
         --prefix=%{l_prefix}
     %{l_make} %{l_mflags -O}