From 5b92600edbf22fc5f049e9f99229b42440275a82 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Tue, 18 Dec 2007 18:37:18 +0000 Subject: - Fixes a linker problem when not using libtool 15 - Fixes a bug causing the program to crash on exit if the hostname was not set yet PR: 118797 Submitted by: Pietro Cerutti --- ftp/junglemonkey/Makefile | 3 +-- ftp/junglemonkey/files/patch-src-util_sha_cache.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 ftp/junglemonkey/files/patch-src-util_sha_cache.c (limited to 'ftp/junglemonkey') diff --git a/ftp/junglemonkey/Makefile b/ftp/junglemonkey/Makefile index 7ec56346ca2b..d3fc7081fd33 100644 --- a/ftp/junglemonkey/Makefile +++ b/ftp/junglemonkey/Makefile @@ -17,11 +17,10 @@ COMMENT= A distributed file sharing program for GNOME LIB_DEPENDS= gnet.7:${PORTSDIR}/net/gnet -BROKEN= Does not build - USE_X_PREFIX= yes USE_GNOME= gnomehack gnomeprefix libglade USE_GMAKE= yes +USE_AUTOTOOLS= libtool:15 GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-gnome=yes --enable-debug=no CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ diff --git a/ftp/junglemonkey/files/patch-src-util_sha_cache.c b/ftp/junglemonkey/files/patch-src-util_sha_cache.c new file mode 100644 index 000000000000..313e6e82e72e --- /dev/null +++ b/ftp/junglemonkey/files/patch-src-util_sha_cache.c @@ -0,0 +1,11 @@ +--- src/util/sha_cache.c.orig 2007-12-17 23:04:06.000000000 +0100 ++++ src/util/sha_cache.c 2007-12-17 23:09:16.000000000 +0100 +@@ -213,7 +213,7 @@ + g_return_if_fail (sha_cache); + g_return_if_fail (file); + +- g_hash_table_foreach (sha_cache->path_to_sha, write_hfunc, file); ++ if(sha_cache) g_hash_table_foreach (sha_cache->path_to_sha, write_hfunc, file); + } + + -- cgit v1.2.3