From owner-svn-ports-all@freebsd.org Fri Oct 30 16:50:29 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 50047A218E0; Fri, 30 Oct 2015 16:50:29 +0000 (UTC) (envelope-from brooks@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 028CD1183; Fri, 30 Oct 2015 16:50:28 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9UGoS1K088488; Fri, 30 Oct 2015 16:50:28 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9UGoSO3088486; Fri, 30 Oct 2015 16:50:28 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201510301650.t9UGoSO3088486@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Fri, 30 Oct 2015 16:50:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400548 - in head/lang/clang36: . 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: Fri, 30 Oct 2015 16:50:29 -0000 Author: brooks Date: Fri Oct 30 16:50:27 2015 New Revision: 400548 URL: https://svnweb.freebsd.org/changeset/ports/400548 Log: Fix build with GCC 4.9. PR: 196712 Submitted by: kwm Added: head/lang/clang36/files/patch-svn-226925 (contents, props changed) Modified: head/lang/clang36/Makefile Modified: head/lang/clang36/Makefile ============================================================================== --- head/lang/clang36/Makefile Fri Oct 30 16:29:48 2015 (r400547) +++ head/lang/clang36/Makefile Fri Oct 30 16:50:27 2015 (r400548) @@ -2,6 +2,7 @@ PORTNAME= clang DISTVERSION= 3.6.2 +PORTREVISON= 1 CATEGORIES= lang devel MASTER_SITES= http://llvm.org/releases/3.6.2/ PKGNAMESUFFIX= ${LLVM_SUFFIX} Added: head/lang/clang36/files/patch-svn-226925 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/clang36/files/patch-svn-226925 Fri Oct 30 16:50:27 2015 (r400548) @@ -0,0 +1,28 @@ +$FreeBSD$ +------------------------------------------------------------------------ +r226925 | rnk | 2015-01-23 19:16:25 +0000 (Fri, 23 Jan 2015) | 1 line + +Attempt to fix ::sscanf Cygwin build break reported in PR22302 +------------------------------------------------------------------------ +Index: lib/Driver/MSVCToolChain.cpp +=================================================================== +--- tools/clang/lib/Driver/MSVCToolChain.cpp (revision 226924) ++++ tools/clang/lib/Driver/MSVCToolChain.cpp (revision 226925) +@@ -22,6 +22,8 @@ + #include "llvm/Support/FileSystem.h" + #include "llvm/Support/Process.h" + ++#include ++ + // Include the necessary headers to interface with the Windows registry and + // environment. + #if defined(LLVM_ON_WIN32) +@@ -212,7 +214,7 @@ + "SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\$VERSION", + "InstallationFolder", path, &sdkVersion); + if (!sdkVersion.empty()) +- ::sscanf(sdkVersion.c_str(), "v%d.%d", &major, &minor); ++ std::sscanf(sdkVersion.c_str(), "v%d.%d", &major, &minor); + return hasSDKDir && !path.empty(); + } +