Hi all,

I'm adding David (pgTAP author) in CC: of this discussion.

David: this is about finding if binaries (pg_prove and pg_tapgen) should
be stored in /usr/bin (if it is common to all postgresql versions) or in
/usr/lib/postgresql/*/bin if it is version-specific.
The complete discussion can be found here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568106

If it's version specific, I think I should add the version to the name
of the binary package.

BR,
Pierre

On Fri, Feb 19, 2010 at 10:48:25PM +0100, Martin Pitt wrote:
> Hello all,
> 
> Stefano Zacchiroli [2010-02-19 18:59 +0100]:
> > On Tue, Feb 09, 2010 at 10:08:50PM +1100, Ben Finney wrote:
> > > The attached patch addresses this bug, by declaring the ‘/usr/bin/’
> > > directory and installing the programs into the correct location.
> > 
> > Actually, I'm not sure the patch is the right one. My doubts come from
> > the fact that postgresql binaries are usually installed under
> > /usr/lib/postgresql/*/bin/ and then have symlinks under /usr/bin/ which
> > pass through /usr/share/postgresql-common/pg_wrapper . Are you sure that
> > pg_prove and pg_tagpen should not have the same fate? Can please the
> > maintainer comment on that?
> 
> I'm a bit confused by pgtap on first sight. It builds against a
> particular server version (8.4), but does not itself have a versioned
> package name, and only links/depends on libpq5, no server. 
> 
>  * Is pgtap client side only, in other words, does it work with
>    several server versions? In that case, binaries should go to
>    /usr/bin, as Peter and Ben suggested. 
> 
>  * If this is a server-side extension, i. e. is linked against a
>    particular server version and won't work with any other, then the
>    binary should have a versioned name, and we need to manage the
>    binaries through pg_wrapper.
> 
> Please see /usr/share/doc/postgresql-common/architecture.html for some
> more details about how this is designed.
> 
> Thanks, and have a good weekend,
> 
> Martin
>    
> P.S. Just don't let you confuse with "Use appropriate ‘debian/dirs’
> file for single-package source". Using an explicit package name, such
> as debian/pgtap.dirs is just fine, and causes less confusion if you
> ever add a second binary package.
> 
> -- 
> Martin Pitt                        | http://www.piware.de
> Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)





--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to