[Pkg-postgresql-public] Bug#506728: postgresql-8.3-plr: Does not run ldconfig and does not set R_HOME in postgresql environment
Andreas Tille
tillea at rki.de
Tue Nov 25 08:05:37 UTC 2008
On Tue, 25 Nov 2008, Martin Pitt wrote:
>> Makefile:override CPPFLAGS += -DR_HOME_DEFAULT=\"$(rhomedef)\"
>
> That looks interesting! Maybe setting $rhomedef during build will
> already exactly do what we need?
>
>> pg_userfuncs.c: unsetenv("R_HOME");
>> plr.c: r_home = getenv("R_HOME");
>> plr.c: size_t rh_len = strlen(R_HOME_DEFAULT);
>
> This seems to be the important code, indeed. If $R_HOME_DEFAULT isn't
> already a fallback, then having something like
>
> r_home = getenv("R_HOME");
> if (!r_home)
> r_home = "/usr/lib/R";
>
> should do the trick?
I will give it a try, but it might last 2 weeks + x because I'm offline
for the next week and have to prepare something in advance.
Kind regards
Andreas.
--
http://fam-tille.de
More information about the Pkg-postgresql-public
mailing list