From 38ccbb4d1629c2ff9def009972b9ebd48c0259cd Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 13 Jan 2001 03:32:07 +0000 Subject: [PATCH] fix gmp detection bug; 1.0.7 will have this fix included --- security/nessus/Makefile | 4 +- .../patch-nessus-libraries_libpeks_configure | 159 ++++++++++++++++++ ...atch-nessus-libraries_libpeks_configure_in | 29 ++++ 3 files changed, 190 insertions(+), 2 deletions(-) create mode 100644 security/nessus/patches/patch-nessus-libraries_libpeks_configure create mode 100644 security/nessus/patches/patch-nessus-libraries_libpeks_configure_in diff --git a/security/nessus/Makefile b/security/nessus/Makefile index feed12a3e1d..dbf00bfc5a3 100644 --- a/security/nessus/Makefile +++ b/security/nessus/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.17 2000/12/28 16:07:05 matt Exp $ +# $OpenBSD: Makefile,v 1.18 2001/01/13 03:32:07 matt Exp $ PKGNAME= nessus-${VERS} @@ -36,7 +36,7 @@ FLAVORS=no_x11 FLAVOR?= CONFIGURE_STYLE=gnu -CONFIGURE_ARGS+=--localstatedir=/var +CONFIGURE_ARGS+=--localstatedir=/var --enable-gmp=${LOCALBASE} LIB_DEPENDS= gmp.4.1::devel/gmp diff --git a/security/nessus/patches/patch-nessus-libraries_libpeks_configure b/security/nessus/patches/patch-nessus-libraries_libpeks_configure new file mode 100644 index 00000000000..fe7e65392de --- /dev/null +++ b/security/nessus/patches/patch-nessus-libraries_libpeks_configure @@ -0,0 +1,159 @@ +$OpenBSD: patch-nessus-libraries_libpeks_configure,v 1.1 2001/01/13 03:32:07 matt Exp $ +--- nessus-libraries/libpeks/configure.orig Fri Oct 6 05:32:04 2000 ++++ nessus-libraries/libpeks/configure Fri Jan 12 21:19:18 2001 +@@ -890,9 +890,9 @@ fi + # can we use gmp as provided by the os ? + unset gmplink + case $enable_gmp in ''|yes) +- echo $ac_n "checking for mp_set_memory_functions in -lgmp""... $ac_c" 1>&6 +-echo "configure:895: checking for mp_set_memory_functions in -lgmp" >&5 +-ac_lib_var=`echo gmp'_'mp_set_memory_functions | sed 'y%./+-%__p_%'` ++ echo $ac_n "checking for __gmp_set_memory_functions in -lgmp""... $ac_c" 1>&6 ++echo "configure:895: checking for __gmp_set_memory_functions in -lgmp" >&5 ++ac_lib_var=`echo gmp'_'__gmp_set_memory_functions | 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 +@@ -904,10 +904,10 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -930,9 +930,9 @@ else + echo "$ac_t""no" 1>&6 + fi + +- echo $ac_n "checking for mp_set_memory_functions in -lgmp2""... $ac_c" 1>&6 +-echo "configure:935: checking for mp_set_memory_functions in -lgmp2" >&5 +-ac_lib_var=`echo gmp2'_'mp_set_memory_functions | sed 'y%./+-%__p_%'` ++ echo $ac_n "checking for __gmp_set_memory_functions in -lgmp2""... $ac_c" 1>&6 ++echo "configure:935: checking for __gmp_set_memory_functions in -lgmp2" >&5 ++ac_lib_var=`echo gmp2'_'__gmp_set_memory_functions | 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 +@@ -944,10 +944,10 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -970,9 +970,9 @@ else + echo "$ac_t""no" 1>&6 + fi + +- echo $ac_n "checking for mp_set_memory_functions in -lgmp3""... $ac_c" 1>&6 +-echo "configure:975: checking for mp_set_memory_functions in -lgmp3" >&5 +-ac_lib_var=`echo gmp3'_'mp_set_memory_functions | sed 'y%./+-%__p_%'` ++ echo $ac_n "checking for __gmp_set_memory_functions in -lgmp3""... $ac_c" 1>&6 ++echo "configure:975: checking for __gmp_set_memory_functions in -lgmp3" >&5 ++ac_lib_var=`echo gmp3'_'__gmp_set_memory_functions | 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 +@@ -984,10 +984,10 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -1046,9 +1046,9 @@ else + echo "$ac_t""from $gmpsrc (configured)" 1>&6 + + gmpldflags="-L$gmpsrc -L$gmpsrc/lib" +- echo $ac_n "checking for mp_set_memory_functions in -lgmp""... $ac_c" 1>&6 +-echo "configure:1051: checking for mp_set_memory_functions in -lgmp" >&5 +-ac_lib_var=`echo gmp'_'mp_set_memory_functions | sed 'y%./+-%__p_%'` ++ echo $ac_n "checking for __gmp_set_memory_functions in -lgmp""... $ac_c" 1>&6 ++echo "configure:1051: checking for __gmp_set_memory_functions in -lgmp" >&5 ++ac_lib_var=`echo gmp'_'__gmp_set_memory_functions | 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 +@@ -1060,10 +1060,10 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -1086,9 +1086,9 @@ else + echo "$ac_t""no" 1>&6 + fi + +- echo $ac_n "checking for mp_set_memory_functions in -lgmp2""... $ac_c" 1>&6 +-echo "configure:1091: checking for mp_set_memory_functions in -lgmp2" >&5 +-ac_lib_var=`echo gmp2'_'mp_set_memory_functions | sed 'y%./+-%__p_%'` ++ echo $ac_n "checking for __gmp_set_memory_functions in -lgmp2""... $ac_c" 1>&6 ++echo "configure:1091: checking for __gmp_set_memory_functions in -lgmp2" >&5 ++ac_lib_var=`echo gmp2'_'__gmp_set_memory_functions | 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 +@@ -1100,10 +1100,10 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -1126,9 +1126,9 @@ else + echo "$ac_t""no" 1>&6 + fi + +- echo $ac_n "checking for mp_set_memory_functions in -lgmp3""... $ac_c" 1>&6 +-echo "configure:1131: checking for mp_set_memory_functions in -lgmp3" >&5 +-ac_lib_var=`echo gmp3'_'mp_set_memory_functions | sed 'y%./+-%__p_%'` ++ echo $ac_n "checking for __gmp_set_memory_functions in -lgmp3""... $ac_c" 1>&6 ++echo "configure:1131: checking for __gmp_set_memory_functions in -lgmp3" >&5 ++ac_lib_var=`echo gmp3'_'__gmp_set_memory_functions | 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 +@@ -1140,10 +1140,10 @@ cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then diff --git a/security/nessus/patches/patch-nessus-libraries_libpeks_configure_in b/security/nessus/patches/patch-nessus-libraries_libpeks_configure_in new file mode 100644 index 00000000000..55e096a8d09 --- /dev/null +++ b/security/nessus/patches/patch-nessus-libraries_libpeks_configure_in @@ -0,0 +1,29 @@ +$OpenBSD: patch-nessus-libraries_libpeks_configure_in,v 1.1 2001/01/13 03:32:07 matt Exp $ +--- nessus-libraries/libpeks/configure.in.orig Fri Oct 6 05:32:03 2000 ++++ nessus-libraries/libpeks/configure.in Fri Jan 12 21:09:28 2001 +@@ -87,9 +87,9 @@ AC_ARG_ENABLE(gmp,[ --enable-gmp[=/path + # can we use gmp as provided by the os ? + unset gmplink + case $enable_gmp in ''|yes) +- AC_CHECK_LIB(gmp,mp_set_memory_functions,gmplink=-lgmp,,$gmpldflags) +- AC_CHECK_LIB(gmp2,mp_set_memory_functions,gmplink=-lgmp2,,$gmpldflags) +- AC_CHECK_LIB(gmp3,mp_set_memory_functions,gmplink=-lgmp3,,$gmpldflags) ++ AC_CHECK_LIB(gmp,__gmp_set_memory_functions,gmplink=-lgmp,,$gmpldflags) ++ AC_CHECK_LIB(gmp2,__gmp_set_memory_functions,gmplink=-lgmp2,,$gmpldflags) ++ AC_CHECK_LIB(gmp3,__gmp_set_memory_functions,gmplink=-lgmp3,,$gmpldflags) + esac + + # config options consistency checks +@@ -125,9 +125,9 @@ else + AC_MSG_RESULT([from $gmpsrc (configured)]) + + gmpldflags="-L$gmpsrc -L$gmpsrc/lib" +- AC_CHECK_LIB(gmp,mp_set_memory_functions,gmplink=-lgmp,,$gmpldflags) +- AC_CHECK_LIB(gmp2,mp_set_memory_functions,gmplink=-lgmp2,,$gmpldflags) +- AC_CHECK_LIB(gmp3,mp_set_memory_functions,gmplink=-lgmp3,,$gmpldflags) ++ AC_CHECK_LIB(gmp,__gmp_set_memory_functions,gmplink=-lgmp,,$gmpldflags) ++ AC_CHECK_LIB(gmp2,__gmp_set_memory_functions,gmplink=-lgmp2,,$gmpldflags) ++ AC_CHECK_LIB(gmp3,__gmp_set_memory_functions,gmplink=-lgmp3,,$gmpldflags) + test -z "$gmplink" && AC_MSG_ERROR([ + *** You loose - the gmp lib was not found at $gmpsrc]) +