Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 2CD25FA6B98 for ; Thu, 22 Mar 2012 01:13:09 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SAZOc-0000Ot-Iu for pgsql-docs@postgresql.org; Thu, 22 Mar 2012 04:13:08 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q2M4CpJU017356 for ; Thu, 22 Mar 2012 00:12:51 -0400 (EDT) To: pgsql-docs@postgresql.org Subject: Re: Cannot build docs on Ubuntu 10.04? In-reply-to: <29895.1331734915@sss.pgh.pa.us> References: <29895.1331734915@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 14 Mar 2012 10:21:55 -0400" Date: Thu, 22 Mar 2012 00:12:51 -0400 Message-ID: <17355.1332389571@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/16 X-Sequence-Number: 7215 I wrote: > Maybe the Makefile should just error out if COLLATEINDEX isn't set, > rather than trying a "fallback" value that configure has already > determined isn't going to work. I looked at this a bit closer, and figured out why the Makefile is trying an apparently pointless case: the test implemented in configure is wrong! In at least some installations of docbook, for instance the ancient one I've got in captivity on my HPUX box, collateindex.pl is provided in $(DOCBOOKSTYLE)/bin/, but *it is not marked executable*. This causes AC_PATH_PROGS to not consider it valid. However, the docs Makefile is coded to invoke the script via $(PERL) $(COLLATEINDEX), which is presumably done precisely to be able to cope with not-executable scripts. So I think we should adjust the configure test to accept $(DOCBOOKSTYLE)/bin/collateindex.pl if it is readable, whether or not it is executable, and only use the Autoconf macro if we fall back to searching PATH for collateindex.pl. Having done that, it should be safe to simplify the Makefile to throw error if COLLATEINDEX isn't set. regards, tom lane