Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters

Lists: pgsql-docspgsql-hackers
From: Brendan Jurd <direvus(at)gmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: DOCS: SGML identifier may not exceed 44 characters
Date: 2011-05-31 06:17:22
Message-ID: BANLkTiktW6SRDygVfJRB4q+7dvWoQCC1Yg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

Hi folks,

I was working on a little docs patch today, and when I tried to
`make`, openjade choked on an identifier in information_schema.sgml,
which is very much unrelated to my changes:

openjade:information_schema.sgml:828:60:Q: length of name token must
not exceed NAMELEN (44)

Here is a trivial patch to shut openjade up. This particular id does
not appear to be referred to anywhere else in the docs yet.

The identifier appears to have been introduced in commit
2e2d56fea97f43cf8c40a87143bc10356e4ed4d4 on Feb 9 this year.

I'm using openjade 1.3.2.

Cheers,
BJ

diff --git a/doc/src/sgml/information_schema.sgml
b/doc/src/sgml/information_schema.sgml
index 2febb4c..5fdbd51 100644
--- a/doc/src/sgml/information_schema.sgml
+++ b/doc/src/sgml/information_schema.sgml
@@ -825,7 +825,7 @@
</table>
</sect1>

- <sect1 id="infoschema-collation-character-set-applicability">
+ <sect1 id="infoschema-collation-charset-applicability">
<title><literal>collation_character_set_applicability</literal></title>

<para>


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Brendan Jurd <direvus(at)gmail(dot)com>
Cc: pgsql-docs <pgsql-docs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-05-31 15:22:52
Message-ID: 1306855343-sup-2624@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

Excerpts from Brendan Jurd's message of mar may 31 02:17:22 -0400 2011:
> Hi folks,
>
> I was working on a little docs patch today, and when I tried to
> `make`, openjade choked on an identifier in information_schema.sgml,
> which is very much unrelated to my changes:
>
> openjade:information_schema.sgml:828:60:Q: length of name token must
> not exceed NAMELEN (44)

