ports/52526: Update port: devel/distcc to version 2.4

Frerich Raabe frerich.raabe at gmx.de
Wed May 21 12:40:05 UTC 2003


>Number:         52526
>Category:       ports
>Synopsis:       Update port: devel/distcc to version 2.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 21 05:40:03 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Frerich Raabe
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD frerich.homeip.net 4.8-STABLE FreeBSD 4.8-STABLE #4: Fri May 16 21:05:12 CEST 2003 root at frerich.homeip.net:/usr/obj/usr/src/sys/DAEDALUS i386
>Description:
The attached patch updates the devel/distcc port to honour the recently
released distcc version 2.4. Note that this update includes a patch to
src/hosts.c which is necessary since this distcc version uses the strndup
function which is not available with a BSD libc and thus needs to be emulated.
>How-To-Repeat:
>Fix:
diff -ruN distcc.orig/Makefile distcc/Makefile
--- distcc.orig/Makefile	Wed May 21 14:13:00 2003
+++ distcc/Makefile	Wed May 21 14:13:21 2003
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	distcc
-PORTVERSION=	2.3
+PORTVERSION=	2.4
 CATEGORIES=	devel
 MASTER_SITES=	http://distcc.samba.org/ftp/distcc/
 
diff -ruN distcc.orig/distinfo distcc/distinfo
--- distcc.orig/distinfo	Wed May 21 14:13:00 2003
+++ distcc/distinfo	Wed May 21 14:13:31 2003
@@ -1 +1 @@
-MD5 (distcc-2.3.tar.bz2) = ead898174612b959141e56f0202afb1b
+MD5 (distcc-2.4.tar.bz2) = e996c2dd500c3d693f507c88b3c565bb
diff -ruN distcc.orig/files/patch-src::hosts.c distcc/files/patch-src::hosts.c
--- distcc.orig/files/patch-src::hosts.c	Thu Jan  1 01:00:00 1970
+++ distcc/files/patch-src::hosts.c	Wed May 21 14:31:21 2003
@@ -0,0 +1,23 @@
+--- src/hosts.c.orig	Wed May 21 14:24:53 2003
++++ src/hosts.c	Wed May 21 14:28:19 2003
+@@ -96,7 +96,20 @@
+ 
+ /* TODO: Write and use a test harness for this. */
+ 
++#ifdef __FreeBSD__
++static char *strndup(const char *src, size_t size)
++{
++    char *dst;
+ 
++    dst = malloc(size + 1);
++    if (dst == NULL)
++        return NULL;
++    dst[size] = '\0';
++    strncpy(dst, src, size);
++
++    return dst;
++}
++#endif
+ 
+ /**
+  * Get a list of hosts to use.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list