Opened 13 years ago

Closed 13 years ago

#27439 closed defect (duplicate)

libzzip fails to build - xmlto validation failure

Reported by: jabronson@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: deesto (John S. De Stefano Jr.)
Port: libzzip xmlto

Description

see attached

Attachments (2)

main.log (125.6 KB) - added by jabronson@… 13 years ago.
libzzip-port-log.txt (48.7 KB) - added by deesto (John S. De Stefano Jr.) 13 years ago.

Download all attachments as: .zip

Change History (14)

Changed 13 years ago by jabronson@…

Attachment: main.log added

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Port: xmlto added
Summary: libzzip fails to buildlibzzip fails to build - xmlto validation failure

comment:2 Changed 13 years ago by jmroot (Joshua Root)

I somehow suspect that your docbook DTDs are broken in some way, which would make this exactly the same problem as #26151.

comment:3 in reply to:  2 Changed 13 years ago by jabronson@…

Replying to jmr@…:

I somehow suspect that your docbook DTDs are broken in some way, which would make this exactly the same problem as #26151.

sweet, a hypothesis. how would i test, and fix if it's true?

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

To test, compare your XML catalog to that of someone who doesn't have the problem I guess. Fix, no idea.

comment:5 in reply to:  description ; Changed 13 years ago by deesto (John S. De Stefano Jr.)

Just so I don't open a duplicate ticket, is this the same issue I'm seeing (not clear from above):

350 Making all in docs
351 cp ../../docs/body.htm site.htm
352 echo "<pre>" > changes.htm ; cat ../../ChangeLog \
353     | sed -e "s,\\&,\\&amp\\;,g" \
354     -e "s,<,\\&lt\\;,g" -e "s,>,\\&gt\\;,g" \
355     -e "/^[A-Z].*[12][09][09][09]/s,\\(.*\\),<b>&</b>," \
356     -e "/^[0-9]/s,\\(.*\\),<b>&</b>," >> changes.htm ; echo "</pre>" >>changes.htm
357 PYTHONDONTWRITEBYTECODE=1  /opt/local/bin/python  ../../docs/makedocs.py ../../zzip/*.c  \
358                    "--package=zziplib" "--version=0.13.59" \
359                    "--onlymainheader=zzip/lib.h" "--output=zziplib"
360 PYTHONDONTWRITEBYTECODE=1  /opt/local/bin/python  ../../docs/makedocs.py ../../zzip/*.c  \
361                    "--package=zziplib" "--version=0.13.59" \
362                    "--onlymainheader=zzip/mmapped.h" "--output=zzipmmapped"
363 PYTHONDONTWRITEBYTECODE=1  /opt/local/bin/python  ../../docs/makedocs.py ../../zzip/*.c  \
364                    "--package=zziplib" "--version=0.13.59" \
365                    "--onlymainheader=zzip/fseeko.h" "--output=zzipfseeko"
366 cp ../../docs/body.htm site.htm
367 perl ../../docs/mksite.pl --VERSION=0.13.59 --xml --src-dir=../../docs --print site.htm || \
368     /bin/sh ../../docs/mksite.sh --VERSION=0.13.59 --xml --src-dir=../../docs --print site.htm
369   File "../../docs/makedocs.py", line 40
370     print t_fileheader.get_filename(), t_fileheader.src_mainheader()
371                      ^
372 SyntaxError: invalid syntax
373   File "../../docs/makedocs.py", line 40
374     print t_fileheader.get_filename(), t_fileheader.src_mainheader()
375                      ^
376 SyntaxError: invalid syntax                                                                                                   
377   File "../../docs/makedocs.py", line 40
378     print t_fileheader.get_filename(), t_fileheader.src_mainheader()
379                      ^
380 SyntaxError: invalid syntax
381 make[3]: *** [zzipfseeko.xml] Error 1
382 make[3]: *** Waiting for unfinished jobs....
383 make[3]: *** [zzipmmapped.xml] Error 1
384 make[3]: *** [zziplib.xml] Error 1


If so, all I've done is try a sudo port selfupdate && sudo port upgrade outdated.

Changed 13 years ago by deesto (John S. De Stefano Jr.)

Attachment: libzzip-port-log.txt added

comment:6 Changed 13 years ago by deesto (John S. De Stefano Jr.)

Cc: deesto@… added

Cc Me!

comment:7 in reply to:  5 Changed 13 years ago by jabronson@…

Replying to deesto@…:

Just so I don't open a duplicate ticket, is this the same issue I'm seeing (not clear from above):

The syntax error my output refers to is in an xml file, not a python file. So it's not the same symptom, but it might be the same cause.

comment:8 Changed 13 years ago by guillaumesalagnac

This is indeed a python issue: this makedocs.py script is written for python2.X, so running it using a python 3.X causes syntax errors. source

To work around the problem, run sudo /opt/local/bin/python_select python26-apple and then libzzip will build fine.

I've got no idea about how this "bug" (because that's what it is) could be fixed in macports though.

Cheers, -G

PS: also, the title for this page has to be changed, as this problem has nothing to do with xml stuff at all...

comment:9 in reply to:  8 Changed 13 years ago by jabronson@…

Replying to guillaume.salagnac@…:

This is indeed a python issue: this makedocs.py script is written for python2.X, so running it using a python 3.X causes syntax errors. source

To work around the problem, run sudo /opt/local/bin/python_select python26-apple and then libzzip will build fine.

Hi Guillaume, thanks for the info. The python selected on my system has been macports python26, not 3.X, but I tried your suggestion anyway: ran python_select python26-apple && port clean libzzip && port install libzzip and got the same error as in the main.log I attached, so this didn't help in my case. Any other ideas?

comment:10 Changed 13 years ago by jabronson@…

Just thought I'd highlight the portion of the log relevant to the error I'm getting:

From main.log#L821 (starting with line 821):

:info:build /opt/local/bin/xmlto -o man3 man zziplib.xml
:info:build xmlto: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_libzzip/work/zziplib-0.13.59/Darwin_10.5.0_i386.d/docs/zziplib.xml does not validate (status 3)
:info:build xmlto: Fix document syntax or use --skip-validation option

So this does look like it has something to do with xml stuff.

comment:11 Changed 13 years ago by guillaumesalagnac

Ooops, my bad. I had just skimmed through the page and not read the attachements. What I understand is that this ticket is actually documenting two problems: your original problem, and a second one, reported by deesto, which I was also experiencing.

Sorry for the confusion (though my workaround at least solves "half" of the ticket :-) and good luck for your bug.

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

Resolution: duplicate
Status: newclosed

#26151 is reopened.

Note: See TracTickets for help on using tickets.