[Patch] PDF builds on Red Hat for <= 9.6

Started by Devrim GÜNDÜZover 8 years ago3 messagesdocs
Jump to latest
#1Devrim GÜNDÜZ
devrim@gunduz.org

Hi,

Every time I install a new laptop, I lose a few hours while building Postgres
PDFs, because of some missing packages, so time to send a patch.

Attached is a small patch that updates docguide.sgml, and adds two missing
RPMs.

We don't need this patch for >= 10.

Regards,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachments:

pgsql-docguide-redhat.patchtext/x-patch; charset=UTF-8; name=pgsql-docguide-redhat.patchDownload+1-1
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Devrim GÜNDÜZ (#1)
Re: [Patch] PDF builds on Red Hat for <= 9.6

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

Every time I install a new laptop, I lose a few hours while building Postgres
PDFs, because of some missing packages, so time to send a patch.

-yum install docbook-dtds docbook-style-dsssl docbook-style-xsl libxslt openjade
+yum install docbook-dtds docbook-style-dsssl docbook-style-xsl libxslt openjade texlive-collection-fontsrecommended texlive-times

Hm ... my RHEL6 machine, which certainly can build the documentation,
hasn't got either of those:

$ rpm -qa | grep texlive | sort
texlive-2007-60.el6_7.x86_64
texlive-dvips-2007-60.el6_7.x86_64
texlive-latex-2007-60.el6_7.x86_64
texlive-texmf-2007-39.el6_7.noarch
texlive-texmf-dvips-2007-39.el6_7.noarch
texlive-texmf-errata-2007-7.1.el6.noarch
texlive-texmf-errata-dvips-2007-7.1.el6.noarch
texlive-texmf-errata-fonts-2007-7.1.el6.noarch
texlive-texmf-errata-latex-2007-7.1.el6.noarch
texlive-texmf-fonts-2007-39.el6_7.noarch
texlive-texmf-latex-2007-39.el6_7.noarch
texlive-utils-2007-60.el6_7.x86_64

So evidently Red Hat has refactored their TeX RPMs since then.
I don't doubt Devrim's conclusions are good for recent Red Hat
releases, but we might want to add some weasel wording saying
that the required package set has moved around.

Personally, my longstanding habit has been to select the
"Authoring & Publishing" package set when installing any new
RHEL or Fedora box, and as far as I can recall, that's always
Just Worked for building PG docs. Maybe we should mention
that strategy as a preferable one.

regards, tom lane

--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs

#3Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: Tom Lane (#2)
Re: [Patch] PDF builds on Red Hat for <= 9.6

Hi Tom,

On Wed, 2017-11-08 at 11:54 -0500, Tom Lane wrote:

Hm ... my RHEL6 machine, which certainly can build the documentation,
hasn't got either of those:

<snip>

So evidently Red Hat has refactored their TeX RPMs since then.
I don't doubt Devrim's conclusions are good for recent Red Hat
releases,

Right, I tested on Fedora 26, and then on RHEL 7. Sorry.

but we might want to add some weasel wording saying
that the required package set has moved around.

Personally, my longstanding habit has been to select the
"Authoring & Publishing" package set when installing any new
RHEL or Fedora box, and as far as I can recall, that's always
Just Worked for building PG docs. Maybe we should mention
that strategy as a preferable one.

This will install extra packages, which are not needed, but given that very few
people will install this set, I am fine with this solution.

Regards,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR