Mail Archives: geda-user/2016/09/08/23:28:00
Roland Lutz <rlutz AT hedmen DOT org> wrote:
<snip>
> As Vladimir already pointed out, the version.h problem can't really be
> related to Xorn. Could you please re-configure gEDA without the
> `--disable-xorn' argument and see if it still works? If not, at which
> point does the build process stop, and what are the error messages?
Allow me to share my own notes on the error, followed by an excerpt of
the warnings, followed by an excerpt of the fatal error. The obvious
workaround is to edit the *.py files that cause fatal errors and append
a newline \n to the msgid literal. But, that's not much of a workaround,
as you already know, because the *.py files are automatically created.
------------------------------------------------------------------------
This line in src/python/base64.py eventually causes a fatal error:
raise DecodingError, _("Unexpected end-of-file")
This line in src/python/fileutils.py is error free:
sys.stderr.write(_("Failed to back up '%s': %s\n")
% (filename, e.strerror))
Error free:
src/python/command.py
src/python/fileutils.py
src/python/geda/clib.py
Generate fatal errors:
src/python/base64.py
src/python/geda/plainread.py
src/python/geda/plainwrite.py
src/python/geda/read.py
en AT quot DOT po lines 41-45
------------------------------------------------------------------------
41
42 #: src/python/base64.py:150
43 msgid "Unexpected end-of-file"
44 msgstr "Unexpected end-of-file\n"
45
------------------------------------------------------------------------
GNU gettext error
https://www.gnu.org/software/gettext/FAQ.html#newline
en AT quot DOT po:44: 'msgid' and 'msgstr' entries do not both end with '\n'
/usr/local/bin/msgfmt: found 166 fatal errors
en AT quot DOT po: 266 translated messages.
*** Error code 1
------------------------------------------------------------------------
if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then LC_ALL=C find -L .. -maxdepth 1 -type f
-size -10000000c -exec grep 'GNU xorn' /dev/null '{}' ';' 2>/dev/null; else LC_ALL=C grep 'GNU xorn' ../* 2>/de
v/null; fi; } | grep -v 'libtool:' >/dev/null; then package_gnu='GNU '; else package_gnu=''; fi; if test -n
'bug-xorn AT hedmen DOT org' || test 'bug-xorn AT hedmen DOT org' = '@'PACKAGE_BUGREPORT'@'; then msgid_bugs_address='bug-xorn
@hedmen.org'; else msgid_bugs_address='bug-xorn AT hedmen DOT org'; fi; case `/usr/local/bin/xgettext --version | sed
1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) /usr/loca
l/bin/xgettext --default-domain=xorn --directory=.. --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --file
s-from=./POTFILES.in --copyright-holder='Roland Lutz' --msgid-bugs-address="$msgid_bugs_address" ;; *) /usr/l
ocal/bin/xgettext --default-domain=xorn --directory=.. --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --f
iles-from=./POTFILES.in --copyright-holder='Roland Lutz' --package-name="${package_gnu}xorn" --package-version=
'0.0' --msgid-bugs-address="$msgid_bugs_address" ;; esac
src/python/command.py:111: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments,
and a mapping instead of a tuple for the arguments.
src/python/fileutils.py:197: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments,
and a mapping instead of a tuple for the arguments.
------------------------------------------------------------------------
make xorn.pot-update
sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed
mv t-remove-potcdate.sed remove-potcdate.sed
if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then LC_ALL=C find -L .. -maxdepth 1 -type f
-size -10000000c -exec grep 'GNU xorn' /dev/null '{}' ';' 2>/dev/null; else LC_ALL=C grep 'GNU xorn' ../* 2>/de
v/null; fi; } | grep -v 'libtool:' >/dev/null; then package_gnu='GNU '; else package_gnu=''; fi; if test -n
'bug-xorn AT hedmen DOT org' || test 'bug-xorn AT hedmen DOT org' = '@'PACKAGE_BUGREPORT'@'; then msgid_bugs_address='bug-xorn
@hedmen.org'; else msgid_bugs_address='bug-xorn AT hedmen DOT org'; fi; case `/usr/local/bin/xgettext --version | sed
1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) /usr/loca
l/bin/xgettext --default-domain=xorn --directory=.. --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --file
s-from=./POTFILES.in --copyright-holder='Roland Lutz' --msgid-bugs-address="$msgid_bugs_address" ;; *) /usr/l
ocal/bin/xgettext --default-domain=xorn --directory=.. --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --f
iles-from=./POTFILES.in --copyright-holder='Roland Lutz' --package-name="${package_gnu}xorn" --package-version=
'0.0' --msgid-bugs-address="$msgid_bugs_address" ;; esac
test ! -f xorn.po || { if test -f ./xorn.pot; then sed -f remove-potcdate.sed < ./xorn.pot > xorn.1po && sed -f
remove-potcdate.sed < xorn.po > xorn.2po && if cmp xorn.1po xorn.2po >/dev/null 2>&1; then rm -f xorn.1po xorn.
2po xorn.po; else rm -f xorn.1po xorn.2po ./xorn.pot && mv xorn.po ./xorn.pot; fi; else mv xorn.po ./xorn.po
t; fi; }
test ! -f ./xorn.pot || test -z "en AT quot DOT gmo en AT boldquot DOT gmo" || make en AT quot DOT gmo en AT boldquot DOT gmo
make en AT quot DOT po-update
sed -e '/^#/d' -e 's/HEADER/en AT quot DOT header/g' ./insert-header.sin > en AT quot DOT insert-header
en AT quot:
en AT quot:
msgmerge --lang=en AT quot en AT quot DOT po xorn.pot -o en AT quot DOT new DOT po
rm -f en AT quot DOT gmo && /usr/local/bin/msgfmt -c --statistics --verbose -o en AT quot DOT gmo en AT quot DOT po
*** Error code 1
Stop.
make[5]: stopped in /net/michael2/home/don/geda-gaf/xorn/po
------------------------------------------------------------------------
--
Don Kuenz KB7RPU
Rhythm is one of the principal translators between dream and
reality. Rhythm might be described as, to the world of sound, what light
is to the world of sight. It shapes and gives new meaning. - Sitwell
- Raw text -