From owner-svn-ports-all@freebsd.org Fri Dec 4 14:03:31 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 DFEF4A41C31; Fri, 4 Dec 2015 14:03:31 +0000 (UTC) (envelope-from rakuco@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 8E8331613; Fri, 4 Dec 2015 14:03:31 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB4E3UTo044411; Fri, 4 Dec 2015 14:03:30 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB4E3Usw044410; Fri, 4 Dec 2015 14:03:30 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201512041403.tB4E3Usw044410@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Fri, 4 Dec 2015 14:03:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r402987 - head/graphics/hugin/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, 04 Dec 2015 14:03:32 -0000 Author: rakuco Date: Fri Dec 4 14:03:30 2015 New Revision: 402987 URL: https://svnweb.freebsd.org/changeset/ports/402987 Log: Fix the build on 9.x. Add a missing include so that the port builds on 9.3-{amd64,i386}: /wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp: In function 'int genint(int)': /wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp:28:31: error: 'rand' was not declared in this scope return (int)((double)rand()*x/(double)RAND_MAX); ^ /wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp:28:43: error: 'RAND_MAX' was not declared in this scope return (int)((double)rand()*x/(double)RAND_MAX); ^ The quarterly branch is not affected, it still contains hugin 2013.0.0. Approved by: portmgr blanket approval (trivial and tested build fix) Added: head/graphics/hugin/files/patch-src_hugin__cpfind_localfeatures_RansacFiltering.cpp (contents, props changed) Added: head/graphics/hugin/files/patch-src_hugin__cpfind_localfeatures_RansacFiltering.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/hugin/files/patch-src_hugin__cpfind_localfeatures_RansacFiltering.cpp Fri Dec 4 14:03:30 2015 (r402987) @@ -0,0 +1,19 @@ +Fixes the build on 9.x: + +/wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp: In function 'int genint(int)': +/wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp:28:31: error: 'rand' was not declared in this scope + return (int)((double)rand()*x/(double)RAND_MAX); + ^ +/wrkdirs/usr/ports/graphics/hugin/work/hugin-2015.0.0/src/hugin_cpfind/localfeatures/RansacFiltering.cpp:28:43: error: 'RAND_MAX' was not declared in this scope + return (int)((double)rand()*x/(double)RAND_MAX); + ^ +--- src/hugin_cpfind/localfeatures/RansacFiltering.cpp.orig 2015-12-04 12:57:44 UTC ++++ src/hugin_cpfind/localfeatures/RansacFiltering.cpp +@@ -20,6 +20,7 @@ + + #include "RansacFiltering.h" + #include "Homography.h" ++#include + + using namespace std; +