Opened 15 years ago

Closed 15 years ago

#23954 closed defect (fixed)

gnome-doc-utils update to 0.18.1 fails

Reported by: skymoo (Adam Mercer) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), ryandesign (Ryan Carsten Schmidt)
Port: gnome-doc-utils

Description

full debug log attached, error seems to be:

        (cd de/ && \
          PYTHONPATH="/opt/local/var/macports/build/_Volumes_Misc_VCS_opt_macports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/mallard/../../xml2po:/opt/local/var/macports/build/_Volumes_Misc_VCS_opt_macports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/mallard/../../xml2po:" "/opt/local/var/macports/build/_Volumes_Misc_VCS_opt_macports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/mallard/../../xml2po/xml2po/xml2po" -m mallard -e -p "${po}" \
            "${d}C/mal_external.page" > mal_external.page.tmp && \
            cp mal_external.page.tmp mal_external.page && rm -f mal_external.page.tmp)
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_Volumes_Misc_VCS_opt_macports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/mallard/../../xml2po/xml2po/xml2po", line 185, in <module>
    main(sys.argv[1:])
  File "/opt/local/var/macports/build/_Volumes_Misc_VCS_opt_macports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/mallard/../../xml2po/xml2po/xml2po", line 171, in main
    xml2po_main.merge(mofile, filenames[0])
  File "/opt/local/var/macports/build/_Volumes_Misc_VCS_opt_macports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/xml2po/xml2po/__init__.py", line 601, in merge
    self.gt = gettext.GNUTranslations(mfile)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/gettext.py", line 293, in _parse
    raise IOError(0, 'File is corrupt', filename)
IOError: [Errno 0] File is corrupt: '.xml2po.mo'

Attachments (1)

gnome-doc-utils_debug.txt (207.1 KB) - added by skymoo (Adam Mercer) 15 years ago.

Download all attachments as: .zip

Change History (9)

Changed 15 years ago by skymoo (Adam Mercer)

Attachment: gnome-doc-utils_debug.txt added

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

Cc: ryandesign@… added

Cc Me!

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

I get an error that's a little different:

	  PYTHONPATH="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/xslt/../../xml2po:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/xslt/../../xml2po:" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/xslt/../../xml2po/xml2po/xml2po" -m docbook -e -p "${po}" \
	    "${d}C/theme.xml" > theme.xml.tmp && \
	    cp theme.xml.tmp theme.xml && rm -f theme.xml.tmp)
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/xslt/../../xml2po/xml2po/xml2po", line 185, in <module>
    main(sys.argv[1:])
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/doc/xslt/../../xml2po/xml2po/xml2po", line 171, in main
    xml2po_main.merge(mofile, filenames[0])
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnome-doc-utils/work/gnome-doc-utils-0.18.1/xml2po/xml2po/__init__.py", line 601, in merge
    self.gt = gettext.GNUTranslations(mfile)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/gettext.py", line 273, in _parse
    magic = unpack('<I', buf[:4])[0]
struct.error: unpack requires a string argument of length 4
make[2]: *** [de/l10n-numbers.xml] Error 1

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Cc: jeremyhu@… added

comment:4 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

weird... it builds fine for me on all my machines... I wonder if it's a parallel build issue... ?

If you try building it with "buildmakejobs 1" in $prefix/etc/macports.conf, does it install correctly?

comment:5 Changed 15 years ago by skymoo (Adam Mercer)

Odd, it build now. port_cutleaves removed gnome-doc-utils and trying now (before setting buildmakejobs to 1) it builds. Maybe it doesn't like having an older version installed?

comment:6 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

The failure point doesn't make me think that's the case since it's not a linking issue and the backtrace shows it's not using the installed version of xml2po ... so my hunch is still the same that it's a parallelization issue.

comment:7 Changed 15 years ago by accolon@…

I got the same error as jmr ("struct.error: unpack requires a string argument of length 4"). Setting buildmakejobs to 1 solved it for me.

comment:8 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

Thanks r64543

Note: See TracTickets for help on using tickets.