[Pkg-postgresql-public] Bug#706849: libpq5: enable multi-arch

Christoph Berg myon at debian.org
Mon May 6 05:51:00 UTC 2013


Re: Helmut Grohne 2013-05-05 <20130505131722.GA23687 at alf.mars>
> I tried to come up with a patch for this, but apparently this is not
> totally trivial. One step required for gaining multi-arch is to change
> --libdir to /usr/lib/<triplet>. This also changes
> /usr/lib/postgresl/$(MAJORVER)/lib to
> /usr/lib/<triplet>/postgresl/$(MAJORVER)/lib, but leaves
> /usr/lib/postgresql/$(MAJORVER)/bin unchanged. I cannot tell whether
> such a setup continues to work, but it is ugly to say the least. Also
> moving anything from /usr/lib/postgresql/$(MAJORVER) to a multi-arch
> path would cause breakage in postgresql-common, because it expects
> non-multiarch paths in certain scripts. As it stands I am not convinced,
> that changing --libdir is the route to success here and the only package
> that really benefits from multi-arch is libpq5.

Hi Helmut,

thanks for looking into this.

This will unfortunately also break any extension module that installs
its .so files into /usr/lib/postgresl/$(MAJORVER)/lib because the
server's libdir will then also be multi-archified, and the server
won't file the .so files anymore. (Not tested, but I'd surprised if it
wasn't the case.)

Generally I'm in favor of multi-archifying the lib packages, but we
need to make sure we don't mess things up. (The testsuite will
probably need to grow some tests for this, too, unless we think we
already have enough "it works"-style tests already.)

We'd need to try it, but I think just moving our .so files around
manually should work, though this is also a pretty ugly solution
because it won't work with static debian/*.install files.

(And if we do this, I need to find a way how to auto-revert this for
the squeeze suite on apt.postgresql.org...)

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20130505/dd2a92c3/attachment.pgp>


More information about the Pkg-postgresql-public mailing list