Odd. I tried it here and it doesn't fail -- same openjade version.
Maybe mine is patched.

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Christopher Browne <cbbrowne(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Brendan Jurd <direvus(at)gmail(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-05-31 15:52:32
Message-ID: BANLkTikM2xap7F5V9rbKOukbfxGcfKcHog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

On Tue, May 31, 2011 at 3:22 PM, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> Excerpts from Brendan Jurd's message of mar may 31 02:17:22 -0400 2011:
>> Hi folks,
>>
>> I was working on a little docs patch today, and when I tried to
>> `make`, openjade choked on an identifier in information_schema.sgml,
>> which is very much unrelated to my changes:
>>
>> openjade:information_schema.sgml:828:60:Q: length of name token must
>> not exceed NAMELEN (44)
>
> Odd.  I tried it here and it doesn't fail -- same openjade version.
> Maybe mine is patched.

It's not likely an issue of how OpenJade was compiled; there has been
a limitation in how SGML parsing was configured. If you poke around
in /usr/share/sgml, you should find some configuration indicating
NAMELEN was set to 44.

I recall hearing that this was an issue in older Red Hat and
derivative distributions, and thought that it was supposed to be
resolved several years ago, but perhaps there's something to undermine
that belief.

At any rate, I'd suggest grepping around for NAMELEN in
/usr/share/sgml; you'll likely see a limitation there, in some SGML
configuration file.
--
When confronted by a difficult problem, solve it by reducing it to the
question, "How would the Lone Ranger handle this?"


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Browne <cbbrowne(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-05-31 16:13:35
Message-ID: 28597.1306858415@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

Christopher Browne <cbbrowne(at)gmail(dot)com> writes:
> On Tue, May 31, 2011 at 3:22 PM, Alvaro Herrera
> <alvherre(at)commandprompt(dot)com> wrote:
>> Excerpts from Brendan Jurd's message of mar may 31 02:17:22 -0400 2011:
>>> openjade:information_schema.sgml:828:60:Q: length of name token must
>>> not exceed NAMELEN (44)

>> Odd. I tried it here and it doesn't fail -- same openjade version.
>> Maybe mine is patched.

> It's not likely an issue of how OpenJade was compiled; there has been
> a limitation in how SGML parsing was configured. If you poke around
> in /usr/share/sgml, you should find some configuration indicating
> NAMELEN was set to 44.

On a Fedora 13 machine:

$ grep -r NAMELEN /usr/share/sgml/
/usr/share/sgml/openjade-1.3.2/style-sheet.dtd: ArcQuant CDATA #FIXED "NAMELEN 64"
/usr/share/sgml/docbook/sgml-dtd-3.0-1.0-50.fc13/docbook.dcl: NAMELEN 256
/usr/share/sgml/docbook/sgml-dtd-3.0-1.0-50.fc13/cals-tbl.dtd: NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
/usr/share/sgml/docbook/sgml-dtd-4.4-1.0-50.fc13/docbook.dcl: NAMELEN 256
/usr/share/sgml/docbook/dsssl-stylesheets/dtds/dbdsssl/dbdsssl.dtd: ArcQuant CDATA #FIXED "NAMELEN 64"
/usr/share/sgml/docbook/dsssl-stylesheets/dtds/decls/docbook.dcl: NAMELEN 44
/usr/share/sgml/docbook/sgml-dtd-3.1-1.0-50.fc13/docbook.dcl: NAMELEN 256
/usr/share/sgml/docbook/sgml-dtd-3.1-1.0-50.fc13/cals-tbl.dtd: NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
/usr/share/sgml/docbook/sgml-dtd-4.1-1.0-50.fc13/docbook.dcl: NAMELEN 256
/usr/share/sgml/docbook/sgml-dtd-4.1-1.0-50.fc13/cals-tbl.dtd: NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
/usr/share/sgml/docbook/sgml-dtd-4.2-1.0-50.fc13/docbook.dcl: NAMELEN 256
/usr/share/sgml/docbook/sgml-dtd-4.5-1.0-50.fc13/docbook.dcl: NAMELEN 256
/usr/share/sgml/docbook/dsssl-stylesheets-1.79/dtds/dbdsssl/dbdsssl.dtd: ArcQuant CDATA #FIXED "NAMELEN 64"
/usr/share/sgml/docbook/dsssl-stylesheets-1.79/dtds/decls/docbook.dcl: NAMELEN 44
/usr/share/sgml/docbook/sgml-dtd-4.3-1.0-50.fc13/docbook.dcl: NAMELEN 256
/usr/share/sgml/docbook/sgml-dtd-4.0-1.0-50.fc13/docbook.dcl: NAMELEN 256
/usr/share/sgml/docbook/sgml-dtd-4.0-1.0-50.fc13/cals-tbl.dtd: NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
/usr/share/sgml/html.dcl: NAMELEN 72 -- somewhat arbitrary; taken from

It's hard to tell from this exactly which value is active in what
contexts, but it does look like 44 is relevant in some. FWIW,
I don't see the reported failure on this machine ...

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Christopher Browne <cbbrowne(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-05-31 20:36:10
Message-ID: 1306874170.20912.6.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

On tis, 2011-05-31 at 12:13 -0400, Tom Lane wrote:
> Christopher Browne <cbbrowne(at)gmail(dot)com> writes:
> > On Tue, May 31, 2011 at 3:22 PM, Alvaro Herrera
> > <alvherre(at)commandprompt(dot)com> wrote:
> >> Excerpts from Brendan Jurd's message of mar may 31 02:17:22 -0400 2011:
> >>> openjade:information_schema.sgml:828:60:Q: length of name token must
> >>> not exceed NAMELEN (44)
>
> >> Odd. I tried it here and it doesn't fail -- same openjade version.
> >> Maybe mine is patched.
>
> > It's not likely an issue of how OpenJade was compiled; there has been
> > a limitation in how SGML parsing was configured. If you poke around
> > in /usr/share/sgml, you should find some configuration indicating
> > NAMELEN was set to 44.
>
> On a Fedora 13 machine:
>
> $ grep -r NAMELEN /usr/share/sgml/
> /usr/share/sgml/openjade-1.3.2/style-sheet.dtd: ArcQuant CDATA #FIXED "NAMELEN 64"
> /usr/share/sgml/docbook/sgml-dtd-3.0-1.0-50.fc13/docbook.dcl: NAMELEN 256
> /usr/share/sgml/docbook/sgml-dtd-3.0-1.0-50.fc13/cals-tbl.dtd: NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
> /usr/share/sgml/docbook/sgml-dtd-4.4-1.0-50.fc13/docbook.dcl: NAMELEN 256
> /usr/share/sgml/docbook/dsssl-stylesheets/dtds/dbdsssl/dbdsssl.dtd: ArcQuant CDATA #FIXED "NAMELEN 64"
> /usr/share/sgml/docbook/dsssl-stylesheets/dtds/decls/docbook.dcl: NAMELEN 44
> /usr/share/sgml/docbook/sgml-dtd-3.1-1.0-50.fc13/docbook.dcl: NAMELEN 256
> /usr/share/sgml/docbook/sgml-dtd-3.1-1.0-50.fc13/cals-tbl.dtd: NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
> /usr/share/sgml/docbook/sgml-dtd-4.1-1.0-50.fc13/docbook.dcl: NAMELEN 256
> /usr/share/sgml/docbook/sgml-dtd-4.1-1.0-50.fc13/cals-tbl.dtd: NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
> /usr/share/sgml/docbook/sgml-dtd-4.2-1.0-50.fc13/docbook.dcl: NAMELEN 256
> /usr/share/sgml/docbook/sgml-dtd-4.5-1.0-50.fc13/docbook.dcl: NAMELEN 256
> /usr/share/sgml/docbook/dsssl-stylesheets-1.79/dtds/dbdsssl/dbdsssl.dtd: ArcQuant CDATA #FIXED "NAMELEN 64"
> /usr/share/sgml/docbook/dsssl-stylesheets-1.79/dtds/decls/docbook.dcl: NAMELEN 44
> /usr/share/sgml/docbook/sgml-dtd-4.3-1.0-50.fc13/docbook.dcl: NAMELEN 256
> /usr/share/sgml/docbook/sgml-dtd-4.0-1.0-50.fc13/docbook.dcl: NAMELEN 256
> /usr/share/sgml/docbook/sgml-dtd-4.0-1.0-50.fc13/cals-tbl.dtd: NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
> /usr/share/sgml/html.dcl: NAMELEN 72 -- somewhat arbitrary; taken from
>
> It's hard to tell from this exactly which value is active in what
> contexts, but it does look like 44 is relevant in some. FWIW,
> I don't see the reported failure on this machine ...

It looks like the original DocBook distribution has a limit of 44, but
someone patched it to 256 on your installation.

But it seems like no one else has seen this problem yet, so it's quite
suspicious, since surely people have built the documentation in the last
few months.


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Christopher Browne <cbbrowne(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-05-31 21:21:58
Message-ID: 4DE55BF6.9090207@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

On 05/31/2011 04:36 PM, Peter Eisentraut wrote:
>
> But it seems like no one else has seen this problem yet, so it's quite
> suspicious, since surely people have built the documentation in the last
> few months.

I have two buildfarm members with stock openjade/docbook installations
building the docs every day.

cheers

andrew


From: Brendan Jurd <direvus(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Christopher Browne <cbbrowne(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-06-01 01:05:39
Message-ID: BANLkTin7MB4dVn3YUFnZ5viP0_EHcARgwQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

On 1 June 2011 06:36, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> It looks like the original DocBook distribution has a limit of 44, but
> someone patched it to 256 on your installation.
>
> But it seems like no one else has seen this problem yet, so it's quite
> suspicious, since surely people have built the documentation in the last
> few months.
>

The relevant value on my machine seems to be:

/usr/share/sgml/docbook/sgml-dtd-4.2/docbook.dcl:81: NAMELEN 44

This file belongs to the Gentoo package app-text/docbook-sgml-dtd
4.2-r2, which is the current stable version for the 4.2 slot.

I would hazard to suggest that nobody else is seeing this problem
because I'm the only one building the docs on Gentoo =)

Still, the 44 character limit does seem to be per the upstream
distribution, and the identifier I patched above is the first one to
violate it. Are there any solid reasons we shouldn't just comply with
it?

Cheers,
BJ


From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Peter Eisentraut *EXTERN*" <peter_e(at)gmx(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Christopher Browne" <cbbrowne(at)gmail(dot)com>, "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Brendan Jurd" <direvus(at)gmail(dot)com>, "pgsql-docs" <pgsql-docs(at)postgresql(dot)org>, "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-06-01 07:31:36
Message-ID: D960CB61B694CF459DCFB4B0128514C2067E84CF@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

Peter Eisentrautwrote:
>>>> Excerpts from Brendan Jurd's message of mar may 31 02:17:22 -0400 2011:
>>>>> openjade:information_schema.sgml:828:60:Q: length of name token must
>>>>> not exceed NAMELEN (44)
>
> But it seems like no one else has seen this problem yet, so it's quite
> suspicious, since surely people have built the documentation in the last
> few months.

I have and I encountered the same problem.
I didn't bother to report it because my machine and openjade are quite old:

The machine is Red Hat Enterprise Linux ES release 3 (Taroon Update 9),
and docbook.dcl is from the docbook-dtds-1.0-17.2 RPM.

Maybe that really only affects quite old versions, but I think it wouldn't
hurt to shorten the tag in question to avoid the problem.

Yours,
Laurenz Albe


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: "Peter Eisentraut *EXTERN*" <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Christopher Browne <cbbrowne(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-06-01 16:55:21
Message-ID: BANLkTinhohfLmG3p=6iDOrahPMc_jrbcWg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

On Wed, Jun 1, 2011 at 3:31 AM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:
> Peter Eisentrautwrote:
>>>>> Excerpts from Brendan Jurd's message of mar may 31 02:17:22 -0400 2011:
>>>>>> openjade:information_schema.sgml:828:60:Q: length of name token must
>>>>>> not exceed NAMELEN (44)
>>
>> But it seems like no one else has seen this problem yet, so it's quite
>> suspicious, since surely people have built the documentation in the last
>> few months.
>
> I have and I encountered the same problem.
> I didn't bother to report it because my machine and openjade are quite old:
>
> The machine is Red Hat Enterprise Linux ES release 3 (Taroon Update 9),
> and docbook.dcl is from the docbook-dtds-1.0-17.2 RPM.
>
> Maybe that really only affects quite old versions, but I think it wouldn't
> hurt to shorten the tag in question to avoid the problem.

+1.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, Peter Eisentraut *EXTERN* <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Christopher Browne <cbbrowne(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-06-01 17:19:53
Message-ID: 4DE674B9.1020704@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

On 06/01/2011 12:55 PM, Robert Haas wrote:
> On Wed, Jun 1, 2011 at 3:31 AM, Albe Laurenz<laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:
>> Peter Eisentrautwrote:
>>>>>> Excerpts from Brendan Jurd's message of mar may 31 02:17:22 -0400 2011:
>>>>>>> openjade:information_schema.sgml:828:60:Q: length of name token must
>>>>>>> not exceed NAMELEN (44)
>>> But it seems like no one else has seen this problem yet, so it's quite
>>> suspicious, since surely people have built the documentation in the last
>>> few months.
>> I have and I encountered the same problem.
>> I didn't bother to report it because my machine and openjade are quite old:
>>
>> The machine is Red Hat Enterprise Linux ES release 3 (Taroon Update 9),
>> and docbook.dcl is from the docbook-dtds-1.0-17.2 RPM.
>>
>> Maybe that really only affects quite old versions, but I think it wouldn't
>> hurt to shorten the tag in question to avoid the problem.
> +1.

Is there no way we can ourselves override this setting if we run into
it? If it's possible that seems to me like a much better way to go.

cheers

andrew


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Brendan Jurd <direvus(at)gmail(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Date: 2011-06-03 19:26:13
Message-ID: 1307129173.32120.9.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs pgsql-hackers

On tis, 2011-05-31 at 16:17 +1000, Brendan Jurd wrote:
> Hi folks,
>
> I was working on a little docs patch today, and when I tried to
> `make`, openjade choked on an identifier in information_schema.sgml,
> which is very much unrelated to my changes:
>
> openjade:information_schema.sgml:828:60:Q: length of name token must
> not exceed NAMELEN (44)

Fixed.