postgresql-contrib problem

Edwin Groothuis edwin at mavetju.org
Thu Jul 10 17:26:00 EDT 2008


On Thu, Jul 10, 2008 at 03:28:22PM -0400, Joe Marcus Clarke wrote:
> Rouslan wrote:
> >Hi,
> >
> >I'm trying to build postgresql-contrib in my tinderbox and it fails with 
> >distinfo_upgrade error.
> >I have WITH_PGSQL_VER=83 in my build.env and all ports builds with 
> >postgresql 8.3.3 without any problem.
> >Is it possible to fix it?
> 
> This looks like a bug with the port, and not with Tinderbox:
> 
> # cd /usr/ports/databases/postgresql-contrib
> # make WITH_PGSQL_VER=83 -V PKGNAME
> postgresql-contrib-8.2.9_1
> 
> You might want to bug the maintainer.

It's a know issue:

    DEFAULT_PGSQL_VER?=82

    # can't include <bsd.port.pre.mk> in a slave port
    # so set these instead:
    LOCALBASE?=     /usr/local
    SED?=           /usr/bin/sed

    # Setting/finding PostgreSQL version we want.
    .if exists(${LOCALBASE}/bin/pg_config)
    PGSQL_VER!=     ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)[^0-9].*/\1\2/p'
    .else
    PGSQL_VER=      ${DEFAULT_PGSQL_VER}
    .endif

etc

I don't know what happened to the patches which said in bsd.databases.mk
"if you change this here, you nee to change it also in
databases/postgresql-contrib."

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |              Weblog: http://www.mavetju.org/weblog/


More information about the tinderbox-list mailing list