Opened 12 years ago

Closed 7 years ago

Last modified 7 years ago

#37939 closed defect (fixed)

dia: docbook.xsl:1: parser error : Document is empty

Reported by: martinezino@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: dia

Description (last modified by ryandesign (Ryan Carsten Schmidt))

$ port install dia 
--->  Computing dependencies for dia
--->  Fetching archive for dia
--->  Attempting to fetch dia-0.97.2_3.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/dia
--->  Attempting to fetch dia-0.97.2_3.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/dia
--->  Attempting to fetch dia-0.97.2_3.darwin_12.x86_64.tbz2 from http://packages.macports.org/dia
--->  Fetching distfiles for dia
--->  Verifying checksum(s) for dia
--->  Extracting dia
--->  Applying patches to dia
--->  Configuring dia
--->  Building dia
Error: org.macports.build for port dia returned: command execution failed
Please see the log file for port dia for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_dia/dia/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port dia failed

$ 

Attachments (2)

main.log (989.2 KB) - added by martinezino@… 12 years ago.
installprocess.txt (4.3 KB) - added by martinezino@… 12 years ago.
sudo port clean dia; sudo port install dia

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by martinezino@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: Error: Processing of port dia faileddia: docbook.xsl:1: parser error : Document is empty

The relevant error in the log seems to be

:info:build xsltproc --novalid http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl dia.dbk >dia.1
:info:build http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl:1: parser error : Document is empty
:info:build 
:info:build ^
:info:build http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl:1: parser error : Start tag expected, '<' not found
:info:build 
:info:build ^
:info:build cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
:info:build make[3]: *** [dia.1] Error 4

Are you able to access http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl in your web browser?

comment:2 Changed 12 years ago by martinezino@…

yes, i am able to access that URI:

$ curl -I http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
HTTP/1.1 200 OK ...
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Ok. And if you sudo port clean dia and try again, does it fail again?

Changed 12 years ago by martinezino@…

Attachment: installprocess.txt added

sudo port clean dia; sudo port install dia

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Shouldn't it be using a local copy of docbook-xsl rather than downloading stuff in the build phase?

comment:5 Changed 12 years ago by martinezino@…

that was it:

$ sudo port install docbook-xsl
...
$ sudo port install dia
...
--->  Installing dia @0.97.2_3
--->  Activating dia @0.97.2_3

conclusion: missing docbook-xsl dependences

thank you!

Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

comment:7 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

In ee2ba071a9749d6c79eb3c8a1bd42bdf1e757860/macports-ports:

dia: add dependency and fix help

Add docbook-xsl dependency - force use of local docbook.xsl
Force creation of html help - use open instead of xdg-open

Some patches come from Debian and master branch of dia

closes #37939
closes #42401

Note: See TracTickets for help on using tickets.