From nobody@FreeBSD.org  Sun Mar 18 14:37:49 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id AA060106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Mar 2012 14:37:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9A1D58FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Mar 2012 14:37:49 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q2IEbnx5045997
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Mar 2012 14:37:49 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q2IEbnGQ045996;
	Sun, 18 Mar 2012 14:37:49 GMT
	(envelope-from nobody)
Message-Id: <201203181437.q2IEbnGQ045996@red.freebsd.org>
Date: Sun, 18 Mar 2012 14:37:49 GMT
From: Shane Ambler <FreeBSD@Shaneware.biz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] clang build for x11/libfm
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         166222
>Category:       ports
>Synopsis:       [patch] clang build for x11/libfm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kmoore
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 18 14:40:09 UTC 2012
>Closed-Date:    Thu May 31 18:25:10 UTC 2012
>Last-Modified:  Thu May 31 18:30:02 UTC 2012
>Originator:     Shane Ambler
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD leader.local 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Wed Feb 15 16:03:18 CST 2012     root@:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The attached patch allows x11/libfm to compile with clang.

Tested with tinderbox to compile with the following combinations - 
10-CURRENT-amd64-clang
10-CURRENT-amd64-gcc
10-CURRENT-i386-clang
10-CURRENT-i386-gcc
9-STABLE-amd64-clang
9-STABLE-amd64-gcc
9-STABLE-i386-clang
9-STABLE-i386-gcc
8-STABLE-amd64-gcc
8-STABLE-i386-gcc
7-STABLE-amd64-gcc
7-STABLE-i386-gcc

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	files/patch-src__tools__libfm-pref-apps.c
#
echo x - files/patch-src__tools__libfm-pref-apps.c
sed 's/^X//' >files/patch-src__tools__libfm-pref-apps.c << 'a5d415a81050d923f824e8286c0bdf01'
X--- ./src/tools/libfm-pref-apps.c.orig	2012-03-18 14:21:22.000000000 +1030
X+++ ./src/tools/libfm-pref-apps.c	2012-03-18 14:22:13.000000000 +1030
X@@ -38,7 +38,7 @@
X static GList* mail_clients = NULL;
X 
X /* examine desktop files under Internet and Office submenus to find out browsers and mail clients */
X-static init_apps()
X+static void init_apps()
X {
X     MenuCache* mc = menu_cache_lookup_sync("applications.menu");
X     MenuCacheDir* dir;
a5d415a81050d923f824e8286c0bdf01
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kmoore 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Mar 18 14:40:23 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=166222 
State-Changed-From-To: open->closed 
State-Changed-By: kmoore 
State-Changed-When: Thu May 31 18:25:09 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=166222 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/166222: commit references a PR
Date: Thu, 31 May 2012 18:25:00 +0000 (UTC)

 kmoore      2012-05-31 18:24:47 UTC
 
   FreeBSD ports repository
 
   Added files:
     x11/libfm/files      patch-src__tools__libfm-pref-apps.c 
   Log:
   Fix build with clang
   
   PR: 166222
   Submitted by: Shane Ambler <FreeBSD@Shaneware.biz>
   
   Revision  Changes    Path
   1.1       +11 -0     ports/x11/libfm/files/patch-src__tools__libfm-pref-apps.c (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
