66 lines
2.6 KiB
Diff
66 lines
2.6 KiB
Diff
|
From Panu Matilainen: update the code to work with rpm-4.9
|
||
|
I've applied this patch also upstream.
|
||
|
|
||
|
diff -up net-snmp-5.6.1/configure.rpm49 net-snmp-5.6.1/configure
|
||
|
--- net-snmp-5.6.1/configure.rpm49 2011-01-14 15:42:47.000000000 +0200
|
||
|
+++ net-snmp-5.6.1/configure 2011-01-14 15:43:09.000000000 +0200
|
||
|
@@ -27418,9 +27418,9 @@ $as_echo "$netsnmp_cv_func_rpmdbOpen__rp
|
||
|
|
||
|
# now check for rpm using the appropriate libraries.
|
||
|
|
||
|
- { $as_echo "$as_me:$LINENO: checking for library containing rpmGetFilesystemList" >&5
|
||
|
-$as_echo_n "checking for library containing rpmGetFilesystemList... " >&6; }
|
||
|
-if test "${netsnmp_cv_func_rpmGetFilesystemList__rpmlibs+set}" = set; then
|
||
|
+ { $as_echo "$as_me:$LINENO: checking for library containing rpmReadConfigFiles" >&5
|
||
|
+$as_echo_n "checking for library containing rpmReadConfigFiles... " >&6; }
|
||
|
+if test "${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs+set}" = set; then
|
||
|
$as_echo_n "(cached) " >&6
|
||
|
else
|
||
|
netsnmp_func_search_save_LIBS="$LIBS"
|
||
|
@@ -27441,11 +27441,11 @@ cat >>conftest.$ac_ext <<_ACEOF
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
#endif
|
||
|
-char rpmGetFilesystemList ();
|
||
|
+char rpmReadConfigFiles ();
|
||
|
int
|
||
|
main ()
|
||
|
{
|
||
|
-return rpmGetFilesystemList ();
|
||
|
+return rpmReadConfigFiles ();
|
||
|
;
|
||
|
return 0;
|
||
|
}
|
||
|
@@ -27491,11 +27491,11 @@ cat >>conftest.$ac_ext <<_ACEOF
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
#endif
|
||
|
-char rpmGetFilesystemList ();
|
||
|
+char rpmReadConfigFiles ();
|
||
|
int
|
||
|
main ()
|
||
|
{
|
||
|
-return rpmGetFilesystemList ();
|
||
|
+return rpmReadConfigFiles ();
|
||
|
;
|
||
|
return 0;
|
||
|
}
|
||
|
@@ -27540,12 +27540,12 @@ rm -rf conftest.dSYM
|
||
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||
|
conftest$ac_exeext conftest.$ac_ext
|
||
|
LIBS="${netsnmp_func_search_save_LIBS}"
|
||
|
- netsnmp_cv_func_rpmGetFilesystemList__rpmlibs="${netsnmp_result}"
|
||
|
+ netsnmp_cv_func_rpmReadConfigFiles__rpmlibs="${netsnmp_result}"
|
||
|
fi
|
||
|
-{ $as_echo "$as_me:$LINENO: result: $netsnmp_cv_func_rpmGetFilesystemList__rpmlibs" >&5
|
||
|
-$as_echo "$netsnmp_cv_func_rpmGetFilesystemList__rpmlibs" >&6; }
|
||
|
- if test "${netsnmp_cv_func_rpmGetFilesystemList__rpmlibs}" != "no" ; then
|
||
|
- if test "${netsnmp_cv_func_rpmGetFilesystemList__rpmlibs}" != "none required" ; then
|
||
|
+{ $as_echo "$as_me:$LINENO: result: $netsnmp_cv_func_rpmReadConfigFiles__rpmlibs" >&5
|
||
|
+$as_echo "$netsnmp_cv_func_rpmReadConfigFiles__rpmlibs" >&6; }
|
||
|
+ if test "${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs}" != "no" ; then
|
||
|
+ if test "${netsnmp_cv_func_rpmReadConfigFiles__rpmlibs}" != "none required" ; then
|
||
|
_rpmlibs="${netsnmp_result} ${netsnmp_target_val}"
|
||
|
fi
|
||
|
|