Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2011 10:50:12 -0400 (EDT)
From:      Steven Kreuzer <skreuzer@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        bf@FreeBSD.org
Subject:   ports/159876: [PATCH] math/R: Fix Cario and Atlas bugs
Message-ID:  <201108181450.p7IEoCuY014818@exit2shell.com>
Resent-Message-ID: <201108181500.p7IF0LPE034265@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159876
>Category:       ports
>Synopsis:       [PATCH] math/R: Fix Cario and Atlas bugs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 18 15:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Steven Kreuzer
>Release:        FreeBSD 7.3-STABLE amd64
>Organization:
>Environment:
System: FreeBSD slurry.exit2shell.com 7.3-STABLE FreeBSD 7.3-STABLE #5: Mon Sep 20 15:49:56 EDT 2010
>Description:
When R is compiled with cairo, running something like "example(getGraphicsEvent())" results
in an error stating "this graphics device does not support event handling". The patch to
src/modules/X11/devX11.c will correct this. Additional information on this bug can be found at
http://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14364

When R is compiled with atlas support, a typo in the value passwd to --with-lapack prevent it from
linking against lapack, and libRlapack.so does not get installed so linear algebra functions will
fail since lapack.so will not be able to load the shared object libRlapack.so

Added file(s):
- files/patch-src__modules__X11__devX11.c

Port maintainer (bf@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
How-To-Repeat:

For the cairo issue, run
	example(getGraphicsEvent); in an R session

For the atlas issue, invert a matrix:
	solve(matrix(1:4, nrow=2, ncol=2)) 

>How-To-Repeat:
>Fix:

--- R-2.13.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /usr/share/cvs/freebsd/ports/math/R/Makefile,v
retrieving revision 1.101
diff -u -u -r1.101 Makefile
--- Makefile	4 Aug 2011 23:32:05 -0000	1.101
+++ Makefile	18 Aug 2011 13:43:23 -0000
@@ -8,6 +8,7 @@
 
 PORTNAME?=	R
 PORTVERSION=	2.13.1
+PORTREVISION=	1
 CATEGORIES=	math lang
 MASTER_SITES=	http://cran.r-project.org/src/base/R-2/ \
 		ftp://cran.r-project.org/pub/R/src/base/R-2/ \
@@ -99,7 +100,7 @@
 .if defined(WITH_ATLAS)
 LIB_DEPENDS+=		atlas.2:${PORTSDIR}/math/atlas
 BLAS?=			-lf77blas -latlas
-LAPACK?=		-lalapack -lcblas
+LAPACK?=		-llapack -lcblas
 .else
 BLAS?=			no
 LAPACK?=		no
Index: files/patch-src__modules__X11__devX11.c
===================================================================
RCS file: files/patch-src__modules__X11__devX11.c
diff -N files/patch-src__modules__X11__devX11.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src__modules__X11__devX11.c	17 Aug 2011 19:45:39 -0000
@@ -0,0 +1,20 @@
+--- src/modules/X11/devX11.c.orig	2010-08-20 07:05:35.000000000 +0200
++++ src/modules/X11/devX11.c	2010-08-20 08:36:40.000000000 +0200
+@@ -2528,12 +2528,12 @@
+ 	dd->polygon = X11_Polygon;
+ 	dd->metricInfo = X11_MetricInfo;
+ 	dd->hasTextUTF8 = FALSE;
+-    	dd->eventHelper = X11_eventHelper;
+-    	dd->canGenMouseDown = TRUE;
+-	dd->canGenMouseUp = TRUE;
+-	dd->canGenMouseMove = TRUE;
+-	dd->canGenKeybd = TRUE;
+     }
++    dd->eventHelper = X11_eventHelper;
++    dd->canGenMouseDown = TRUE;
++    dd->canGenMouseUp = TRUE;
++    dd->canGenMouseMove = TRUE;
++    dd->canGenKeybd = TRUE;
+ 
+     dd->activate = X11_Activate;
+     dd->close = X11_Close;
--- R-2.13.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108181450.p7IEoCuY014818>