New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #23954 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

gnome-doc-utils update to 0.18.1 fails

Reported by: ram@… Owned by: devans@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu@…, ryandesign@…
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

gnome-doc-utils_debug.txt (207.1 KB) - added by ram@… 3 years ago.

Change History

Changed 3 years ago by ram@…

comment:1 Changed 3 years ago by ryandesign@…

  • Cc ryandesign@… added

Cc Me!

comment:2 Changed 3 years ago by jmr@…

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 3 years ago by jmr@…

  • Cc jeremyhu@… added

comment:4 Changed 3 years ago by jeremyhu@…

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 3 years ago by ram@…

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 3 years ago by jeremyhu@…

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 3 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 3 years ago by jeremyhu@…

  • Status changed from new to closed
  • Resolution set to fixed

Thanks r64543

Note: See TracTickets for help on using tickets.