From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 11 23: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 C31209D2 for ; Tue, 11 Mar 2014 23: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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A031A277 for ; Tue, 11 Mar 2014 23: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 s2BNe0Cd059195 for ; Tue, 11 Mar 2014 23: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 s2BNe00u059194; Tue, 11 Mar 2014 23:40:00 GMT (envelope-from gnats) Resent-Date: Tue, 11 Mar 2014 23:40:00 GMT Resent-Message-Id: <201403112340.s2BNe00u059194@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, Christophe Juniet 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 75B5E8DF for ; Tue, 11 Mar 2014 23:37:26 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 46954264 for ; Tue, 11 Mar 2014 23:37:26 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2BNbPdT086346 for ; Tue, 11 Mar 2014 23:37:25 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2BNbPaV086339; Tue, 11 Mar 2014 23:37:25 GMT (envelope-from nobody) Message-Id: <201403112337.s2BNbPaV086339@cgiserv.freebsd.org> Date: Tue, 11 Mar 2014 23:37:25 GMT From: Christophe Juniet To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/187462: [patch] x11/rxvt-unicode mousewheel support with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2014 23:40:00 -0000 >Number: 187462 >Category: ports >Synopsis: [patch] x11/rxvt-unicode mousewheel support with clang >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: Tue Mar 11 23:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Christophe Juniet >Release: 10.0-STABLE >Organization: >Environment: FreeBSD fbsd 10.0-STABLE FreeBSD 10.0-STABLE #0 r262848: Thu Mar 6 14:46:20 CET 2014 root@fbsd:/usr/obj/usr/src/sys/CUSTOM amd64 >Description: rxvt-unicode segfaults when trying to scroll with the mouse wheel if compiled with Clang so this option still implies USE_GCC=YES. The attached patch will fix the problem so GCC is not necessary anymore. >How-To-Repeat: Compile rxvt-unicode with mousewheel support with Clang. >Fix: Use the attached patch or see src/rxvt.h revision 1.526 of upstream. Patch attached with submission follows: diff -ruN /usr/ports/x11/rxvt-unicode/Makefile rxvt-unicode/Makefile --- /usr/ports/x11/rxvt-unicode/Makefile 2014-03-10 21:55:20.000000000 +0100 +++ rxvt-unicode/Makefile 2014-03-12 00:10:50.000000000 +0100 @@ -3,7 +3,7 @@ PORTNAME= rxvt-unicode PORTVERSION= 9.19 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/%SUBDIR%/ MASTER_SITE_SUBDIR= . Attic @@ -129,8 +129,6 @@ # 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 diff -ruN /usr/ports/x11/rxvt-unicode/files/patch-src_rxvt.h rxvt-unicode/files/patch-src_rxvt.h --- /usr/ports/x11/rxvt-unicode/files/patch-src_rxvt.h 1970-01-01 01:00:00.000000000 +0100 +++ rxvt-unicode/files/patch-src_rxvt.h 2014-03-12 00:10:50.000000000 +0100 @@ -0,0 +1,11 @@ +--- src/rxvt.h.orig 2013-10-03 01:05:18.000000000 +0200 ++++ src/rxvt.h 2014-03-12 00:02:43.000000000 +0100 +@@ -1540,7 +1540,7 @@ + bool scr_page (int nlines) NOTHROW; + bool scr_page (enum page_dirn direction, int nlines) NOTHROW + { +- scr_page (direction * nlines); ++ return scr_page (direction * nlines); + } + bool scr_changeview (int new_view_start) NOTHROW; + void scr_bell () NOTHROW; >Release-Note: >Audit-Trail: >Unformatted: