Re: small PL/R problem

From: Christoph Berg <cb(at)df7cb(dot)de>
To: Robert Stone <talby(at)trap(dot)mtview(dot)ca(dot)us>
Cc: pgsql-pkg-debian(at)postgresql(dot)org
Subject: Re: small PL/R problem
Date: 2014-09-05 07:48:36
Message-ID: 20140905074836.GA6699@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

Re: Robert Stone 2014-09-03 <20140903210016(dot)GE74405(at)Robert-Stone(dot)local>
> In the plr package (version 1:8.3.0.15-3.pgdg10.4+1) it seems
> like the debian/postinst file is not making it into the .deb files and
> that has caused a bug fix by version 1:8.3.0.8-2 to resurface. The
> runtime linker is unable to find libR.so.
>
> To recover the postinst script, I had success adding:
>
> override_dh_installdeb:
> for i in `pg_buildext supported-versions` ; \
> do cp debian/postinst debian/postgresql-$$i-plr.postinst ; \
> done
> dh_installdeb
>
> to the debian/rules file. I also noticed that there is no corresponding
> postrm to undo the effects of the postinst script.

Oh, excellent catch! This bug is only present on lucid, as newer
Ubuntu/Debian dists all have this symlink in r-base-core. Our package
tests didn't notice because we test all .deb files in one run and as
the first package in debian/control uses debian/postinst, the symlink
will be there.

> There are certainly other ways to solve this linking issue,
> adding an rpath to plr.so seems reasonable. This could be done by
> adding "-Wl,-rpath$(r_libdir2x)" to the SHLIB_LINK value in the
> Makefile at the cost of trigging a "binary-or-shlib-defines-rpath"
> lintian warning during Debian package builds. It seems like Debian's
> general stance against rpaths may not be applicable in this case.

It's a bug in r-base-core which should really be fixed there, but I'm
not going to try to get it fixed in lucid, so adding this symlink
workaround which will only trigger on lucid seems appropriate, while
an rpath would be present in packages for all distributions.

I've added your patch to the plr package. It's rebuilding atm, I'll
promote the packages shortly. Thanks for the report!

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

In response to

Responses

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message apt.postgresql.org repository 2014-09-05 08:01:42 plr updated to version 1:8.3.0.15-5~14.git6f4c76f.pgdg+1
Previous Message Robert Stone 2014-09-03 21:00:16 small PL/R problem