From udvzsolt@gmail.com  Sat Jan 25 20:30:51 2014
Return-Path: <udvzsolt@gmail.com>
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 E203F58B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Jan 2014 20:30:51 +0000 (UTC)
Received: from mail-ea0-x230.google.com (mail-ea0-x230.google.com [IPv6:2a00:1450:4013:c01::230])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 793A91330
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Jan 2014 20:30:51 +0000 (UTC)
Received: by mail-ea0-f176.google.com with SMTP id h14so1586575eaj.35
        for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Jan 2014 12:30:49 -0800 (PST)
Received: from bsd-zsolt (91.83.190.122.pool.invitel.hu. [91.83.190.122])
        by mx.google.com with ESMTPSA id z49sm20025891eeo.10.2014.01.25.12.30.45
        for <multiple recipients>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 25 Jan 2014 12:30:49 -0800 (PST)
Received: by bsd-zsolt (sSMTP sendmail emulation); Sat, 25 Jan 2014 21:28:59 +0100
Message-Id: <52e41ef9.49d50e0a.522f.ffffc7d0@mx.google.com>
Date: Sat, 25 Jan 2014 21:28:59 +0100
From: Zsolt Udvari <udvzsolt@gmail.com>
Reply-To: Zsolt Udvari <udvzsolt@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: <udvzsolt@gmail.com>
Subject: [patch] rxvt-unicode should use gcc only wants enable mousewheel
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         186107
>Category:       ports
>Synopsis:       [patch] x11/rxvt-unicode should use gcc only wants enable mousewheel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    thierry
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 25 20:40:00 UTC 2014
>Closed-Date:    Sat Feb 08 13:07:24 UTC 2014
>Last-Modified:  Sat Feb  8 13:10:01 UTC 2014
>Originator:     Zsolt Udvari
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD bsd-zsolt 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The x11/rxvt-unicode/Makefile says (rev 332906):
USE_GCC=		yes # segfaults when trying to scroll with the mouse wheel if clang

I think if user doesn't want mousewheel support can build with clang (which is default in 10.0) so gcc isn't necessary.
>How-To-Repeat:
>Fix:


--- rxvt-unicode-gcc-only-mousewheel.patch begins here ---
diff -ur /usr/ports/x11/rxvt-unicode/Makefile rxvt-unicode/Makefile
--- /usr/ports/x11/rxvt-unicode/Makefile	2013-12-15 22:26:47.000000000 +0100
+++ rxvt-unicode/Makefile	2014-01-25 21:15:13.268662403 +0100
@@ -18,7 +18,6 @@
 		${LOCALBASE}/share/misc/terminfo.db:${PORTSDIR}/devel/ncurses
 
 USES=			pkgconfig shebangfix
-USE_GCC=		yes # segfaults when trying to scroll with the mouse wheel if clang
 USE_XORG=		xpm xft xrender
 GNU_CONFIGURE=		yes
 CPPFLAGS+=		-I${LOCALBASE}/include
@@ -129,6 +128,8 @@
 # enable scrolling via mouse wheel or buttons 4 & 5
 .if !${PORT_OPTIONS:MMOUSEWHEEL}
 CONFIGURE_ARGS+=	--disable-mousewheel
+.else
+USE_GCC=		yes # segfaults when trying to scroll with the mouse wheel if clang
 .endif
 
 # enable smart resize
--- rxvt-unicode-gcc-only-mousewheel.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->thierry 
Responsible-Changed-By: thierry 
Responsible-Changed-When: sam 25 jan 2014 21:28:55 UTC 
Responsible-Changed-Why:  

Take it. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=186107 
State-Changed-From-To: open->closed 
State-Changed-By: thierry 
State-Changed-When: sam 8 fév 2014 13:06:59 UTC 
State-Changed-Why:  

Committed, thanks! 


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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/186107: commit references a PR
Date: Sat,  8 Feb 2014 13:06:44 +0000 (UTC)

 Author: thierry
 Date: Sat Feb  8 13:06:37 2014
 New Revision: 343325
 URL: http://svnweb.freebsd.org/changeset/ports/343325
 QAT: https://qat.redports.org/buildarchive/r343325/
 
 Log:
   Don't force Gcc when MOUSEWHEEL is disabled.
   
   PR:		ports/186107
   Submitted by:	Zsolt Udvari <udvzsolt (at) gmail.com>
 
 Modified:
   head/x11/rxvt-unicode/Makefile
 
 Modified: head/x11/rxvt-unicode/Makefile
 ==============================================================================
 --- head/x11/rxvt-unicode/Makefile	Sat Feb  8 12:47:51 2014	(r343324)
 +++ head/x11/rxvt-unicode/Makefile	Sat Feb  8 13:06:37 2014	(r343325)
 @@ -18,7 +18,6 @@ RUN_DEPENDS=	${LOCALBASE}/bin/fc-cache:$
  		${LOCALBASE}/share/misc/terminfo.db:${PORTSDIR}/devel/ncurses
  
  USES=			pkgconfig shebangfix
 -USE_GCC=		yes # segfaults when trying to scroll with the mouse wheel if clang
  USE_XORG=		xpm xft xrender
  GNU_CONFIGURE=		yes
  CPPFLAGS+=		-I${LOCALBASE}/include
 @@ -129,6 +128,8 @@ CONFIGURE_ARGS+=	--disable-delete-key
  # enable scrolling via mouse wheel or buttons 4 & 5
  .if !${PORT_OPTIONS:MMOUSEWHEEL}
  CONFIGURE_ARGS+=	--disable-mousewheel
 +.else
 +USE_GCC=		yes # segfaults when trying to scroll with the mouse wheel if clang
  .endif
  
  # enable smart resize
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
