X-Git-Url: http://git.archive.openwrt.org/?p=10.03%2Fpackages.git;a=blobdiff_plain;f=net%2Fsamba3%2Fpatches%2F170-no_rpc.patch;h=0dd18e3ba9e034058abf3b83a3d494963927ceee;hp=ae1d6c7ff8cf0dc050f47737ffc248893e7e5ffa;hb=fa672c8f2c8a4c4d0646e5b3540ba7c62234710e;hpb=a8d0b85b917d40537822f24dfba96d79c0463cdc diff --git a/net/samba3/patches/170-no_rpc.patch b/net/samba3/patches/170-no_rpc.patch index ae1d6c7..0dd18e3 100644 --- a/net/samba3/patches/170-no_rpc.patch +++ b/net/samba3/patches/170-no_rpc.patch @@ -1,28 +1,21 @@ ---- a/source/include/config.h -+++ b/source/include/config.h -@@ -986,13 +986,13 @@ - /* #undef HAVE_ROOT */ + +--- a/source/configure ++++ b/source/configure +@@ -22548,6 +22548,17 @@ rm -f conftest.err conftest.$ac_ext + { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 + $as_echo "$ac_header_preproc" >&6; } - /* Define to 1 if you have the header file. */ --#define HAVE_RPCSVC_NIS_H 1 -+/* #define HAVE_RPCSVC_NIS_H 1 */ - - /* Define to 1 if you have the header file. */ --#define HAVE_RPCSVC_YPCLNT_H 1 -+/* #define HAVE_RPCSVC_YPCLNT_H 1 */ - - /* Define to 1 if you have the header file. */ --#define HAVE_RPCSVC_YP_PROT_H 1 -+/* #define HAVE_RPCSVC_YP_PROT_H 1 */ - - /* Whether there is a conflicting AUTH_ERROR define in rpc/rpc.h */ - /* #undef HAVE_RPC_AUTH_ERROR_CONFLICT */ -@@ -1001,7 +1001,7 @@ - /* #undef HAVE_RPC_NETTYPE_H */ - - /* Define to 1 if you have the header file. */ --#define HAVE_RPC_RPC_H 1 -+/* #define HAVE_RPC_RPC_H 1 */ - - /* Whether mkstemp is secure */ - #define HAVE_SECURE_MKSTEMP 1 ++# Force disable RPC ++$as_echo "test=$ac_header" >&6 ++if test "$ac_header" = "rpc/rpc.h"; then ++ if test "$ac_header_compiler" = "yes" -o "$ac_header_preproc" = "yes"; then ++ $as_echo "RPC support force disabled by OpenWRT patch" >&5 ++ $as_echo "RPC support force disabled by OpenWRT patch" >&6 ++ fi ++fi ++ac_header_compiler=no ++ac_header_preproc=no ++ + # So? What about this header? + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: )