ports/118797: [patch] ftp/junglemonkey unbreak fix linker problem

Pietro Cerutti gahr at gahr.ch
Mon Dec 17 22:20:02 UTC 2007


>Number:         118797
>Category:       ports
>Synopsis:       [patch] ftp/junglemonkey unbreak fix linker problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 17 22:20:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Pietro Cerutti
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 8.0-CURRENT #17: Thu Dec 13 11:23:40 CET 2007
    root at gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034



>Description:


The patch below:

- 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


>How-To-Repeat:





>Fix:


--- _junglemonkey.diff begins here ---
--- Makefile.orig	2007-12-17 22:55:08.000000000 +0100
+++ Makefile	2007-12-17 23:00:46.000000000 +0100
@@ -17,11 +17,10 @@
 
 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" \
--- /dev/null	2007-12-17 23:11:28.000000000 +0100
+++ files/patch-src-util_sha_cache.c	2007-12-17 23:09:28.000000000 +0100
@@ -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);
+ }
+ 
+ 
--- _junglemonkey.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list