pgxs docdir question

Started by Devrim GÜNDÜZover 15 years ago8 messageshackers
Jump to latest
#1Devrim GÜNDÜZ
devrim@gunduz.org

Where does PGXS makefile get /usr/share/doc/pgsql/contrib directory
from?

While building 3rd party RPMs using PGXS, even if I specify docdir in
Makefile, README.* files are installed to this directory, which breaks
parallel installation path as of 9.0+

Speficially, I want to install READMEs
under /usr/pgsql-9.0/share/contrib for 9.0. How do I do that?

Regards,
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Devrim GÜNDÜZ (#1)
Re: pgxs docdir question

Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim@gunduz.org> writes:

Where does PGXS makefile get /usr/share/doc/pgsql/contrib directory
from?

While building 3rd party RPMs using PGXS, even if I specify docdir in
Makefile, README.* files are installed to this directory, which breaks
parallel installation path as of 9.0+

Maybe you need to fool with MODULEDIR. See
http://archives.postgresql.org/pgsql-committers/2010-01/msg00025.php

regards, tom lane

#3Dimitri Fontaine
dimitri@2ndQuadrant.fr
In reply to: Tom Lane (#2)
Re: pgxs docdir question

Tom Lane <tgl@sss.pgh.pa.us> writes:

Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim@gunduz.org> writes:

Where does PGXS makefile get /usr/share/doc/pgsql/contrib directory
from?

While building 3rd party RPMs using PGXS, even if I specify docdir in
Makefile, README.* files are installed to this directory, which breaks
parallel installation path as of 9.0+

Maybe you need to fool with MODULEDIR. See
http://archives.postgresql.org/pgsql-committers/2010-01/msg00025.php

Well it's been working fine in debian without that for a long time
now. I've taken the liberty to CC Martin Pitt, because I don't have the
time to look at how things are done exactly in his debian packaging
there.

http://bazaar.launchpad.net/%7Epitti/postgresql/common/files
https://code.launchpad.net/postgresql

Regards,
--
dim

#4Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: Tom Lane (#2)
Re: pgxs docdir question

On Sun, 2010-09-19 at 17:36 -0400, Tom Lane wrote:

While building 3rd party RPMs using PGXS, even if I specify docdir

in

Makefile, README.* files are installed to this directory, which

breaks

parallel installation path as of 9.0+

Maybe you need to fool with MODULEDIR. See
http://archives.postgresql.org/pgsql-committers/2010-01/msg00025.php

Has anyone used this successfully? It did not work for me, and I'm
hacking spec files in order to install docs under somewhere else.
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Devrim GÜNDÜZ (#4)
Re: pgxs docdir question

Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim@gunduz.org> writes:

On Sun, 2010-09-19 at 17:36 -0400, Tom Lane wrote:

While building 3rd party RPMs using PGXS, even if I specify docdir in
Makefile, README.* files are installed to this directory, which breaks
parallel installation path as of 9.0+

Maybe you need to fool with MODULEDIR. See
http://archives.postgresql.org/pgsql-committers/2010-01/msg00025.php

Has anyone used this successfully? It did not work for me, and I'm
hacking spec files in order to install docs under somewhere else.

I just tried it, and AFAICT the makefiles do honor "configure --docdir=PATH"
... what are you using exactly? What does "pg_config --docdir" report?

regards, tom lane

#6Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: Tom Lane (#5)
Re: pgxs docdir question

On Mon, 2010-10-11 at 13:30 -0400, Tom Lane wrote:

What does "pg_config --docdir" report?

$ /usr/pgsql-9.0/bin/pg_config --docdir
/usr/share/doc/pgsql

I was expecting it to be somewhere in /usr/pgsql-9.0, where it is the
--prefix. Am I wrong?

Regards,
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz

#7Tom Lane
tgl@sss.pgh.pa.us
In reply to: Devrim GÜNDÜZ (#6)
Re: pgxs docdir question

Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim@gunduz.org> writes:

On Mon, 2010-10-11 at 13:30 -0400, Tom Lane wrote:

What does "pg_config --docdir" report?

$ /usr/pgsql-9.0/bin/pg_config --docdir
/usr/share/doc/pgsql

I was expecting it to be somewhere in /usr/pgsql-9.0, where it is the
--prefix. Am I wrong?

I think docdir is separate from the regular prefix. Try specifying
--docdir to configure.

regards, tom lane

#8Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: Tom Lane (#7)
Re: pgxs docdir question

On Tue, 2010-10-12 at 09:36 -0400, Tom Lane wrote:

I think docdir is separate from the regular prefix. Try specifying
--docdir to configure.

Thanks, I'll test (not now, but soon).

Regards,
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz