Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2014 22:40:00 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/185862: commit references a PR
Message-ID:  <201401182240.s0IMe07n055154@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/185862; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185862: commit references a PR
Date: Sat, 18 Jan 2014 22:35:50 +0000 (UTC)

 Author: marcus
 Date: Sat Jan 18 22:35:41 2014
 New Revision: 340219
 URL: http://svnweb.freebsd.org/changeset/ports/340219
 QAT: https://qat.redports.org/buildarchive/r340219/
 
 Log:
   * Fix a segfault when Zeroconf is enabled with Timemachine [1]
   * Convert to new-style LIB_DEPENDS
   
   PR:		185862 [1]
   Submitted by:	jpaetzel [1]
 
 Added:
   head/net/netatalk3/files/patch-etc_afpd_afp_mdns.c   (contents, props changed)
 Modified:
   head/net/netatalk3/Makefile
 
 Modified: head/net/netatalk3/Makefile
 ==============================================================================
 --- head/net/netatalk3/Makefile	Sat Jan 18 22:21:51 2014	(r340218)
 +++ head/net/netatalk3/Makefile	Sat Jan 18 22:35:41 2014	(r340219)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	netatalk
  PORTVERSION=	3.1.0
 -PORTREVISION=	1
 +PORTREVISION=	2
  PORTEPOCH=	1
  CATEGORIES=	net
  MASTER_SITES=	SF
 @@ -15,8 +15,8 @@ COMMENT=	File server for Mac OS X
  
  LICENSE=	GPLv2
  
 -LIB_DEPENDS=	gcrypt:${PORTSDIR}/security/libgcrypt \
 -    		event-2:${PORTSDIR}/devel/libevent2
 +LIB_DEPENDS=	libgcrypt.so:${PORTSDIR}/security/libgcrypt \
 +    		libevent-2.so:${PORTSDIR}/devel/libevent2
  
  USE_AUTOTOOLS=	libtool
  USE_BDB=	46+
 
 Added: head/net/netatalk3/files/patch-etc_afpd_afp_mdns.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/net/netatalk3/files/patch-etc_afpd_afp_mdns.c	Sat Jan 18 22:35:41 2014	(r340219)
 @@ -0,0 +1,34 @@
 +--- etc/afpd/afp_mdns.c.orig	2013-10-28 06:43:13.000000000 -0700
 ++++ etc/afpd/afp_mdns.c	2014-01-17 22:10:59.000000000 -0800
 +@@ -37,17 +37,15 @@
 +  * Its easier to use asprintf to set the TXT record values
 +  */
 + #define TXTRecordPrintf(rec, key, args, ...) {           \
 +-        char *str;                                      \
 +-        asprintf(&str, args);                           \
 ++        char str[1024];                                      \
 ++        sprintf(str, args);                           \
 +         TXTRecordSetValue(rec, key, strlen(str), str);  \
 +-        free(str);                                      \
 +     }
 + #define TXTRecordKeyPrintf(rec, k, var, args, ...) {     \
 +-        char *key, *str;                                \
 +-        asprintf(&key, k, var);                         \
 +-        asprintf(&str, args);                           \
 ++        char key[1024], str[1024];                                \
 ++        sprintf(key, k, var);                         \
 ++        sprintf(str, args);                           \
 +         TXTRecordSetValue(rec, key, strlen(str), str);  \
 +-        free(str); free(key);                           \
 +     }
 + 
 + static struct pollfd *fds;
 +@@ -134,7 +132,7 @@
 + 
 +     /* Register our service, prepare the TXT record */
 +     TXTRecordCreate(&txt_adisk, 0, NULL);
 +-    TXTRecordPrintf(&txt_adisk, "sys", "waMa=0,adVF=0x100");
 ++    TXTRecordPrintf(&txt_adisk, "sys", "waMa=0,adVF=0x100", NULL);
 + 
 +     /* Build AFP volumes list */
 +     int i = 0;
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401182240.s0IMe07n055154>