From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Mar 29 10:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D9B45D0 for ; Sat, 29 Mar 2014 10:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 B8050D5 for ; Sat, 29 Mar 2014 10:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2TAe0Lb099126 for ; Sat, 29 Mar 2014 10:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2TAe0s4099124; Sat, 29 Mar 2014 10:40:00 GMT (envelope-from gnats) Resent-Date: Sat, 29 Mar 2014 10:40:00 GMT Resent-Message-Id: <201403291040.s2TAe0s4099124@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Rees Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 33035E36 for ; Sat, 29 Mar 2014 10:30:26 +0000 (UTC) Received: from mk-outboundfilter-2.mail.uk.tiscali.com (mk-outboundfilter-2.mail.uk.tiscali.com [212.74.114.38]) by mx1.freebsd.org (Postfix) with ESMTP id BEDBDFB3 for ; Sat, 29 Mar 2014 10:30:25 +0000 (UTC) Received: from 81-170-77-156.dynamic.dsl.as9105.com (HELO pegasus.bayofrum.net) ([81.170.77.156]) by smtp.pipex.tiscali.co.uk with ESMTP; 29 Mar 2014 10:30:18 +0000 Received: by pegasus.bayofrum.net (Postfix, from userid 1001) id A650D5A024; Sat, 29 Mar 2014 10:30:12 +0000 (GMT) Message-Id: <20140329103012.A650D5A024@pegasus.bayofrum.net> Date: Sat, 29 Mar 2014 10:30:12 +0000 (GMT) From: Chris Rees To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/188044: [PATCH] Fix graphics/ufraw with clang-4.4 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Chris Rees List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2014 10:40:01 -0000 >Number: 188044 >Category: ports >Synopsis: [PATCH] Fix graphics/ufraw with clang-4.4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 29 10:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Chris Rees >Release: FreeBSD 9.2-RELEASE-p2 amd64 >Organization: >Environment: System: FreeBSD pegasus.bayofrum.net 9.2-RELEASE-p2 FreeBSD 9.2-RELEASE-p2 #0 r259640: Fri Dec 20 09:39:16 GMT 2013 root@pegasus.bayofrum.net:/usr/obj/usr/src/sys/PEGASUS amd64 >Description: ufraw fails on recent head because of incorrect namespacing, upsetting clang-3.4 >How-To-Repeat: Try to build ufraw on head with clang-3.4 >Fix: --- patch.txt begins here --- Index: files/patch-cplusplus =================================================================== --- files/patch-cplusplus (revision 0) +++ files/patch-cplusplus (working copy) @@ -0,0 +1,32 @@ +Obtained from MacPorts + +https://trac.macports.org/changeset/115801 + +Submitted upstream by Jeremy Huddleston Sequoia + +http://sourceforge.net/p/ufraw/bugs/365/ + +--- ufraw.h.orig 2014-01-11 11:04:08.000000000 -0800 ++++ ufraw.h 2014-01-11 11:04:54.000000000 -0800 +@@ -41,6 +41,10 @@ + /* An impossible value for conf float values */ + #define NULLF -10000.0 + ++#ifdef __cplusplus ++extern "C" { ++#endif // __cplusplus ++ + /* Options, like auto-adjust buttons can be in 3 states. Enabled and disabled + * are obvious. Apply means that the option was selected and some function + * has to act accourdingly, before changing to one of the first two states */ +@@ -78,10 +82,6 @@ extern UFName ufRawImage; + extern UFName ufRawResources; + extern UFName ufCommandLine; + +-#ifdef __cplusplus +-extern "C" { +-#endif // __cplusplus +- + UFObject *ufraw_image_new(); + #ifdef HAVE_LENSFUN + UFObject *ufraw_lensfun_new(); Property changes on: files/patch-cplusplus ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property --- patch.txt ends here --- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. >Release-Note: >Audit-Trail: >Unformatted: