clone 310198 -1
severity -1 wishlist
reassign -1 r-base-core
retitle -1 please distribute Startup.h from src/include/Startup.h in
/usr/lib/R/include/
tag -1 =
submitter -1 !
thanks
On Sun, 22 May 2005, Dirk Eddelbuettel wrote:
> I just checked the changelog. 0.4.1 (upstream) added headers for R
> 2.0.1. Debian 0.4.1-3 added R-2.1.0 building on the existing
> "batteries err generators included" framework of yielding to all
> known recent R versions.
I'd argue that this is a bad idea, because it relies on the copy
present in the package being definitive, instead of using what is
actually installed. [Not to mention this sort of duplication requiring
extra effort on the part of the maintainer to keep things in sync...]
The patch to do this is exceedingly trivial, except for one minor
problem:
include_dirs = ['/usr/lib/R/include',
'src' ]
The minor problem is that r-base-core does not distribute Startup.h
for some reason. [Why the headers are in r-base-core instead of
r-base-dev, I've no idea... but I suppose there's a good reason.]
To that end, I've cloned a wishlist bug on r-base-core asking for
Startup.h to be distributed. I've attached the patch, but it won't fix
the current "issue" until r-base-core implements this change. [I
suppose you could just distribute Startup.h in the package... but that
seems kind of suboptimal.]
Don Armstrong
--
"There's nothing remarkable about it. All one has to do is hit the
right keys at the right time and the instrument plays itself."
-- Bach
http://www.donarmstrong.com http://rzlab.ucr.edu
--- setup.py~ 2004-12-22 14:28:46.000000000 -0800
+++ setup.py 2005-05-22 22:19:10.000000000 -0700
@@ -133,10 +133,12 @@
extra_compile_args=["-shared"]
source_files = source_files + ["src/setenv.c"]
else: # unix-like systems, this is known to work for Linux and Solaris
- RSRC = get_R_SRC()
- include_dirs = [ os.path.join(RHOME.strip(), 'include'),
- os.path.join(RSRC.strip(), 'src/include'),
- 'src' ]
+# RSRC = get_R_SRC()
+ include_dirs = ['/usr/lib/R/include',
+ 'src' ]
+# include_dirs = [ os.path.join(RHOME.strip(), 'include'),
+# os.path.join(RSRC.strip(), 'src/include'),
+# 'src' ]
libraries=['R']
library_dirs = r_libs
runtime_libs = r_libs