Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2012 14:37:49 GMT
From:      Shane Ambler <FreeBSD@Shaneware.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/166222: [patch] clang build for x11/libfm
Message-ID:  <201203181437.q2IEbnGQ045996@red.freebsd.org>
Resent-Message-ID: <201203181440.q2IEe9l0064734@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166222
>Category:       ports
>Synopsis:       [patch] clang build for x11/libfm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 18 14:40:09 UTC 2012
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203181437.q2IEbnGQ045996>