From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH] gnu: r: Add pango to inputs. Date: Fri, 17 Jun 2016 12:13:11 +0200 Message-ID: <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]:39626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDqmt-00038I-P2 for guix-devel@gnu.org; Fri, 17 Jun 2016 06:14:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDqmn-0007Al-Nr for guix-devel@gnu.org; Fri, 17 Jun 2016 06:14:06 -0400 Received: from leda.bbbm.mdc-berlin.de ([141.80.25.31]:59649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDqmn-0007AJ-E4 for guix-devel@gnu.org; Fri, 17 Jun 2016 06:14:01 -0400 Received: from leda.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (leda.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rtw6X0nyQ52y for ; Fri, 17 Jun 2016 12:13:54 +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 leda.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Fri, 17 Jun 2016 12:13:53 +0200 (CEST) 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 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 Ricardo Wurmus (1): gnu: r: Add pango to inputs. gnu/packages/statistics.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.8.4