Skip site navigation (1) Skip section navigation (2)

Re: PL/perl should fail on configure, not make

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PL/perl should fail on configure, not make
Date: 2013-01-10 21:18:31
Message-ID: 50EF3027.8010009@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackers
On 1/9/13 12:50 PM, Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> On 1/9/13 11:00 AM, Tom Lane wrote:
>>> The libperl-dev package, as constituted, doesn't make any sense: it's
>>> got the symlink which people need, and a very large static (.a) library
>>> that most people don't need.  Even worse, you can't tell without close
>>> inspection which of those files is actually used by a package that
>>> requires libperl-dev, and that is something that's important to know.
> 
>> The expectation is that if you want to link against libfoo, you install
>> libfoo-dev, and after that you can uninstall it.  What's wrong with that?
> 
> What's wrong is that it's hard to tell whether the resulting package
> will contain a reference to the shared library (libperl.so.whatever)
> or an embedded copy of the static library.  As I tried to explain, this
> is something that a well-run distro will want to be able to control,
> or at least determine automatically from the package's BuildRequires
> list (RPM-ism, not sure what Debian's package management stuff calls the
> equivalent concept).  That makes it a bad idea independently of the
> problem of whether two configure tests are needed rather than one.

Yeah, this has nothing to do with how Perl is packaged.  The issue of
linking against static vs shared libraries is well understood, but a
separate debate.  There are other packaging tools that make sure this
works out.  Even if there were no static libraries, libperl-dev might
still exist.  The core issue here is that header files and link-time
library files are in different packages that can be installed
separately.  Any other library were this choice was made would create
the same issue.  The fault is that configure checks only one thing and
assumes two.


In response to

Responses

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2013-01-10 21:20:01
Subject: Re: PL/perl should fail on configure, not make
Previous:From: Alvaro HerreraDate: 2013-01-10 21:00:40
Subject: Re: foreign key locks

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group