From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] gnu: r: Add pango to inputs. Date: Fri, 17 Jun 2016 14:26:17 +0200 Message-ID: References: <20160617101312.11798-1-ricardo.wurmus@mdc-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDsr1-0003dq-3b for guix-devel@gnu.org; Fri, 17 Jun 2016 08:26:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDsqw-0005eM-Tn for guix-devel@gnu.org; Fri, 17 Jun 2016 08:26:30 -0400 Received: from thebe.bbbm.mdc-berlin.de ([141.80.25.41]:43753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDsqw-0005eI-J5 for guix-devel@gnu.org; Fri, 17 Jun 2016 08:26:26 -0400 Received: from thebe.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (thebe.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LzNHkSVNBM6V for ; Fri, 17 Jun 2016 14:26:19 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (htcatwo.dv10.mdc-berlin.de [141.80.180.190]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thebe.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Fri, 17 Jun 2016 14:26:18 +0200 (CEST) In-Reply-To: <20160617101312.11798-1-ricardo.wurmus@mdc-berlin.de> 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: guix-devel@gnu.org Ricardo Wurmus writes: > Hi Guix, > > our R package is currently built with Cairo, which allows R to use the Cairo > rendering backend. When R starts up and loads grDevices, however, it checks > for the availability of Pango, not Cairo. So even though the Cairo backend > works just fine, R falls back to using the primitive Xlib backend. > > You can confirm this by running this in R: > > getOption('bitmapType') > options(bitmapType='cairo') > > The first command should show you "Xlib" with R from Guix. The second sets > the backend to Cairo, which works without problems. > > I decided against patching the detection mechanism in R because I don't know > if R might use Pango features elsewhere. Instead I opted to add Pango to the > inputs. Pango pulls in Cairo, so the package closure is a little bigger than > before. Pango makes up 0.7% of the total size, so I think that's okay. > > ~~ Ricardo I also just stumbled upon an old message to the mailing list, which I had completely forgotten about: http://lists.gnu.org/archive/html/guix-devel/2015-09/msg00279.html This is the very same problem and it is solved by giving R what it wants: Pango. ~~ Ricardo