Subject: Re: postgresql -- missing files?
To: Jan Danielsson <>
From: Greg Troxel <>
List: pkgsrc-users
Date: 06/21/2007 10:49:35
Content-Transfer-Encoding: quoted-printable

Jan Danielsson <> writes:

[from an earlier message]
> Makefile:41: /usr/pkg/lib/postgresql/pgxs/src/makefiles/ No such =
file or directory
> gmake: *** No rule to make target
> `/usr/pkg/lib/postgresql/pgxs/src/makefiles/'.  Stop.

> Joerg Sonnenberger wrote:
>> On Wed, Jun 20, 2007 at 07:22:04PM +0200, Jan Danielsson wrote:
>>>    According to the PL/R developer, those files should have been
>>> installed for me when I installed postgresql. He suggests that perhaps
>>> there is a "postgres-devel" package. AFAIK, the general philosophy in
>>> pkgsrc is that there are no "devel" packages. When you install a
>>> package, you get it all -- which is the way I prefer it.
>> We don't install them, because there was literally NO use for them so
>> far. I also strongly question whether it makes sense at all. Seriously,
>> is that piece of software you see not using autoconf or so anyway? The
>> fragment saves barely no work...
>    I just want to verify: postgresql in pkgsrc will not be fixed to
> support projects like PL/R?
>    FWIW, I believe I have a working package. All I need is that missing
> file, AFAIK.

I am not deeply familiar with the postgresql install procedure, but my
reaction is that if a "standard postgresql install", meaning following
the directions in the source tarball and not using a packaging system
installs the file, the package should too.

If PL/R uses a file that's not part of the default install, then there's
a bug between postgresql and PL/R someplace.  But it seems fair enough
for pkgsrc to cope with that somehow.  It's not like postgresql is a
tiny package and a small file will hurt.

Looking at postgresql82, I see that it sets BUILD_DIRS to a number of

postgresql82-client/Makefile:INSTALL_DIRS=3D      src/include
postgresql82-client/Makefile:INSTALL_DIRS+=3D     src/interfaces
postgresql82-client/Makefile:INSTALL_DIRS+=3D     src/bin
postgresql82-client/Makefile:INSTALL_DIRS+=3D     doc
postgresql82-client/Makefile:BUILD_DIRS=3D        ${INSTALL_DIRS}
postgresql82-client/Makefile:BUILD_DIRS+=3D       src/backend
postgresql82-plperl/Makefile:BUILD_DIRS=3D                src/pl/plperl
postgresql82-plpython/Makefile:BUILD_DIRS=3D              src/pl/plpython
postgresql82-pltcl/Makefile:BUILD_DIRS=3D         src/pl/tcl
postgresql82-server/Makefile:BUILD_DIRS=3D                src/backend
postgresql82-server/Makefile:BUILD_DIRS+=3D               src/backend/utils=
postgresql82-server/Makefile:BUILD_DIRS+=3D               src/timezone
postgresql82-server/Makefile:BUILD_DIRS+=3D               src/pl
postgresql82-tsearch2/Makefile:BUILD_DIRS=3D              contrib/tsearch2/=
snowball contrib/tsearch2

I would argue that all of files installed by the native postgresql install
should be installed by the union of all the packages.

Plausible options seem to be adding a postgresql82-pgxs package (but
this seems silly), and adding the dir with the mk file to BUILD_DIRS for
one of the existing packages.  Does PL/R depend on the server or client?
It seems easy enough to add BUILD_DIRS+=3D and to add the file to the

Whether or not this is an elegant build system is another story, but
pkgsrc does not have such an aesthetic filter as part of its mission.

Comments from the maintainer?  Is it ok to add the file for Jan?

Content-Type: application/pgp-signature

Version: GnuPG v1.4.7 (NetBSD)