pg.ddx.io pgsql-pkg-debian@postgresql.org mailing list archive
help / color / mirror / Atom feedsmall PL/R problem
3+ messages / 2 participants
[nested] [flat]
* small PL/R problem
@ 2014-09-03 21:00 Robert Stone <talby@trap.mtview.ca.us>
0 siblings, 1 reply; 3+ messages in thread
From: Robert Stone @ 2014-09-03 21:00 UTC (permalink / raw)
To: pgsql-pkg-debian
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.
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.
http://wiki.postgresql.org/wiki/Apt#Bugs sent me here. I've
been working with postgresql-9.0-plr version 1:8.3.0.15-3.pgdg10.4+1,
though this seems to also be present with the latest version
1:8.3.0.15-3~12.git3cb079c.pgdg10.4+1.
Thanks,
Robert Stone
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: small PL/R problem
@ 2014-09-05 07:48 Christoph Berg <cb@df7cb.de>
parent: Robert Stone <talby@trap.mtview.ca.us>
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Berg @ 2014-09-05 07:48 UTC (permalink / raw)
To: Robert Stone <talby@trap.mtview.ca.us>; +Cc: pgsql-pkg-debian
Re: Robert Stone 2014-09-03 <20140903210016.GE74405@Robert-Stone.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@df7cb.de | http://www.df7cb.de/
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: small PL/R problem
@ 2014-09-05 17:45 Robert Stone <talby@trap.mtview.ca.us>
parent: Christoph Berg <cb@df7cb.de>
0 siblings, 0 replies; 3+ messages in thread
From: Robert Stone @ 2014-09-05 17:45 UTC (permalink / raw)
To: Christoph Berg <cb@df7cb.de>; pgsql-pkg-debian
On Fri, Sep 05, 2014 at 09:48:36AM +0200, Christoph Berg wrote:
> Re: Robert Stone 2014-09-03 <20140903210016.GE74405@Robert-Stone.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!
>
This all makes perfect sense. Thanks for your help!
-Robert
--
Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-pkg-debian
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2014-09-05 17:45 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-09-03 21:00 small PL/R problem Robert Stone <talby@trap.mtview.ca.us>
2014-09-05 07:48 ` Christoph Berg <cb@df7cb.de>
2014-09-05 17:45 ` Robert Stone <talby@trap.mtview.ca.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox