Re: [Haskell-cafe] ghc ./configure stalls on docbook DTD

2009-05-21 Thread Duncan Coutts
On Mon, 2009-05-18 at 12:09 +0100, Simon Marlow wrote:

 I have the following complaint from Roman in my inbox, which I think is 
 about the same thing:
 
   one big nuisance when building ghc is that configure tries to connect 
   to the internet. The culprit is the FP_GEN_DOCBOOK_XML macro in
   aclocal.m4 which is used when checking for DocBook DTD. It generates
   an XML file which references http://www.oasis-open.org/docbook/xml/4.2
   /docbookx.dtd and then runs xmllint which, naturally, wants to load
   the dtd. Depending on the quality of my internet connection and on
   the availability of oasis-open.org this check sometimes (infrequently
   but very annoyingly) takes up to a 2 or 3 minutes for me. Given that
   the DTD in question can be freely copied, why not redistribute it
   with ghc?
 
   Another www reference is in FP_GEN_FO (to
   http://www.w3.org/1999/XSL/Format) but that never seems to bite me.
 
 I know almost but not quite exactly nothing about how to find DTDs.  But 
 I do recall that Duncan mentioned to me recently that there's a much 
 better way to do this - Duncan?

Oh, yes, use --nonet to both xmllint and xsltproc. That's what we do for
the Cabal user guide which is still using xml docbook, along with:

?xml version=1.0 encoding=US-ASCII?
!DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.2//EN
  http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd; 

I expect the uri -//OASIS//DTD DocBook XML V4.2//EN is required so
that it can match the uri in the local catalog.

Duncan

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ghc ./configure stalls on docbook DTD

2009-05-18 Thread Simon Marlow

On 13/05/2009 19:53, Donnie Jones wrote:

Hello Dan,

Best place to ask is glasgow-haskell-us...@haskell.org since that is
the GHC users list.
I have CC'd your email to the GHC user list.

Cheers.
--
Donnie Jones

On Wed, May 13, 2009 at 1:35 PM, Dandanielkc...@gmail.com  wrote:

Hi,

Not sure if this is the right place to ask.
GHC 6.10.3 source dist: ./configure takes about 10 minutes to look for
DocBook DTD and another 10 to look for DocBook XSL directory.  I was writing
this e-mail thinking it had completely crashed.  Any reason why it's so
ridiculously slow? A look at 'top' says the CPU is mostly idle during this
time, but xmllint is running.


I have the following complaint from Roman in my inbox, which I think is 
about the same thing:


 one big nuisance when building ghc is that configure tries to connect 
 to the internet. The culprit is the FP_GEN_DOCBOOK_XML macro in

 aclocal.m4 which is used when checking for DocBook DTD. It generates
 an XML file which references http://www.oasis-open.org/docbook/xml/4.2
 /docbookx.dtd and then runs xmllint which, naturally, wants to load
 the dtd. Depending on the quality of my internet connection and on
 the availability of oasis-open.org this check sometimes (infrequently
 but very annoyingly) takes up to a 2 or 3 minutes for me. Given that
 the DTD in question can be freely copied, why not redistribute it
 with ghc?

 Another www reference is in FP_GEN_FO (to
 http://www.w3.org/1999/XSL/Format) but that never seems to bite me.

I know almost but not quite exactly nothing about how to find DTDs.  But 
I do recall that Duncan mentioned to me recently that there's a much 
better way to do this - Duncan?


Cheers,
Simon
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] ghc ./configure stalls on docbook DTD

2009-05-13 Thread Dan

Hi,

Not sure if this is the right place to ask. 

GHC 6.10.3 source dist: ./configure takes about 10 minutes to look for 
DocBook DTD and another 10 to look for DocBook XSL directory.  I was 
writing this e-mail thinking it had completely crashed.  Any reason why 
it's so ridiculously slow? A look at 'top' says the CPU is mostly idle 
during this time, but xmllint is running.


Mac OS X

uname -a: Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 
PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386


CookBook:ghc-6.10.3 dan$ ./configure
checking build system type... i386-apple-darwin9.6.0
checking host system type... i386-apple-darwin9.6.0
checking target system type... i386-apple-darwin9.6.0
Canonicalised to: i386-apple-darwin
[blah blah blah]
checking for xmllint... /usr/bin/xmllint
checking for DocBook DTD...
(blocks for ages)

begin:vcard
fn:Daniel K. Cook
n:Cook;Daniel K.
email;internet:danielkc...@gmail.com
tel;cell:+44 (0) 7949 125 491
x-mozilla-html:TRUE
version:2.1
end:vcard

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ghc ./configure stalls on docbook DTD

2009-05-13 Thread Donnie Jones
Hello Dan,

Best place to ask is glasgow-haskell-us...@haskell.org since that is
the GHC users list.
I have CC'd your email to the GHC user list.

Cheers.
--
Donnie Jones

On Wed, May 13, 2009 at 1:35 PM, Dan danielkc...@gmail.com wrote:
 Hi,

 Not sure if this is the right place to ask.
 GHC 6.10.3 source dist: ./configure takes about 10 minutes to look for
 DocBook DTD and another 10 to look for DocBook XSL directory.  I was writing
 this e-mail thinking it had completely crashed.  Any reason why it's so
 ridiculously slow? A look at 'top' says the CPU is mostly idle during this
 time, but xmllint is running.

 Mac OS X

 uname -a: Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST
 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386

 CookBook:ghc-6.10.3 dan$ ./configure
 checking build system type... i386-apple-darwin9.6.0
 checking host system type... i386-apple-darwin9.6.0
 checking target system type... i386-apple-darwin9.6.0
 Canonicalised to: i386-apple-darwin
 [blah blah blah]
 checking for xmllint... /usr/bin/xmllint
 checking for DocBook DTD...
 (blocks for ages)


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe