Ticket #7486 (closed bug: fixed)

Opened 6 months ago

Last modified 5 months ago

dblatex can't build docs; fix included.

Reported by: rlpowell Owned by:
Priority: normal Milestone:
Component: Build System Version: 7.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Currently, on my Fedora 17 system, the following occurs when you try to build the docs:

pdflatex failed
users_guide.tex:1030: Undefined control sequence \Documents.
users_guide.tex:1030: leading text: }
users_guide.tex:1030: Undefined control sequence \user.
users_guide.tex:1030: leading text: }
users_guide.tex:3719: Undefined control sequence \Person.
users_guide.tex:3719: leading text:       or \nolinkurl{Data\Person.hs}
users_guide.tex:6016: Undefined control sequence \Documents.
users_guide.tex:6016: leading text: ...ts~And~Settings\user\ghc\package.conf.d}
users_guide.tex:6016: Undefined control sequence \user.
users_guide.tex:6016: leading text: ...ts~And~Settings\user\ghc\package.conf.d}
users_guide.tex:6016: Undefined control sequence \ghc.
users_guide.tex:6016: leading text: ...ts~And~Settings\user\ghc\package.conf.d}
users_guide.tex:6016: Undefined control sequence \package.
users_guide.tex:6016: leading text: ...ts~And~Settings\user\ghc\package.conf.d}
users_guide.tex:29016: Undefined control sequence \cygwin.
users_guide.tex:29016: leading text: \nolinkurl{/} is \nolinkurl{C:\cygwin\ }
users_guide.tex:29022: Undefined control sequence \cygwin.
users_guide.tex:29022: leading text: system (probably \nolinkurl{C:\cygwin\bin}
users_guide.tex:29022: Undefined control sequence \bin.
users_guide.tex:29022: leading text: system (probably \nolinkurl{C:\cygwin\bin}
users_guide.tex:29022: Undefined control sequence \cygwin.
users_guide.tex:29022: leading text: ...} and \nolinkurl{C:\cygwin\usr\include}
users_guide.tex:29022: Undefined control sequence \usr.
users_guide.tex:29022: leading text: ...} and \nolinkurl{C:\cygwin\usr\include}
users_guide.tex:29022: Incomplete \iffalse; all text was ignored after line 29022.
users_guide.tex: Emergency stop.
Unexpected error occured

This is easily fixed like so:

DBLATEX_OPTS="-P 'filename.as.url=0'" make

makes it work.

see  http://dblatex.sourceforge.net/doc/manual/sec-param-value.html and  http://dblatex.sourceforge.net/doc/manual/filename.as.url.html for an explanation; if you leave it as url style, dblatex leaves \ , as in "C:\Documents And Settings", in there literally, and I didn't want to hack dblatex, and this fixes the problem.

No idea where to put this in the makefiles or whatever to solve it for real, sorry.

It may be the case, probably *is* the case in fact, that a newer dblatex fixes this, but I doubt very much that y'all rely on this feature anyways, and not building on the latest Fedora is kind of unfortunate.

-Robin

Change History

Changed 6 months ago by rlpowell

dblatex 0.3.4 (latest) does not fix this problem, so perhaps it's the other way around and earlier versions worked.

-Robin

Changed 5 months ago by ian@…

commit d9674323f6c39374c254da40054f28a7361fd100

Author: Ian Lynagh <ian@well-typed.com>
Date:   Fri Jan 4 01:46:21 2013 +0000

    Set DBLATEX_OPTS to -P 'filename.as.url=0' (fixes #7486)
    
    Apparently this fixes the build with dblatex 0.3.4.

 mk/config.mk.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Changed 5 months ago by igloo

  • status changed from new to merge
  • difficulty set to Unknown

Thanks for the report and the fix; applied in HEAD.

Changed 5 months ago by igloo

  • status changed from merge to closed
  • resolution set to fixed

Merged as 160424c64cdbf72d241fc83d97f7c8afe8be9aad

Note: See TracTickets for help on using tickets.