From 62fcc091413246d5d8b59800f6c9ea832861a13c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 28 Nov 2012 11:20:33 +0100 Subject: [PATCH] torsocks: add a patch to fix res symbols. --- srcpkgs/torsocks/patches/rename_res_funs.patch | 17 +++++++++++++++++ srcpkgs/torsocks/template | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/torsocks/patches/rename_res_funs.patch diff --git a/srcpkgs/torsocks/patches/rename_res_funs.patch b/srcpkgs/torsocks/patches/rename_res_funs.patch new file mode 100644 index 00000000000..17238be7b98 --- /dev/null +++ b/srcpkgs/torsocks/patches/rename_res_funs.patch @@ -0,0 +1,17 @@ +--- src/torsocks.c 2011-10-25 23:49:50.000000000 +0200 ++++ src/torsocks.c 2011-10-30 11:53:11.292621715 +0100 +@@ -174,10 +174,10 @@ + #ifdef SUPPORT_RES_API + lib = dlopen(LIBRESOLV, RTLD_LAZY); + realres_init = dlsym(lib, "res_init"); +- realresquery = dlsym(lib, "res_query"); +- realressend = dlsym(lib, "res_send"); +- realresquerydomain = dlsym(lib, "res_querydomain"); +- realressearch = dlsym(lib, "res_search"); ++ real__res_query = dlsym(lib, "res_query"); ++ real__res_send = dlsym(lib, "res_send"); ++ real__res_querydomain = dlsym(lib, "res_querydomain"); ++ real__res_search = dlsym(lib, "res_search"); + dlclose(lib); + #endif + #endif diff --git a/srcpkgs/torsocks/template b/srcpkgs/torsocks/template index d96a1a02caf..94d7bc9eb05 100644 --- a/srcpkgs/torsocks/template +++ b/srcpkgs/torsocks/template @@ -1,7 +1,7 @@ # Template file for 'torsocks' pkgname=torsocks version=1.2 -revision=1 +revision=2 build_style=gnu-configure conf_files="/etc/torsocks.conf" configure_args="--disable-static --datarootdir=/usr/share/${pkgname}"