tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Multiple versions of PostGreSQL



On Wed, Aug 24, 2016 at 12:04:28AM +0200, Thomas Klausner wrote:
> On Tue, Aug 23, 2016 at 03:56:23PM +0200, Richard Palo wrote:
> > The solaris distribution tarballs found on postgresql.org builds everything typically under 
> > e.g. postgres/9.5-pgdg (usually installed to /usr)  ... that is, generally speaking, multiple versions
> > (even multiple architectures) are reasonably easily supported.
> > 
> > Strictly speaking, that part is easy, and similar is already done for a number of packages like java.
> > In any event this is probably the first step which, should probably be done.
> > 
> > Also, I happened to notice today that ubuntu linux has a package called postgresql-commons 
> > (https://launchpad.net/ubuntu/+source/postgresql-common)
> > which looks like it may contain some elements which might be interesting to consider here.
> > 
> > Haven't tried it but if no one else has, I'll see if I get something in wip next month or so for evaluation.
> 
> As Richard says, we already have a couple packages that install into their own prefix.
> E.g. lang/guile
> 
> The important lines are these:
> 
> GUILE_PREFIX=                   ${PREFIX}/guile/1.8
> GNU_CONFIGURE_PREFIX=           ${GUILE_PREFIX}
> BUILDLINK_PASSTHRU_DIRS+=       ${GUILE_PREFIX}
> LDFLAGS+=                       ${COMPILER_RPATH_FLAG}${GUILE_PREFIX}/lib
> 
> and these in buildlink3.mk:
> 
> BUILDLINK_PASSTHRU_DIRS=                ${LOCALBASE}/guile/1.8
> BUILDLINK_FILES.guile+=                 guile/1.8/bin/*
> BUILDLINK_FNAME_TRANSFORM.guile+=       -e s,guile/1.8/bin,bin,
> BUILDLINK_FNAME_TRANSFORM.guile+=       -e s,guile/1.8/lib/pkgconfig,lib/pkgconfig,

The problem is that it makes the common use case more difficult, i.e. it
is quite more typical to want to access Postgres files directly than to
interact with Guile. That's why I am not a fan of this.

Joerg


Home | Main Index | Thread Index | Old Index