Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XQBwV-0001L7-Bz for pgsql-pkg-debian@arkaria.postgresql.org; Sat, 06 Sep 2014 09:05:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XQBwU-00055s-D6 for pgsql-pkg-debian@arkaria.postgresql.org; Sat, 06 Sep 2014 09:05:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XPxaF-00019U-6h for pgsql-pkg-debian@postgresql.org; Fri, 05 Sep 2014 17:46:03 +0000 Received: from trap.mtview.ca.us ([209.237.40.11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XPxa9-0001ZP-Ht for pgsql-pkg-debian@postgresql.org; Fri, 05 Sep 2014 17:45:59 +0000 Received: from draupnir.lan.whs (unknown [12.248.108.202]) (Authenticated sender: talby) by trap.mtview.ca.us (Postfix) with ESMTPSA id B7DF61A602AC; Fri, 5 Sep 2014 10:45:55 -0700 (PDT) Date: Fri, 5 Sep 2014 10:45:51 -0700 From: Robert Stone To: Christoph Berg , pgsql-pkg-debian@postgresql.org Subject: Re: small PL/R problem Message-ID: <20140905174551.GA5095@draupnir.lan.whs> References: <20140903210016.GE74405@Robert-Stone.local> <20140905074836.GA6699@msg.df7cb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140905074836.GA6699@msg.df7cb.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -3.6 (---) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org 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