From owner-svn-ports-all@freebsd.org Wed Sep 2 05:23:36 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BFB29C808F; Wed, 2 Sep 2015 05:23:36 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 44570DC9; Wed, 2 Sep 2015 05:23:36 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t825Najo013685; Wed, 2 Sep 2015 05:23:36 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t825NZsH013682; Wed, 2 Sep 2015 05:23:35 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201509020523.t825NZsH013682@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Wed, 2 Sep 2015 05:23:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r395821 - in head/net-p2p/namecoin: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2015 05:23:36 -0000 Author: pi Date: Wed Sep 2 05:23:35 2015 New Revision: 395821 URL: https://svnweb.freebsd.org/changeset/ports/395821 Log: net-p2p/namecoin: fix for upcoming FORTIFY_SOURCE On FreeBSD strlcat and strcpy exist so you should be using the native libc versions instead of redefining your own. FORTIFY_SOURCE depends on using the system headers so this change fixes that case too. PR: 202603 Submitted by: pfg, op Approved by: milios@ccsys.com (maintainer) Added: head/net-p2p/namecoin/files/patch-src__strlcpy.h (contents, props changed) Modified: head/net-p2p/namecoin/Makefile Modified: head/net-p2p/namecoin/Makefile ============================================================================== --- head/net-p2p/namecoin/Makefile Wed Sep 2 04:22:41 2015 (r395820) +++ head/net-p2p/namecoin/Makefile Wed Sep 2 05:23:35 2015 (r395821) @@ -3,6 +3,7 @@ PORTNAME= namecoin PORTVERSION= 0.3.80 +PORTREVISION= 1 DISTVERSIONPREFIX= nc PORTEPOCH= 1 CATEGORIES= net-p2p dns Added: head/net-p2p/namecoin/files/patch-src__strlcpy.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/namecoin/files/patch-src__strlcpy.h Wed Sep 2 05:23:35 2015 (r395821) @@ -0,0 +1,23 @@ +--- net-p2p/namecoin/files/patch-src__strlcpy.h (revision 0) ++++ net-p2p/namecoin/files/patch-src__strlcpy.h (working copy) +@@ -0,0 +1,20 @@ ++--- src/strlcpy.h.orig 2015-08-24 00:28:33 UTC +++++ src/strlcpy.h ++@@ -15,6 +15,10 @@ ++ */ ++ #ifndef BITCOIN_STRLCPY_H ++ #define BITCOIN_STRLCPY_H +++ +++#if defined(__FreeBSD__) && (__FreeBSD_version >= 330000) +++#include +++#else ++ /* ++ * Copy src to string dst of size siz. At most siz-1 characters ++ * will be copied. Always NUL terminates (unless siz == 0). ++@@ -83,4 +87,6 @@ inline size_t strlcat(char *dst, const c ++ ++ return(dlen + (s - src)); /* count does not include NUL */ ++ } +++#endif /* FreeBSD */ +++ ++ #endif