summaryrefslogtreecommitdiff
path: root/lang/python/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-09-10 20:59:06 +0000
committerwiz <wiz@pkgsrc.org>2000-09-10 20:59:06 +0000
commit691319fe54fd0815f7ea0fee4ba55b13134fd53e (patch)
tree6a2ecd364477ebb8a59829b463b1fcd3574aeef2 /lang/python/patches
parentccc699d4c7157c3829838ca724cc0dbfc8b72f0f (diff)
downloadpkgsrc-691319fe54fd0815f7ea0fee4ba55b13134fd53e.tar.gz
Don't check for libnet (we're not BeOS, after all). Addresses pkg/9005.
Diffstat (limited to 'lang/python/patches')
-rw-r--r--lang/python/patches/patch-ab14
-rw-r--r--lang/python/patches/patch-ac53
2 files changed, 67 insertions, 0 deletions
diff --git a/lang/python/patches/patch-ab b/lang/python/patches/patch-ab
new file mode 100644
index 00000000000..561d98ece96
--- /dev/null
+++ b/lang/python/patches/patch-ab
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.4 2000/09/10 20:59:07 wiz Exp $
+
+If libnet is installed, this check results in a link error. -- wiz
+
+--- configure.in.orig Sat Apr 10 18:01:48 1999
++++ configure.in
+@@ -548,7 +548,6 @@
+ *)
+ AC_CHECK_LIB(nsl, t_open, [LIBS="-lnsl $LIBS"]) # SVR4
+ AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets
+-AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS
+ ;;
+ esac
+
diff --git a/lang/python/patches/patch-ac b/lang/python/patches/patch-ac
new file mode 100644
index 00000000000..f3e23c4cbe1
--- /dev/null
+++ b/lang/python/patches/patch-ac
@@ -0,0 +1,53 @@
+$NetBSD: patch-ac,v 1.4 2000/09/10 20:59:07 wiz Exp $
+
+If libnet is installed, this check results in a link error. -- wiz
+
+--- configure.orig Sat Apr 10 18:02:18 1999
++++ configure
+@@ -2499,46 +2499,6 @@
+ echo "$ac_t""no" 1>&6
+ fi
+ # SVR4 sockets
+-echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
+-echo "configure:2504: checking for socket in -lnet" >&5
+-ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
+-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- ac_save_LIBS="$LIBS"
+-LIBS="-lnet $LIBS $LIBS"
+-cat > conftest.$ac_ext <<EOF
+-#line 2512 "configure"
+-#include "confdefs.h"
+-/* Override any gcc2 internal prototype to avoid an error. */
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char socket();
+-
+-int main() {
+-socket()
+-; return 0; }
+-EOF
+-if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=yes"
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=no"
+-fi
+-rm -f conftest*
+-LIBS="$ac_save_LIBS"
+-
+-fi
+-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+- echo "$ac_t""yes" 1>&6
+- LIBS="-lnet $LIBS"
+-else
+- echo "$ac_t""no" 1>&6
+-fi
+- # BeOS
+ ;;
+ esac
+