From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 1/3] gnu: wxwidgets: Fix for Filezilla client. Date: Thu, 16 Feb 2017 11:28:28 -0500 Message-ID: <20170216162828.GC1957@jasmine> References: <20170209163618.1759-1-rennes@openmailbox.org> <20170209163618.1759-2-rennes@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceOv3-0000xJ-Nc for guix-devel@gnu.org; Thu, 16 Feb 2017 11:28:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceOv0-0004tl-7p for guix-devel@gnu.org; Thu, 16 Feb 2017 11:28:33 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48124) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceOv0-0004ta-3k for guix-devel@gnu.org; Thu, 16 Feb 2017 11:28:30 -0500 Content-Disposition: inline In-Reply-To: <20170209163618.1759-2-rennes@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: rennes Cc: guix-devel@gnu.org On Thu, Feb 09, 2017 at 10:36:16AM -0600, rennes wrote: > * gnu/packages/patches/wxwidgets-fix-windowGTK.patch: New file. > * gnu/local.mk (dist_patch_DATA): Add it. I'm unable to apply this patch to the Guix source tree. Please try recreating it from current master and sending it again. > diff --git a/gnu/packages/patches/wxwidgets-fix-windowGTK.patch b/gnu/packages/patches/wxwidgets-fix-windowGTK.patch > new file mode 100644 > index 000000000..05e2e5819 > --- /dev/null > +++ b/gnu/packages/patches/wxwidgets-fix-windowGTK.patch > @@ -0,0 +1,35 @@ > +This patch allow Filezilla client to resize window. > + > +Authors: Tim Kosse > +Upstream status: This issue was fixed in master branch. > +Ticket: '' > + > +From 3a52125f81d28fcad5d3c841b94a3e4bad295d9e Mon Sep 17 00:00:00 2001 > +From: Tim Kosse > +Date: Sun, 20 Mar 2016 10:22:13 +0100 > +Subject: [PATCH] Fix wxTopLevelWindowGTK::DoSetSizeHints if a window scale > +factor larger than 1 is set. > + > +In this case, passing INT_MAX as maximum width/height hint > +to gtk_window_set_geometry_hints leads to integer overlows. > + > +Instead, use INT_MAX / 16 which should work with all > +resonable scale factors. Okay, thanks! But, instead of using the proposed patch from the upstream bug report, we should use the commit that was applied to the appropriate wxWidgets branch and, if possible, include a link to that commit in their web-based Git interface. Can you send an updated patch?