pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Stone <talby@trap.mtview.ca.us>
To: pgsql-pkg-debian@postgresql.org
Subject: small PL/R problem
Date: Wed, 3 Sep 2014 14:00:16 -0700
Message-ID: <20140903210016.GE74405@Robert-Stone.local> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (3+ messages)  latest in thread

Message-ID: <20140903210016.GE74405@Robert-Stone.local>
Permalink:  ../20140903210016.GE74405@Robert-Stone.local/
Also on:    postgresql.org/message-id/20140903210016.GE74405@Robert-Stone.local

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-pkg-debian@postgresql.org
  Cc: talby@trap.mtview.ca.us
  Subject: Re: small PL/R problem
  In-Reply-To: <20140903210016.GE74405@Robert-Stone.local>
  References: <20140903210016.GE74405@Robert-Stone.local>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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