From owner-svn-ports-head@freebsd.org Fri Oct 21 09:11:53 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45F42C1BA9E; Fri, 21 Oct 2016 09:11:53 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (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 01E651218; Fri, 21 Oct 2016 09:11:52 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9L9BqPm077184; Fri, 21 Oct 2016 09:11:52 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9L9BpQ8077181; Fri, 21 Oct 2016 09:11:51 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201610210911.u9L9BpQ8077181@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Fri, 21 Oct 2016 09:11:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424401 - in head/x11-toolkits/girara: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2016 09:11:53 -0000 Author: madpilot Date: Fri Oct 21 09:11:51 2016 New Revision: 424401 URL: https://svnweb.freebsd.org/changeset/ports/424401 Log: Add patch to disable optimizations on a keyboard input function when using the clang compiler. This allows removing the requirement on gcc. Patch based on suggestion from Ivan . Bug has been reported upstream. PR: 213595 Submitted by: Michael Danilov MFH: 2016Q4 Added: head/x11-toolkits/girara/files/patch-girara_callbacks.h (contents, props changed) head/x11-toolkits/girara/files/patch-girara_macros.h (contents, props changed) Modified: head/x11-toolkits/girara/Makefile Modified: head/x11-toolkits/girara/Makefile ============================================================================== --- head/x11-toolkits/girara/Makefile Fri Oct 21 09:05:59 2016 (r424400) +++ head/x11-toolkits/girara/Makefile Fri Oct 21 09:11:51 2016 (r424401) @@ -3,7 +3,7 @@ PORTNAME= girara PORTVERSION= 0.2.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-toolkits graphics MASTER_SITES= http://pwmt.org/projects/girara/download/ @@ -18,14 +18,10 @@ LIBDIR= ${PREFIX}/lib MAKE_ENV+= SFLAGS=${STRIP} \ VERBOSE=1 -OPTIONS_DEFINE= GCC NLS -# Force GCC by default due to problems in dependent port zathura with keyboard -# input when compiled using clang. -OPTIONS_DEFAULT=GCC +OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext -GCC_USE= GCC=yes post-patch: .SILENT ${REINPLACE_CMD} -e 's|$${LIBDIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \ Added: head/x11-toolkits/girara/files/patch-girara_callbacks.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/girara/files/patch-girara_callbacks.h Fri Oct 21 09:11:51 2016 (r424401) @@ -0,0 +1,19 @@ +--- girara/callbacks.h.orig 2016-04-18 20:35:34 UTC ++++ girara/callbacks.h +@@ -4,6 +4,7 @@ + #define GIRARA_CALLBACKS_H + + #include "types.h" ++#include "macros.h" + #include + + /** +@@ -108,7 +109,7 @@ bool girara_callback_inputbar_activate(G + * @return FALSE An error occurred + */ + bool girara_callback_inputbar_key_press_event(GtkWidget* widget, +- GdkEventKey* event, girara_session_t* session); ++ GdkEventKey* event, girara_session_t* session) GIRARA_OPTNONE; + + /** + * Default callback if the text of the input bar has changed Added: head/x11-toolkits/girara/files/patch-girara_macros.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/girara/files/patch-girara_macros.h Fri Oct 21 09:11:51 2016 (r424401) @@ -0,0 +1,15 @@ +--- girara/macros.h.orig 2015-04-13 20:49:26 UTC ++++ girara/macros.h +@@ -69,4 +69,12 @@ + GIRARA_DO_PRAGMA(GCC diagnostic pop) + #endif + ++#ifndef GIRARA_OPTNONE ++# if defined(__clang__) ++# define GIRARA_OPTNONE __attribute__ ((optnone)) ++# else ++# define GIRARA_OPTNONE ++# endif ++#endif ++ + #endif