From owner-svn-ports-head@freebsd.org Mon Dec 18 21:52:05 2017 Return-Path: Delivered-To: svn-ports-head@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 CFCC3E8B530; Mon, 18 Dec 2017 21:52:05 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 9AA19722A3; Mon, 18 Dec 2017 21:52:05 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBILq4OK025838; Mon, 18 Dec 2017 21:52:04 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBILq4Ew025836; Mon, 18 Dec 2017 21:52:04 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201712182152.vBILq4Ew025836@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 18 Dec 2017 21:52:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456679 - in head/security/tor: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/security/tor: . files X-SVN-Commit-Revision: 456679 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 21:52:05 -0000 Author: yuri Date: Mon Dec 18 21:52:04 2017 New Revision: 456679 URL: https://svnweb.freebsd.org/changeset/ports/456679 Log: security/tor: Unbreaking on systems without timingsafe_memcmp(3) timingsafe_memcmp(3) has only been introduced in 12, therefore limiting its use to 12. Reported by: Martin Gehlen (bug reporter) Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D13502 Added: head/security/tor/files/patch-orconfig.h.in (contents, props changed) Modified: head/security/tor/Makefile Modified: head/security/tor/Makefile ============================================================================== --- head/security/tor/Makefile Mon Dec 18 21:51:42 2017 (r456678) +++ head/security/tor/Makefile Mon Dec 18 21:52:04 2017 (r456679) @@ -3,6 +3,7 @@ PORTNAME= tor PORTVERSION= 0.3.1.9 +PORTREVISION= 1 CATEGORIES= security net ipv6 MASTER_SITES= TOR Added: head/security/tor/files/patch-orconfig.h.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/tor/files/patch-orconfig.h.in Mon Dec 18 21:52:04 2017 (r456679) @@ -0,0 +1,12 @@ +--- orconfig.h.in.orig 2017-11-30 20:34:49 UTC ++++ orconfig.h.in +@@ -517,7 +517,9 @@ + #undef HAVE_TIME_H + + /* Define to 1 if you have the `timingsafe_memcmp' function. */ ++#if __FreeBSD_version >= 1200000 // disabled: timingsafe_memcmp(3) has been added only in 12.0, and isn't yet available on older systems + #undef HAVE_TIMINGSAFE_MEMCMP ++#endif + + /* Define to 1 if you have the `TLS_method' function. */ + #undef HAVE_TLS_METHOD