X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Authority-Analysis: v=2.1 cv=dPwomYpb c=1 sm=1 tr=0 a=anyYG9rjTBM1sAjEBQ8Cew==:117 a=BH8+xOIUV1m+WI5b7a/gWQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=cO3MHOAM6NsA:10 a=GW1xBdLrtEIA:10 a=WmWdSZijAAAA:8 a=mDV3o1hIAAAA:8 a=V0jhyoHUyoREwHQYliEA:9 a=ATDBJK6hXFHKmA8G:21 a=Szd49Jut3BykpMSB:21 a=wNssaWUE1gYA:10 a=RzulpZS-qMMA:10 a=TyhwexaRAurJGTW402Pw:22 a=_FVE-zBwftR9WsbkzFJk:22 Date: 08 Sep 2016 21:30:00 MST From: Don Kuenz To: geda-user AT delorie DOT com Message-ID: <20160908a@crcomp.net> Subject: Re: [geda-user] Re: Copy version.h from tarball to git clone References: <20160824c AT crcomp DOT net> X-EN-UserInfo: de154d50cc16294658ed7b7577430c21:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: mail AT crcomp DOT net Sender: Don Kuenz X-EN-OrigIP: 69.144.143.134 X-EN-OrigHost: host-69-144-143-134.csp-wy.client.bresnan.net Reply-To: geda-user AT delorie DOT com Roland Lutz wrote: > 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